Skip to content

Commit

Permalink
Merge pull request #75270 from openshift-cherrypick-robot/cherry-pick…
Browse files Browse the repository at this point in the history
…-75219-to-enterprise-4.16

[enterprise-4.16] aws-load-balancer-operator: fix mistakes in STS installation using AWS CLI
  • Loading branch information
mburke5678 authored May 3, 2024
2 parents 28d3dee + 22c6e59 commit 51a9ea2
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 51a9ea2

Please sign in to comment.