Skip to content

Commit 5efae72

Browse files
authored
Merge pull request #75219 from alebedev87/albo-mistakes-sts-aws-cli
aws-load-balancer-operator: fix mistakes in STS installation using AWS CLI
2 parents 046abb6 + ac607dc commit 5efae72

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

modules/using-aws-cli-create-iam-role-alb-controller.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ EOF
4545
+
4646
[source,terminal]
4747
----
48-
$ aws iam create-role --role-name albo-controller --assume-role-policy-document file://albo-controller-trusted-policy.json
48+
$ aws iam create-role --role-name albo-controller --assume-role-policy-document file://albo-controller-trust-policy.json
4949
----
5050
+
5151
.Example output

modules/using-aws-cli-create-iam-role-alb-operator.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

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

99
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).
1010

@@ -45,7 +45,7 @@ EOF
4545
+
4646
[source,terminal]
4747
----
48-
$ aws iam create-role --role-name albo-operator --assume-role-policy-document file://albo-operator-trusted-policy.json
48+
$ aws iam create-role --role-name albo-operator --assume-role-policy-document file://albo-operator-trust-policy.json
4949
----
5050
+
5151
.Example output
@@ -63,12 +63,12 @@ PRINCIPAL arn:aws:iam:777777777777:oidc-provider/<oidc-provider-id>
6363
+
6464
[source,terminal]
6565
----
66-
$ curl -o albo-controller-permission-policy.json https://raw.githubusercontent.com/openshift/aws-load-balancer-operator/main/assets/iam-policy.json
66+
$ curl -o albo-operator-permission-policy.json https://raw.githubusercontent.com/openshift/aws-load-balancer-operator/main/hack/operator-permission-policy.json
6767
----
6868

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

0 commit comments

Comments
 (0)