-
Notifications
You must be signed in to change notification settings - Fork 74
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
aws-sso-util console should just work if AWS_PROFILE is set to an SSO-enabled profile #72
Comments
Funny, I opened up the issues tab to see if anybody else had said the same thing. Given all the other profile-centered goodness of |
This is the same as #61. In general, the idea behind Wouldn't it be confusing if Is what you're looking for a generic console launcher? As in, you don't have a use for the saveable/shareable config token functionality provided by |
aws/aws-cli#4642 is what I want, but it doesn't exist so I was hoping this tool would provide it and the AWS_PROFILE variable that I already have set (it's the right way to use AWS SSO) provides you all the info you need to generate the args required by |
My point is that if you have the following config file: [profile sso-profile]
sso_start_url = https://foo.awsapps.com/start
sso_region = us-east-2
sso_account_id = 123456789012
sso_role_name = SSORole
region = us-west-2
[profile assumed-role-profile]
role_arn = arn:aws:iam::123456789012:role/RoleToAssume
source_profile = sso-profile then |
You could check out |
That's basically what I'm saying, there are tools out there to do this in a comprehensive way. The only difference I'd draw with existing tools if I was making a general-purpose launcher is that I wouldn't aim to fully manage the credentials; |
Thankfully |
Right now
--account-id
and--role-name
as well as--sso-start-url
and--sso-region
, and--region
are all required when usingaws-sso-util console launch
oraws-sso-util get-token-config
and at least in my common case those can generally all be inferred from the config settings in~/.aws/config
ifAWS_PROFILE
env var is set. Similarly I would expectAWS_DEFAULT_REGION
env var to take priority if not specific on cli.I'd then be able to run
aws-sso-util console launch
with no arguments!The text was updated successfully, but these errors were encountered: