1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/aws-google-auth.md

21 lines
1 KiB
Markdown
Raw Normal View History

2019-10-03 09:59:00 +02:00
# aws-google-auth
> Acquire AWS temporary (STS) credentials using Google Apps as a federated (Single Sign-On) provider.
2019-10-03 09:59:00 +02:00
> More information: <https://github.com/cevoaustralia/aws-google-auth>.
- Log in with Google SSO using the specified username IDP and SP identifiers and set the credentials duration to one hour:
2019-10-03 09:59:00 +02:00
`aws-google-auth {{[-u|--username]}} {{example@example.com}} {{[-I|--idp-id]}} {{$GOOGLE_IDP_ID}} {{[-S|--sp-id]}} {{$GOOGLE_SP_ID}} {{[-d|--duration]}} {{3600}}`
2019-10-03 09:59:00 +02:00
- Log in asking which role to use (in case of several available SAML roles):
2019-10-03 09:59:00 +02:00
`aws-google-auth {{[-u|--username]}} {{example@example.com}} {{[-I|--idp-id]}} {{$GOOGLE_IDP_ID}} {{[-S|--sp-id]}} {{$GOOGLE_SP_ID}} {{[-d|--duration]}} {{3600}} {{[-a|--ask-role]}}`
2019-10-03 09:59:00 +02:00
- Resolve aliases for AWS accounts:
`aws-google-auth {{[-u|--username]}} {{example@example.com}} {{[-I|--idp-id]}} {{$GOOGLE_IDP_ID}} {{[-S|--sp-id]}} {{$GOOGLE_SP_ID}} {{[-d|--duration]}} {{3600}} {{[-a|--ask-role]}} --resolve-aliases`
2019-10-03 09:59:00 +02:00
- Display help:
2019-10-03 09:59:00 +02:00
`aws-google-auth {{[-h|--help]}}`