You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
S3 backend should be inited successfully via OIDC role assumption
Actual Behavior
Fails to find credentials:
Error: failed to refresh cached credentials, no EC2 IMDS role found,
│ operation error ec2imds: GetMetadata, failed to get API token, operation
│ error ec2imds: getToken, http response error StatusCode: 400, request to
│ EC2 IMDS failed
Steps to Reproduce
Running terraform init with a similar setup
Additional Context
When switching the backend to local whilst keeping the existing provider config, the role assumption works. Given I'm able to assume the same account/role combination via the aws provider this rules out any OIDC trust relationship issues.
References
No response
The text was updated successfully, but these errors were encountered:
Thanks for this report! The S3 backend is managed by the AWS Provider team at HashiCorp, this issue has been put into their triage queue. Thanks again!
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/b4ird/4ca84515d3a501af8ddacd6397bd5621#file-gistfile1-txt
Expected Behavior
S3 backend should be inited successfully via OIDC role assumption
Actual Behavior
Fails to find credentials:
Steps to Reproduce
Running terraform init with a similar setup
Additional Context
When switching the backend to local whilst keeping the existing provider config, the role assumption works. Given I'm able to assume the same account/role combination via the aws provider this rules out any OIDC trust relationship issues.
References
No response
The text was updated successfully, but these errors were encountered: