Assuming role work only with aws_profile variable.
When passing aws_access_key and aws_secret_key, the role is not assumed.
Error:
HTTP 403 Forbidden: Permission denied. Please ensure that the correct credentials are being used to access the cluster.
The role should be assumed when passing aws_access_key and aws_secret_key or when passing environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
What is your host/environment?
Amazon Linux AMI 2018.03
Terraform v1.3.9
Provider 2.0.0
What is the bug?
Assuming role work only with
aws_profile
variable. When passingaws_access_key
andaws_secret_key
, the role is not assumed. Error:HTTP 403 Forbidden: Permission denied. Please ensure that the correct credentials are being used to access the cluster.
How can one reproduce the bug?
Working case :
Not working case:
What is the expected behavior?
The role should be assumed when passing
aws_access_key
andaws_secret_key
or when passing environment variablesAWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
What is your host/environment?
Amazon Linux AMI 2018.03 Terraform v1.3.9 Provider 2.0.0
Do you have any screenshots?