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

Granted breaks the AWS_REGION env var #92

Closed
chrnorm opened this issue Mar 4, 2022 · 2 comments
Closed

Granted breaks the AWS_REGION env var #92

chrnorm opened this issue Mar 4, 2022 · 2 comments

Comments

@chrnorm
Copy link
Contributor

chrnorm commented Mar 4, 2022

Running on the latest build on main, running the following steps causes the AWS CLI to return an error:

➜ assume PROFILE
➜ aws s3 ls

Invalid endpoint: https://s3..amazonaws.com

This is because we are exporting AWS_REGION to be an empty string.

Additionally, running

➜ assume -r ap-southeast-2 PROFILE
➜ aws s3 ls

Still causes the same problem.

Workarounds

Manually exporting the AWS_REGION variable after running assume still works.

export AWS_REGION=us-east-1

System details

  • MacOS 12.1
  • Fish shell
@chrnorm
Copy link
Contributor Author

chrnorm commented Mar 4, 2022

Update: just tried on ZSH and also experience the issue there.

@chrnorm
Copy link
Contributor Author

chrnorm commented Mar 4, 2022

Our CLI won't export AWS_REGION if the Go binary returns a "None" string, we need to correctly return this string

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

2 participants