Loading...
Loading...
### Terraform Version ```shell Terraform v1.12.2 on linux_amd64 ``` ### Terraform Configuration Files ```terraform module "aws-metrics" { source = "s3::https://my-bucket/some-module-v1.0.21.zip" } ``` ### Debug Output ``` Error: Failed to download module │ │ on main.tf line 255: │ 255: module "aws-metrics" { │ │ Could not download module "aws-metrics" (main.tf:255) source code from │ "s3::https://my-bucket/some-module-v1.0.21.zip": NoCredentialProviders: no valid │ providers in chain │ caused by: EnvAccessKeyNotFound: AWS_ACCESS_KEY_ID or AWS_ACCESS_KEY not found in environment │ SharedCredsLoad: failed to get profile │ EC2RoleRequestError: no EC2 instance role found │ caused by: RequestError: send request failed │ caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": context deadline exceeded (Client.Timeout exceeded while │ awaiting headers) ``` ### Expected Behavior Creddentials provided using AWS_PROFILE environment variable should be used in authentication against s3 for module retrieval ### Actual Behavior Module source does not respect AWS_PROFILE ### Steps to Reproduce 1. terraform init ### Additional Context _No response_ ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.