Skip to content

Commit 8072bb8

Browse files
AndriMarAndrew Wheal
authored andcommitted
Fix example in README
Fixing example of Assuming a role in multiple accounts: `—` should be `--` when using profile argument
1 parent 4115af0 commit 8072bb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,13 +271,13 @@ INFO - Success! Your credentials will expire in 1800 seconds at: 2016-10-24 18:5
271271
Assuming a role in multiple accounts and be able to work with both accounts simultaneously (i.e. production an staging):
272272

273273
```sh
274-
$> aws-mfa profile myorganization --assume-role arn:aws:iam::222222222222:role/Administrator --short-term-suffix production --long-term-suffix none --role-session-name production
274+
$> aws-mfa --profile myorganization --assume-role arn:aws:iam::222222222222:role/Administrator --short-term-suffix production --long-term-suffix none --role-session-name production
275275
INFO - Validating credentials for profile: myorganization-production with assumed role arn:aws:iam::222222222222:role/Administrator
276276
INFO - Your credentials have expired, renewing.
277277
Enter AWS MFA code for device [arn:aws:iam::111111111111:mfa/me] (renewing for 3600 seconds):123456
278278
INFO - Success! Your credentials will expire in 3600 seconds at: 2017-07-10 07:16:43+00:00
279279

280-
$> aws-mfa profile myorganization --assume-role arn:aws:iam::333333333333:role/Administrator --short-term-suffix staging --long-term-suffix none --role-session-name staging
280+
$> aws-mfa --profile myorganization --assume-role arn:aws:iam::333333333333:role/Administrator --short-term-suffix staging --long-term-suffix none --role-session-name staging
281281
INFO - Validating credentials for profile: myorganization-staging with assumed role arn:aws:iam::333333333333:role/Administrator
282282
INFO - Your credentials have expired, renewing.
283283
Enter AWS MFA code for device [arn:aws:iam::111111111111:mfa/me] (renewing for 3600 seconds):123456

0 commit comments

Comments
 (0)