Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
AWS introduced Simplified developer access to AWS with ‘aws login’ on 19 NOV 2025.
Which create profile in ~/.aws/config e.g.
[profile NAME_OF_PROFILE]
login_session = arn:aws:iam::ACCOUNT_ID:user/USER_NAME
Error
When do terraform init, it shows error as:
╷
│ 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
My runtime:
Terraform v1.14.1
on linux_arm64
+ provider registry.terraform.io/hashicorp/aws v6.28.0
Potential Library Implementation
At the moment, we use github.com/aws/aws-sdk-go-v2/credentials v1.19.12 which is more than 3 years old. Upgrade to newer version might just works.
Community Note
Description
AWS introduced Simplified developer access to AWS with ‘aws login’ on 19 NOV 2025.
Which create profile in ~/.aws/config e.g.
Error
When do terraform init, it shows error as:
My runtime:
Potential Library Implementation
At the moment, we use github.com/aws/aws-sdk-go-v2/credentials v1.19.12 which is more than 3 years old. Upgrade to newer version might just works.