Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://issues.redhat.com/browse/ACM-12901--command structure change … #7286

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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