commands.sh

aws-google-auth

all

Acquire AWS temporary (STS) credentials using Google Apps as a federated (Single Sign-On) provider.

More info →

Options (6)

-u, --usernameboolean

Log in with Google SSO using the specified username IDP and SP identifiers and set the credentials duration to one hour

Example: aws-google-auth {{[-u|--username]}} {{[email protected]}} {{[-I|--idp-id]}} {{$GOOGLE_IDP_ID}} {{[-S|--sp-id]}} {{$GOOGLE_SP_ID}} {{[-d|--duration]}} {{3600}}
-I, --idp-idboolean

Log in with Google SSO using the specified username IDP and SP identifiers and set the credentials duration to one hour

Example: aws-google-auth {{[-u|--username]}} {{[email protected]}} {{[-I|--idp-id]}} {{$GOOGLE_IDP_ID}} {{[-S|--sp-id]}} {{$GOOGLE_SP_ID}} {{[-d|--duration]}} {{3600}}
-S, --sp-idboolean

Log in with Google SSO using the specified username IDP and SP identifiers and set the credentials duration to one hour

Example: aws-google-auth {{[-u|--username]}} {{[email protected]}} {{[-I|--idp-id]}} {{$GOOGLE_IDP_ID}} {{[-S|--sp-id]}} {{$GOOGLE_SP_ID}} {{[-d|--duration]}} {{3600}}
-d, --durationboolean

Log in with Google SSO using the specified username IDP and SP identifiers and set the credentials duration to one hour

Example: aws-google-auth {{[-u|--username]}} {{[email protected]}} {{[-I|--idp-id]}} {{$GOOGLE_IDP_ID}} {{[-S|--sp-id]}} {{$GOOGLE_SP_ID}} {{[-d|--duration]}} {{3600}}
-a, --ask-roleboolean

Log in asking which role to use (in case of several available SAML roles)

Example: aws-google-auth {{[-u|--username]}} {{[email protected]}} {{[-I|--idp-id]}} {{$GOOGLE_IDP_ID}} {{[-S|--sp-id]}} {{$GOOGLE_SP_ID}} {{[-d|--duration]}} {{3600}} {{[-a|--ask-role]}}
-h, --helpboolean

Display help

Example: aws-google-auth {{[-h|--help]}}

Examples (4)

Log in with Google SSO using the specified username IDP and SP identifiers and set the credentials duration to one hour

aws-google-auth [-u|--username] [email protected] [-I|--idp-id] $GOOGLE_IDP_ID [-S|--sp-id] $GOOGLE_SP_ID [-d|--duration] 3600

Log in asking which role to use (in case of several available SAML roles)

aws-google-auth [-u|--username] [email protected] [-I|--idp-id] $GOOGLE_IDP_ID [-S|--sp-id] $GOOGLE_SP_ID [-d|--duration] 3600 [-a|--ask-role]

Resolve aliases for AWS accounts

aws-google-auth [-u|--username] [email protected] [-I|--idp-id] $GOOGLE_IDP_ID [-S|--sp-id] $GOOGLE_SP_ID [-d|--duration] 3600 [-a|--ask-role] --resolve-aliases

Display help

aws-google-auth [-h|--help]
made by @shridhargupta | data from tldr-pages