// Module included in the following assemblies:
//
// * rosa_learning/creating_cluster_workshop/learning-getting-started-hcp-for-hcp.adoc
:_mod-docs-content-type: PROCEDURE
[id="learning-getting-started-create-cluster_{context}"]
= Creating a cluster

[role="_abstract"]
You can create your {product-title} cluster using the {rosa-cli}.

.Procedure
. *Optional:* Run the following command to create the account-wide roles and policies, including the Operator policies and the AWS IAM roles and policies:
+
[IMPORTANT]
====
Only complete this step if this is the _first time_ you are deploying {product-title} in this account and you have _not_ yet created your account roles and policies.
====
+
[source,terminal]
----
$ rosa create account-roles --mode auto --yes
----

. Run the following command to create the cluster:
+
[source,terminal]
----
$ rosa create cluster --cluster-name $CLUSTER_NAME \
--subnet-ids ${PUBLIC_SUBNET_ID},${PRIVATE_SUBNET_ID} \
--hosted-cp \
--region $REGION \
--oidc-config-id $OIDC_ID \
--sts --mode auto --yes
----
+
The cluster is ready after about 10 minutes. The cluster will have a control plane across three AWS availability zones in your selected region and create two worker nodes in your AWS account.