-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsaml2aws-osx.txt
More file actions
35 lines (27 loc) · 1.03 KB
/
Copy pathsaml2aws-osx.txt
File metadata and controls
35 lines (27 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# See also: http://thebluenode.com/use-saml2aws-log-aws-via-single-sign-sso-use-aws-cli
####
# download samlaws https://github.com/Versent/saml2aws#install
$ brew tap versent/homebrew-taps
$ brew install saml2aws
$ brew install awscli
$ saml2aws configure
Provider: ADFS
MFA: VIP
AWS profile: myprofile
URL: https://URL.GIVEN.BY.ORGANIZATION
username: <your login>
password: <your password>
####
$ saml2aws login
Using IDP Account default to access ADFS https://URL.GIVEN.BY.ORGANIZATION
To use saved password just hit enter.
? Username <username>
? Password <password>
Authenticating as <username> ...
? Security Token [000000] 804443
Selected role: arn:aws:iam::111122223333:role/xxxx
Requesting AWS credentials using SAML assertion
Logged in as: arn:aws:sts::111122223333:assumed-role/xxxx/yyyy
Your new access key pair has been stored in the AWS configuration
Note that it will expire at 2019-08-29 11:23:51 +1000 AEST
To use this credential, call the AWS CLI with the --profile option (e.g. aws --profile myprofile ec2 describe-instances).