Skip to content

Instantly share code, notes, and snippets.

@abuxton
Last active February 3, 2022 19:03
Show Gist options
  • Save abuxton/eb893af250c5b7884c9a49c2bc33328d to your computer and use it in GitHub Desktop.
Save abuxton/eb893af250c5b7884c9a49c2bc33328d to your computer and use it in GitHub Desktop.
provider alias
provider "aws" {
region = "us-east-1"
## uses default env_var from aws
#AWS_ACCESS_KEY_ID="anaccesskey"
#AWS_SECRET_ACCESS_KEY="asecretkey"
#AWS_DEFAULT_REGION="us-west-2"
}
# Additional provider configuration for west coast region; resources can
# reference this as `aws.alt`.
provider "aws" {
alias = "alt"
access_key = var.aws_access_key_alt #TF_VAR_aws_access_key_alt=<alt key>
secret_key = var.aws_access_key_alt
region = var.aws_alt_region
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment