bigshift icon indicating copy to clipboard operation
bigshift copied to clipboard

aws credentials error with region

Open dharamsk opened this issue 5 years ago • 2 comments

Giving this a whirl for moving some redshift data to BQ. Thanks for the recent bug fixes.

It looks like this should be something like @config[:aws_credentials].keys?('region')

When I specify region in my aws-credentials.json file, I get the 'match' for nil:NilClass error. Works fine when I remove region.

But since I'm authing to aws using the json file, it assumes I've specified region according to the above code and it fails with AWS Region not specified

dharamsk avatar Apr 08 '19 22:04 dharamsk

more info on this: My region was already set in my terminal env AWS_REGION=us-west-1 and was getting pulled in for the upload step, which succeeds. If I unset AWS_REGION, the upload fails with the expected AWS Region not specified error. For some reason, the transfer step fails to authenticate to aws, even though the upload had no problem. Perhaps it isn't an unset region issue, but something else.

dharamsk avatar Apr 09 '19 01:04 dharamsk

What you say makes sense. I don't actively work on this tool, but if you would like to fix it I would gladly review the PR and release a new version.

iconara avatar Apr 14 '19 12:04 iconara