Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for AWS SSO #7

Closed
adampie opened this issue Jul 19, 2020 · 4 comments
Closed

Support for AWS SSO #7

adampie opened this issue Jul 19, 2020 · 4 comments

Comments

@adampie
Copy link

adampie commented Jul 19, 2020

Hey, I've recently moved from AWS CLI v1 credentials file to the v2 SSO config file and found that Dynobase doesn't support those new profiles yet. Would be great to have native SSO support but if it's not on the roadmap then I have a workaround for now.

image

Here is an example config file that aws configure sso creates:

❯ cat ~/.aws/config
[profile Development]
sso_start_url = https://SSO_URL.awsapps.com/start
sso_region = eu-west-1
sso_account_id = 1111111111111
sso_role_name = PowerUserAccess
region = eu-west-1
output = json

[profile Production]
sso_start_url = https://SSO_URL.awsapps.com/start
sso_region = eu-west-1
sso_account_id = 1111111111111
sso_role_name = PowerUserAccess
region = eu-west-1
output = json

I have found a workaround using yawsso (from aws/aws-cli#4982), it converts the v2 config into the v1 credentials file:

pip3 install yawsso
touch ~/.aws/credentials
export AWS_PROFILE=Development
aws sso login
yawsso

This creates the standard credentials file which Dynobase works with.

❯ cat ~/.aws/credentials
[Development]
region = eu-west-1
aws_access_key_id =
aws_secret_access_key = 
aws_session_token =
aws_session_expiration =

[Production]
region = eu-west-1
aws_access_key_id =
aws_secret_access_key  =
aws_session_token =
aws_session_expiration =

Ta,
Adam

@jufemaiz
Copy link

ugh really? :(

@adampie adampie closed this as completed Nov 15, 2020
@jufemaiz
Copy link

@adampie was this resolved?

@adampie
Copy link
Author

adampie commented Nov 21, 2020

@jufemaiz Seems like it, it opens the SSO login page.

@RafalWilinski
Copy link
Collaborator

Yep, Dynobase supports SSO out of the box. Just make sure that your AWS profile follows this convention:

[profile my-sso-profile]
sso_start_url = https://your-company-sso-sso.awsapps.com/start
sso_region = us-east-1
sso_account_id = xxx
sso_role_name = admin
region = us-east-1
credential_process = aws-sso-credential-process --profile my-sso-profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants