Skip to content

Instantly share code, notes, and snippets.

@ohaval
Created June 12, 2023 13:42
Show Gist options
  • Save ohaval/1719fb6fb0e206469960c34699ef6065 to your computer and use it in GitHub Desktop.
Save ohaval/1719fb6fb0e206469960c34699ef6065 to your computer and use it in GitHub Desktop.
Sample AWS config file with multiple environment
[default]
region = us-east-1
mfa_serial = arn:aws:iam::1000:mfa/some-developer
[profile some-developer]
Credential_process = aws-vault export --format=json some-developer
[profile dev]
role_arn = arn:aws:iam::2000:role/Admin
source_profile = some-developer
[profile staging]
role_arn = arn:aws:iam::3000:role/ReadOnly
source_profile = some-developer
[profile prod]
role_arn = arn:aws:iam::4000:role/ReadOnly
source_profile = some-developer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment