Skip to content

Commit

Permalink
Merge pull request #7286 from stolostron/swope-arn4
Browse files Browse the repository at this point in the history
  • Loading branch information
swopebe authored Nov 26, 2024
2 parents 35f33da + 9eda8bb commit 6631ca9
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions clusters/hosted_control_planes/create_role_sts_aws.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<name>` with the role name, which is `hcp-cli-role` in this example. Replace `<file_name>` with the file name, which is `trust-relationship.json` in this command:

+
[source,bash]
----
aws iam create-role \
--role-name <name> \ <1>
--assume-role-policy-document file://<file_name>.json \ <2>
--query "Role.Arn"
aws iam create-role --role-name <hcp-cli-role> --assume-role-policy-document file://trust-relationship.json --query "Role.Arn" --output json
----

+
<1> Replace `<name>` with the role name, for example, `hcp-cli-role`.
<2> Replace `<file_name>` with the file name, for example, `assume-role-policy.json`.

+
See the following example output:

Expand Down

0 comments on commit 6631ca9

Please sign in to comment.