Skip to content

Commit

Permalink
Merge pull request #75219 from alebedev87/albo-mistakes-sts-aws-cli
Browse files Browse the repository at this point in the history
aws-load-balancer-operator: fix mistakes in STS installation using AWS CLI
  • Loading branch information
mburke5678 committed Apr 29, 2024
2 parents 046abb6 + ac607dc commit 5efae72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/using-aws-cli-create-iam-role-alb-controller.adoc
Expand Up @@ -45,7 +45,7 @@ EOF
+
[source,terminal]
----
$ aws iam create-role --role-name albo-controller --assume-role-policy-document file://albo-controller-trusted-policy.json
$ aws iam create-role --role-name albo-controller --assume-role-policy-document file://albo-controller-trust-policy.json
----
+
.Example output
Expand Down
8 changes: 4 additions & 4 deletions modules/using-aws-cli-create-iam-role-alb-operator.adoc
Expand Up @@ -4,7 +4,7 @@

:_mod-docs-content-type: PROCEDURE
[id="using-aws-cli-create-iam-role-alb-operator_{context}"]
= Creating an AWS IAM role by using the Cloud Credential Operator utility
= Creating an AWS IAM role by using the AWS CLI

You can use the AWS Command Line Interface to create an IAM role for the AWS Load Balancer Operator. The IAM role is used to interact with subnets and Virtual Private Clouds (VPCs).

Expand Down Expand Up @@ -45,7 +45,7 @@ EOF
+
[source,terminal]
----
$ aws iam create-role --role-name albo-operator --assume-role-policy-document file://albo-operator-trusted-policy.json
$ aws iam create-role --role-name albo-operator --assume-role-policy-document file://albo-operator-trust-policy.json
----
+
.Example output
Expand All @@ -63,12 +63,12 @@ PRINCIPAL arn:aws:iam:777777777777:oidc-provider/<oidc-provider-id>
+
[source,terminal]
----
$ curl -o albo-controller-permission-policy.json https://raw.githubusercontent.com/openshift/aws-load-balancer-operator/main/assets/iam-policy.json
$ curl -o albo-operator-permission-policy.json https://raw.githubusercontent.com/openshift/aws-load-balancer-operator/main/hack/operator-permission-policy.json
----

. Attach the permission policy for the AWS Load Balancer Controller to the IAM role by running the following command:
+
[source,terminal]
----
$ aws iam put-role-policy --role-name albo-controller --policy-name perms-policy-albo-controller --policy-document file://albo-controller-permission-policy.json
$ aws iam put-role-policy --role-name albo-operator --policy-name perms-policy-albo-operator --policy-document file://albo-operator-permission-policy.json
----

0 comments on commit 5efae72

Please sign in to comment.