Loading...
Loading...
### Terraform Version ```shell Terraform v1.14.0 on linux_amd64 + provider registry.terraform.io/hashicorp/aws v6.18.0 Your version of Terraform is out of date! The latest version is 1.14.1. You can update by downloading from https://developer.hashicorp.com/terraform/install ``` ### Terraform Configuration Files ```terraform terraform { required_providers { aws = { source = "hashicorp/aws" version = "6.25.0" } } backend "s3" { bucket = "bucket-name" key = "state.tfstate" region = "eu-west-1" } } provider "aws" { region = "eu-west-1" default_tags { tags = { Environment = "dev" Owner = "Jane Doe" Project = local.service_name } } } ``` ### Debug Output I do not think is needed since the issue is very straightforward ### Expected Behavior Terraform S3 backend should use the credentials set up after aws login command. ### Actual Behavior Terraform init fails with this error: ``` ╷ │ Error: No valid credential sources found │ │ Please see https://developer.hashicorp.com/terraform/language/backend/s3 │ for more information about providing credentials. │ │ Error: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, │ request canceled, context deadline exceeded │ ╵ ``` ### Steps to Reproduce 1. aws login 2. 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.