Terraform plan and apply failing with authentication error inside docker using latest aws provider version 4.0.0 #23150
Labels
authentication
Pertains to authentication; to the provider itself of otherwise.
bug
Addresses a defect in current functionality.
provider
Pertains to the provider itself, rather than any interaction with AWS.
Hi,
I am running terraform using docker. However, with latest aws provider version 4.0.0 is throwing the below error
Error: error configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.
Please see https://registry.terraform.io/providers/hashicorp/aws
for more information about providing credentials.
Error: no EC2 IMDS role found, operation error ec2imds: GetMetadata, canceled, context deadline exceeded
Steps to reproduce:
No issue found when using previous version 3.74.2. Also the same behaviour is not observed when running the terraform outside the docker.
The text was updated successfully, but these errors were encountered: