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

Issue: -A and -R at same time not working #92

Closed
monwolf opened this issue Nov 2, 2021 · 0 comments · Fixed by #98
Closed

Issue: -A and -R at same time not working #92

monwolf opened this issue Nov 2, 2021 · 0 comments · Fixed by #98

Comments

@monwolf
Copy link
Contributor

monwolf commented Nov 2, 2021

Hey, I'm trying to execute as help suggested but with the short agrs isn't working

$ aws-sso.exe exec -A 123456789 -R AdministratorAccess
level=warning msg="Using insecure json file for SecureStore: C:\\Users\\xxxx/aws-sso/store.json"
level=fatal msg="Error running command: Please specify both --account and --role"

I need to specify de role with the arg --role to make it work:

$ aws-sso.exe exec -A 123456789 --role=AdministratorAccess aws sts get-caller-identity
level=warning msg="Using insecure json file for SecureStore: C:\\Users\\xxxx/aws-sso/store.json"
{
    "UserId": "XXXXXXXXXXXXXXXX",
    "Account": "123456789 ",
    "Arn": "arn:aws:sts::123456789 :assumed-role/AWSReservedSSO_AdministratorAccess_31ccd94aa023cc84/xxxx@example.com"
}
synfinatic added a commit that referenced this issue Nov 2, 2021
 * --sts-refresh was using -R.  Now only the long format is accepted
 * -R is now only used by `exec` to specify the role

Fixes: #92
synfinatic added a commit that referenced this issue Nov 2, 2021
 * --sts-refresh was using -R.  Now only the long format is accepted
 * -R is now only used by `exec` to specify the role

Fixes: #92
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

Successfully merging a pull request may close this issue.

1 participant