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

Add region to aws-vault export output #1146

Merged
merged 2 commits into from
Feb 20, 2023
Merged

Add region to aws-vault export output #1146

merged 2 commits into from
Feb 20, 2023

Conversation

mtibben
Copy link
Member

@mtibben mtibben commented Feb 20, 2023

Fixes #1145

@mtibben mtibben merged commit 795b13a into master Feb 20, 2023
@mtibben mtibben deleted the add-region branch February 20, 2023 09:27
Copy link
Contributor

@tekumara tekumara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for adding this!

@@ -188,5 +208,9 @@ func printEnv(input ExportCommandInput, credsProvider aws.CredentialsProvider, p
if creds.CanExpire {
fmt.Printf("%sAWS_CREDENTIAL_EXPIRATION=%s\n", prefix, iso8601.Format(creds.Expires))
}
if region != "" {
fmt.Printf("%sAWS_REGION=%s\n", prefix, region)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we also set AWS_DEFAULT_REGION too in order to support boto3 python clients?

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

Successfully merging this pull request may close these issues.

Include aws region when exporting env vars
2 participants