Saml2aws


./saml2aws configure -a prod

./saml2aws login -a prod --role=arn:aws:iam::<accountid>:role/CMS-ROL-Admin
 CMS-ROL-AUTOMATION

type %USERPROFILE%\.aws\credentials

aws s3 ls --profile saml --region us-west-2

Sample Profile Files

[default]
app_id                  = #####
url                     = https://account.activedirectory.windowsazure.com
username                = lsmith@domain
provider                = AzureAD
mfa                     = Auto
skip_verify             = false
timeout                 = 0
aws_urn                 = urn:amazon:webservices
aws_session_duration    = 3600
aws_profile             = dev
resource_id             =
subdomain               =
role_arn                =
region                  =
http_attempts_count     =
http_retry_delay        =
credentials_file        =
name                    = default
saml_cache              = false
saml_cache_file         =
target_url              =
disable_remember_device = false
disable_sessions        = false

[dev]
name                    = dev
app_id                  = #####
url                     = https://account.activedirectory.windowsazure.com
username                = lsmith@domain
provider                = AzureAD
mfa                     = Auto
skip_verify             = false
timeout                 = 0
aws_urn                 = urn:amazon:webservices
aws_session_duration    = 3600
aws_profile             = saml
resource_id             =
subdomain               =
role_arn                =
region                  =
http_attempts_count     =
http_retry_delay        =
credentials_file        =
saml_cache              = false
saml_cache_file         =
target_url              =
disable_remember_device = false
disable_sessions        = false

[prod]
name                    = prod
app_id                  = #####
url                     = https://account.activedirectory.windowsazure.com
username                = lsmith@domain
provider                = AzureAD
mfa                     = Auto
skip_verify             = false
timeout                 = 0
aws_urn                 = urn:amazon:webservices
aws_session_duration    = 3600
aws_profile             = saml
resource_id             =
subdomain               =
role_arn                =
region                  =
http_attempts_count     =
http_retry_delay        =
credentials_file        =
saml_cache              = false
saml_cache_file         =
target_url              =
disable_remember_device = false
disable_sessions        = false