aws-google-auth
TLDR
Authenticate and get AWS credentials using Google SSO
SYNOPSIS
aws-google-auth [-h] [-u username] [-I idp-id] [-S sp-id] [-R role-arn] [-d duration] [-p profile]
DESCRIPTION
aws-google-auth is a command-line tool that acquires AWS temporary (STS) credentials using Google Workspace (formerly G Suite) as a federated SAML identity provider. It enables single sign-on (SSO) from Google accounts to AWS.
The tool authenticates against Google, retrieves a SAML assertion, and exchanges it for AWS temporary credentials stored in the AWS credentials file. It supports MFA including TOTP and U2F security keys.
PARAMETERS
-u, --username
Google account email address-I, --idp-id
Google Identity Provider ID-S, --sp-id
Google Service Provider ID for AWS-R, --role-arn
AWS IAM role ARN to assume-d, --duration
Credential duration in seconds (default: 3600)-p, --profile
AWS profile name to store credentials-a, --ask-role
Prompt for role selection even if only one available--no-cache
Disable caching of IDP and SP IDs
CAVEATS
Requires SAML SSO configuration between Google Workspace and AWS IAM. U2F security keys do not work in Docker containers due to USB device access limitations. The Google IDP and SP IDs must be obtained from the Google Admin console under SAML Apps settings.
HISTORY
Created by Cevo Australia as an open-source tool to bridge Google Workspace authentication with AWS. First released around 2017 to address the need for Google-based SSO to AWS accounts. Available via PyPI and Docker Hub.


