From e3c90eb6c601078c564353222effb4551d5c69fe Mon Sep 17 00:00:00 2001 From: brandi swope Date: Mon, 25 Nov 2024 19:09:14 -0500 Subject: [PATCH] https://issues.redhat.com/browse/ACM-12901--command structure change and edits --- .../hosted_control_planes/create_role_sts_aws.adoc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/clusters/hosted_control_planes/create_role_sts_aws.adoc b/clusters/hosted_control_planes/create_role_sts_aws.adoc index 927f5ef623..2f8dcf7439 100644 --- a/clusters/hosted_control_planes/create_role_sts_aws.adoc +++ b/clusters/hosted_control_planes/create_role_sts_aws.adoc @@ -42,21 +42,14 @@ You need the `arn` value from the output to use in the next step. } ---- -. Create the Identity and Access Management (IAM) role by running the following command: +. Create the Identity and Access Management (IAM) role by running the following command. Replace `` with the role name, which is `hcp-cli-role` in this example. Replace `` with the file name, which is `trust-relationship.json` in this command: + [source,bash] ---- -aws iam create-role \ ---role-name \ <1> ---assume-role-policy-document file://.json \ <2> ---query "Role.Arn" +aws iam create-role --role-name --assume-role-policy-document file://trust-relationship.json --query "Role.Arn" --output json ---- -+ -<1> Replace `` with the role name, for example, `hcp-cli-role`. -<2> Replace `` with the file name, for example, `assume-role-policy.json`. - + See the following example output: