Skip to content

Instantly share code, notes, and snippets.

@hyjk2000
Last active March 25, 2022 03:16
Show Gist options
  • Save hyjk2000/5a3501b07a675e3755340bd3807694d6 to your computer and use it in GitHub Desktop.
Save hyjk2000/5a3501b07a675e3755340bd3807694d6 to your computer and use it in GitHub Desktop.
Use AWS Vault with AWS CLI Profiles
[default]
[profile jonsmith]
credential_process=aws-vault exec jonsmith --json --prompt=osascript
[profile dev]
source_profile=jonsmith
region=ap-southeast-2
role_arn=arn:aws:iam::123456789:role/DevRole
[profile prod]
source_profile=jonsmith
region=ap-southeast-2
role_arn=arn:aws:iam::123456789:role/ProdRole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment