File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ Configure a user in AWS IAM that is required to use MFA to connect to S3
25
25
```
26
26
[<S3-ROLE-NAME>]
27
27
source_profile=<S3_USER>
28
- role_arn=arn:aws:iam::930717317329 :role/<S3-ROLE-NAME>
29
- mfa_serial=arn:aws:iam::930717317329 :mfa/<MFA-DEVICE-NAME>
28
+ role_arn=arn:aws:iam::<Account ID> :role/<S3-ROLE-NAME>
29
+ mfa_serial=arn:aws:iam::<Account ID> :mfa/<MFA-DEVICE-NAME>
30
30
```
31
31
32
32
### Create IAM role allowing access to S3 enforcing the MFA requirement
@@ -55,8 +55,8 @@ Configure a user in AWS IAM that is required to use MFA to connect to S3
55
55
```
56
56
[<S3-ROLE-NAME>]
57
57
source_profile=<S3_USER>
58
- role_arn=arn:aws:iam::930717317329 :role/<S3-ROLE-NAME>
59
- mfa_serial=arn:aws:iam::930717317329 :mfa/<MFA-DEVICE-NAME>
58
+ role_arn=arn:aws:iam::<Account ID> :role/<S3-ROLE-NAME>
59
+ mfa_serial=arn:aws:iam::<Account ID> :mfa/<MFA-DEVICE-NAME>
60
60
```
61
61
This will require the user to enter a MFA code when assuming a role with a S3 access policy attached when connecting.
62
62
@@ -91,7 +91,7 @@ Configure a user in AWS IAM that is required to use MFA to connect to S3
91
91
{
92
92
"Effect": "Allow",
93
93
"Action": "sts:AssumeRole",
94
- "Resource": "arn:aws:iam::ACCOUNT_ID :role/S3-ROLE-NAME"
94
+ "Resource": "arn:aws:iam::<Account ID> :role/S3-ROLE-NAME"
95
95
}
96
96
]
97
97
}
You can’t perform that action at this time.
0 commit comments