Open mikerj1 opened 5 years ago
Is there way to point to an aws cred profile? I have many profiles and haven't figured out how to point to a specific profile in the way aws cli provides, which is --profile
@mikerj1 Yea - so that file by default will use the "default aws" cred file, but you can change it to any.
So lets say you had:
/Users/$yourusername/.aws/project124
You can change:
###############################################################################
# CUSTOM CONFIGURATION #
# see: 'Change this line' #
###########################
provider "aws" {
# *** Change ONLY THIS LINE: ***
shared_credentials_file = "/Users/user/.aws/credentials"
region = "${var.aws_region}"
}
To point to it with the shared_credentials_file
line.
@mikerj1 I believe something will break if Terraform is not aware of the "provider".
That is, I believe you need to link the credentials file. Which having the ENV variables will allow the 3rd-party tools/modules/cli to work, it is not guaranteed to work going forward with terraform.