Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves #93: Uses boto3 to fid region if possible
Rather than depending on the partially implemented `AWS_DEFAULT_REGION` check, this change makes it so credstash relies more heavily on boto3 to discover regions. Now we can do things like define an `~/.aws/config` file that looks like this: ```ini [profile work] region=us-west-2 ``` and run credstash like this: ```command AWS_PROFILE=work credstash -n arn:aws:iam::000000000000:role/some-role get test ``` and it will successfully find the correct region Only in the case where the region is absolutely not found, does credstash then default to us-east-1. It's slightly backward incompatible, but I think it's a nice improvement.
- Loading branch information