|
4 | 4 |
|
5 | 5 | :_content-type: PROCEDURE |
6 | 6 | [id="efs-sts_{context}"] |
7 | | -= Configuring AWS EFS CSI Driver Operator with Security Token Service |
| 7 | += Obtaining a role Amazon Resource Name for Security Token Service |
8 | 8 |
|
9 | | -This procedure explains how to configure the AWS EFS CSI Driver Operator with {product-title} on AWS Security Token Service (STS). |
10 | | - |
11 | | -Perform this procedure before you have installed the AWS EFS CSI Operator, but not yet installed the AWS EFS CSI driver as part of the _Installing the AWS EFS CSI Driver Operator_ procedure. |
| 9 | +This procedure explains how to obtain a role Amazon Resource Name (ARN) to configure the AWS EFS CSI Driver Operator with {product-title} on AWS Security Token Service (STS). |
12 | 10 |
|
13 | 11 | [IMPORTANT] |
14 | 12 | ==== |
15 | | -If you perform this procedure after installing the driver and creating volumes, your volumes will fail to mount into pods. |
| 13 | +Perform this procedure before you install the AWS EFS CSI Driver Operator (see _Installing the AWS EFS CSI Driver Operator_ procedure). |
16 | 14 | ==== |
17 | 15 |
|
18 | 16 | .Prerequisites |
19 | 17 |
|
20 | | -* You have access to the cluster as a user with the cluster-admin role. |
| 18 | +* Access to the cluster as a user with the cluster-admin role. |
21 | 19 | * AWS account credentials |
22 | | -* You have installed the AWS EFS CSI Operator. |
23 | 20 |
|
24 | 21 | .Procedure |
25 | 22 |
|
26 | | -To configure the AWS EFS CSI Driver Operator with STS: |
| 23 | +You can obtain the ARN role in multiple ways. The following procedure shows one method that uses the same concept and CCO utility (`ccoctl`) binary tool as cluster installation. |
| 24 | + |
| 25 | +To obtain a role ARN for configuring AWS EFS CSI Driver Operator using STS: |
27 | 26 |
|
28 | | -. Extract the CCO utility (`ccoctl`) binary from the {product-title} release image, which you used to install the cluster with STS. For more information, see "Configuring the Cloud Credential Operator utility". |
| 27 | +. Extract the `ccoctl` from the {product-title} release image, which you used to install the cluster with STS. For more information, see "Configuring the Cloud Credential Operator utility". |
29 | 28 |
|
30 | 29 | . Create and save an EFS `CredentialsRequest` YAML file, such as shown in the following example, and then place it in the `credrequests` directory: |
31 | 30 | + |
@@ -85,23 +84,30 @@ $ ccoctl aws create-iam-roles --name my-aws-efs --credentials-requests-dir credr |
85 | 84 | 2022/03/21 06:24:45 Updated Role policy for Role my-aws-efs-openshift-cluster-csi-drivers-aws-efs-cloud- |
86 | 85 | ---- |
87 | 86 |
|
88 | | -. Create the AWS EFS cloud credentials and secret: |
89 | | -+ |
90 | | -[source,terminal] |
91 | | ----- |
92 | | -$ oc create -f <path_to_ccoctl_output_dir>/manifests/openshift-cluster-csi-drivers-aws-efs-cloud-credentials-credentials.yaml |
93 | | ----- |
94 | | -+ |
95 | | -.Example |
| 87 | +. Copy the role ARN from the first line of the _Example output_ in the preceding step. The role ARN is between "Role" and "created". In this example, the role ARN is "arn:aws:iam::123456789012:role/my-aws-efs -openshift-cluster-csi-drivers-aws-efs-cloud". |
96 | 88 | + |
97 | | -[source,terminal] |
98 | | ----- |
99 | | -$ oc create -f /manifests/openshift-cluster-csi-drivers-aws-efs-cloud-credentials-credentials.yaml |
100 | | ----- |
101 | | -+ |
102 | | -.Example output |
103 | | -+ |
104 | | -[source,terminal] |
105 | | ----- |
106 | | -secret/aws-efs-cloud-credentials created |
107 | | ----- |
| 89 | +You will need the role ARN when you install the AWS EFS CSI Driver Operator. |
| 90 | + |
| 91 | +.Next steps |
| 92 | + |
| 93 | +//??the below step not needed for 4.14? ??? |
| 94 | +//. Create the AWS EFS cloud credentials and secret: |
| 95 | +//+ |
| 96 | +//[source, terminal] |
| 97 | +//---- |
| 98 | +//$ oc create -f <path_to_ccoctl_output_dir>/manifests/openshift-cluster-csi-drivers-aws-efs-cloud-credentials-credentials.yaml |
| 99 | +//---- |
| 100 | +//+ |
| 101 | +//.Example |
| 102 | +//+ |
| 103 | +//[source, terminal] |
| 104 | +//---- |
| 105 | +//$ oc create -f /manifests/openshift-cluster-csi-drivers-aws-efs-cloud-credentials-credentials.yaml |
| 106 | +//---- |
| 107 | +//+ |
| 108 | +//.Example output |
| 109 | +//+ |
| 110 | +//[source, terminal] |
| 111 | +//---- |
| 112 | +//secret/aws-efs-cloud-credentials created |
| 113 | +//---- |
0 commit comments