Versent / unicreds

unicreds is a CLI which manages secrets in AWS using DynamoDB and KMS.
https://github.com/Versent/unicreds
MIT License
117 stars 39 forks source link

error=MissingRegion: could not find region configuration -- still exists in 1.7.0 #83

Open felipe1982 opened 6 years ago

felipe1982 commented 6 years ago

I noted that 3fbd8ba attempts to resolve the error one gets when region is not passed on the command line:

   ⨯ failed                    error=MissingRegion: could not find region configuration

However I still get this error message. I have added the region to both the default and velo profiles in ~/.aws/config.

My command is: unicreds --profile velo get <mysecret>

Moreover these commands do not work.

AWS_DEFAULT_REGION=ap-southeast-2 unicreds --profile velo get jenkins-ssh-private-key
   ⨯ failed                    error=MissingRegion: could not find region configuration
AWS_REGION=ap-southeast-2 unicreds --profile velo get jenkins-ssh-private-key
   ⨯ failed                    error=NoCredentialProviders: no valid providers in chain. Deprecated.

But this one does unicreds --profile velo get <mysecret> -r ap-southeast-2