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: