Skip to content

Add region to aws-vault export output#1146

Merged
mtibben merged 2 commits intomasterfrom
add-region
Feb 20, 2023
Merged

Add region to aws-vault export output#1146
mtibben merged 2 commits intomasterfrom
add-region

Conversation

@mtibben
Copy link
Copy Markdown
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
Copy Markdown
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!

Comment thread cli/export.go
fmt.Printf("%sAWS_CREDENTIAL_EXPIRATION=%s\n", prefix, iso8601.Format(creds.Expires))
}
if region != "" {
fmt.Printf("%sAWS_REGION=%s\n", prefix, region)
Copy link
Copy Markdown
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