How to run this test:
- Ensure you have default credentials in your AWS CLI locations and edit the
aws.config
file to reference a role that can be assume by your default credentials. terraform init
terraform apply
will use your default credentials and will output the caller identity as suchAWS_PROFILE=foo AWS_CONFIG_FILE=aws.config terraform apply
will use the profilefoo
mentioned in theaws.config
file and will output the caller identity as such