Skip to content

Commit c6b4cab

Browse files
committed
Use placeholder for account id.
1 parent 7a0ff31 commit c6b4cab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tutorials/s3_iam_role_mfa.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Configure a user in AWS IAM that is required to use MFA to connect to S3
2525
```
2626
[<S3-ROLE-NAME>]
2727
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>
3030
```
3131
3232
### 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
5555
```
5656
[<S3-ROLE-NAME>]
5757
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>
6060
```
6161
This will require the user to enter a MFA code when assuming a role with a S3 access policy attached when connecting.
6262
@@ -91,7 +91,7 @@ Configure a user in AWS IAM that is required to use MFA to connect to S3
9191
{
9292
"Effect": "Allow",
9393
"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"
9595
}
9696
]
9797
}

0 commit comments

Comments
 (0)