// Module included in the following assemblies:
//
// * cloud_experts_tutorials/cloud-experts-rosa-hcp-activation-and-account-linking-tutorial.adoc

:_mod-docs-content-type: PROCEDURE
[id="selecting-billing-account-cli_{context}"]
= Select the AWS billing account during cluster deployment using the CLI

[role="_abstract"]
When deploying your cluster using {rosa-cli-first}, you must select the correct AWS billing account for {product-title}.

.Prerequisites

* You have installed the most recent link:https://docs.redhat.com/en/documentation/red_hat_openshift_service_on_aws/4/html-single/cli_tools/index#rosa-get-started-cli[{rosa-cli}].
* You have installed the most recent link:https://aws.amazon.com/cli/[AWS CLI].
* You have completed the steps in link:https://docs.redhat.com/en/documentation/red_hat_openshift_service_on_aws/4/html-single/tutorials/index#aws-rh-linking_cloud-experts-activation-account-linking[Link AWS and Red{nbsp}Hat accounts and subscriptions].

.Procedure
. Initiate the cluster deployment using the `rosa create cluster` command. You can click the *copy* button on the link:https://console.redhat.com/openshift/create/rosa/getstarted[Set up {product-title} console page] and paste the command in your terminal. This launches the cluster creation process in interactive mode.
+
[caption="Deploy the cluster and set up access"]
image::rosa-cli-15.png[]
+
.. Optional: Add the `--profile <profile_name>` option to the `rosa create cluster` command to use a non-default profile from your `~/.aws/credentials` file, for example:
+
[source,terminal]
----
$ rosa create cluster --profile stage
----
+
If no profile is specified, the default AWS CLI profile determines the AWS infrastructure profile into which the cluster is deployed.

. Specify the billing AWS account.
+
[caption="Specify the Billing Account"]
image::rosa-create-cli-billing-17.png[]
+
* Only AWS accounts that are linked to the user's logged in Red{nbsp}Hat account are shown.
* The specified AWS account is charged for using the {product-title} service.
* An indicator shows if the {product-title} contract is enabled or not enabled for a given AWS billing account.
** If you select an AWS billing account that shows the _Contract enabled_ label, on-demand consumption rates are charged only after the capacity of your pre-paid contract is consumed.
** AWS accounts without the _Contract enabled_ label are charged the applicable on-demand consumption rates.