-
Ensure go is installed on your machine
brew install go
-
Ensure you have pulled the latest from the
master -
Open the terminal in the root of this repo and run the following command
go build -o saml2aws ./cmd/saml2aws
-
You may then use it as normal
saml2aws, ensure you preface with./saml2aws login
-
Find the AWS role and account you want cli creds for.
- Go into console and find account number and role name (IAM should have the arn)
- It will look like this
arn:aws:iam::xxxxxxxxx:role/NMD-Admin-NewMath - NOTE the actual name
NMD-Admin-NewMathmight be different
-
Open the ~/.saml2aws file with an editor
- in the role_arn field put the role arn from 4 in there
-
In the terminal run the following
./nmd-saml2aws login --disable-keychain --profile <whatever you want>
-
Authenticate and you should see the creds refresh in
~/.aws/credentials