aleios-cloud / sls-dev-tools

Dev Tools for the Serverless World - Issues, PRs and ⭐️welcome!
https://aleios-cloud.github.io/sls-dev-tools/
MIT License
859 stars 48 forks source link

Single Sign On Support #679

Open simonireilly opened 3 years ago

simonireilly commented 3 years ago

Twitter Handle: (if you'd like a shoutout when we add the feature)

I use AWS Single Sign On (SSO) and would like to use the sls-dev-tools with transparent sign on.

Example

sls-dev-tools --profile dev
# ~/.aws/config
[profile dev]
sso_start_url = "https://my-sso-portal.awsapps.com/start"
sso_region = "us-east-1"
sso_account_id = "123456789011"
sso_role_name = "Developer"
region = "us-west-2"
output = "json"

The sls-dev-tools would handle this by signing in and attaining the temporary credentials for the SSO role in the associated account.

benkehoe commented 2 years ago

AWS SSO support has been added to the SDK in version 2.1093.0.