Last active
February 3, 2022 19:03
-
-
Save abuxton/eb893af250c5b7884c9a49c2bc33328d to your computer and use it in GitHub Desktop.
provider alias
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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