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

Error fetching S3 data #18

Closed
grassdog opened this issue Sep 5, 2016 · 9 comments
Closed

Error fetching S3 data #18

grassdog opened this issue Sep 5, 2016 · 9 comments

Comments

@grassdog
Copy link

grassdog commented Sep 5, 2016

Hi,

I'm using version v2.0.0-beta2 (love the list normalisation change btw) and have run into an issue when pulling down S3 data.

$ iamy pull
Error fetching S3 data: Error listing buckets: Error while calling ListBuckets: MissingRegion: could not find region configuration130 <nil>

Not sure where configuration130 is coming from. Any ideas on why it's getting an incorrect region?

@bradfeehan
Copy link

I'm affected by this issue as well. There is some discussion on this issue in #13 (comment). Setting default_region in my ~/.aws/config doesn't fix it, but setting region = us-east-1 does fix it for me, and I'm happy with this workaround for now until it gets fixed.

@grassdog
Copy link
Author

grassdog commented Sep 5, 2016

Gotcha. Thanks for the pointer to that.

@mtibben
Copy link
Member

mtibben commented Sep 5, 2016

Ah yes. We should probably provide a clearer error message. The annoyance is that this tool requires the aws tool to be configured correctly, however the SDK doesn't pick up the aws cli config.

This has now been fixed in the SDK aws/aws-sdk-go#761 so the fix should be to enable that feature

@mtibben
Copy link
Member

mtibben commented Sep 9, 2016

I've addressed this issue in #20 @grassdog. Give it a go and see if works for you as I've only been using aws-vault and I'm sure there's other ways of configuring the AWS CLI that I'm not testing

https://github.com/99designs/iamy/releases/tag/v2.0.0-beta3

@grassdog
Copy link
Author

grassdog commented Sep 12, 2016

I run it via aws-vault too. If I set AWS_REGION when I run it, it completes fine.

i.e. AWS_REGION=us-east-1 aws-vault exec admin -- iamy pull

@lox
Copy link
Collaborator

lox commented Sep 12, 2016

Do you have a region defined in your ~/.aws/config for the admin profile?

See https://github.com/99designs/aws-vault/blob/d84315c29bbe45ab979a94f0bcecfcb7ecb307a8/exec.go#L97

@grassdog
Copy link
Author

I had it under the default profile but I guess that wasn't being cascaded down to admin. I just added it to admin and it runs a treat without the ENV variable being set. 🎉

@lox
Copy link
Collaborator

lox commented Sep 12, 2016

Yeah, it's confusing like that. Glad that fixes it for you @grassdog.

@mtibben
Copy link
Member

mtibben commented Sep 20, 2016

OK great, thanks @grassdog, will resolve this issue

@mtibben mtibben closed this as completed Sep 20, 2016
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

4 participants