99designs / aws-vault

A vault for securely storing and accessing AWS credentials in development environments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

provide region when using aws-vault exec -j

tekumara opened this issue · comments

Would it be possible to output the profiles aws region when using aws-vault exec -j (similar to aws-vault exec without -j)?
This will allow me to use profiles that I have set up in different regions.

-j / --json appears to be intended for use with credential_process. The AWS docs on this say:

The command you specify must generate JSON output on STDOUT that matches the following syntax.

{
 "Version": 1,
 "AccessKeyId": "an AWS access key",
 "SecretAccessKey": "your AWS secret access key",
 "SessionToken": "the AWS session token for temporary credentials", 
 "Expiration": "ISO8601 timestamp when the credentials expire"
}  

The docs found say "must" so there is a bit of risk of change here.

@tekumara Are you using -j / --json with the credential_process or rolling your own tooling?

I was looking into this as an alternative to #761 (comment) ie: as a way to get the credentials as env vars so I can set them in the current shell.

Superceded by #1145