Skip to content

Commit 2e29ce7

Browse files
committed
Update rosa-hcp-creating-account-wide-sts-roles-and-policies.adoc
Clarified the optional path for environmental variables
1 parent b77ab73 commit 2e29ce7

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

modules/rosa-hcp-creating-account-wide-sts-roles-and-policies.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,18 @@ Before using the {product-title} (ROSA) CLI (`rosa`) to create {hcp-title-first}
2626
----
2727
$ rosa create account-roles --hosted-cp
2828
----
29+
** Optional: Set your prefix as an environmental variable by running the following command:
2930
+
3031
[source,terminal]
3132
----
32-
$ ACCOUNT_ROLES_PREFIX="${ACCOUNT_ROLES_PREFIX}"
33+
$ export ACCOUNT_ROLES_PREFIX="${ACCOUNT_ROLES_PREFIX}"
3334
----
3435
+
36+
Then, run the following command to create your account roles with the environmental variable:
37+
+
3538
[source,terminal]
3639
----
3740
$ rosa create account-roles --hosted-cp --prefix $ACCOUNT_ROLES_PREFIX
3841
----
39-
+
42+
4043
For more information regarding AWS managed IAM policies for ROSA, see link:https://docs.aws.amazon.com/ROSA/latest/userguide/security-iam-awsmanpol.html[AWS managed IAM policies for ROSA].

modules/rosa-operator-config.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,23 @@ When using a {hcp-title} cluster, you must create the Operator IAM roles that ar
2121
+
2222
[source,terminal]
2323
----
24-
$ OPERATOR_ROLES_PREFIX=<prefix_name>
24+
$ export OPERATOR_ROLES_PREFIX=<prefix_name>
2525
----
2626
. To create your Operator roles, run the following command:
2727

2828
+
2929
[source,terminal]
3030
----
31-
$ rosa create operator-roles --hosted-cp --prefix $OPERATOR_ROLES_PREFIX --oidc-config-id $OIDC_ID --installer-role-arn arn:aws:iam::${AWS_ACCOUNT_ID}:role/${ACCOUNT_ROLES_PREFIX}-HCP-ROSA-Installer-Role
31+
$ rosa create operator-roles --hosted-cp --prefix=$OPERATOR_ROLES_PREFIX --oidc-config-id=$OIDC_ID --installer-role-arn arn:aws:iam::${AWS_ACCOUNT_ID}:role/${ACCOUNT_ROLES_PREFIX}-HCP-ROSA-Installer-Role
3232
----
3333
+
3434
The following breakdown provides options for the Operator role creation.
3535
+
3636
[source,terminal]
3737
----
3838
$ rosa create operator-roles --hosted-cp
39-
--prefix $OPERATOR_ROLES_PREFIX <1>
40-
--oidc-config-id $OIDC_ID <2>
39+
--prefix=$OPERATOR_ROLES_PREFIX <1>
40+
--oidc-config-id=$OIDC_ID <2>
4141
--installer-role-arn arn:aws:iam::${AWS_ACCOUNT_ID}:role/${ACCOUNT_ROLES_PREFIX}-HCP-ROSA-Installer-Role <3>
4242
----
4343
+

0 commit comments

Comments
 (0)