Open jar-b opened 1 year ago
@manobi this should actually work, since the AWS SDK for Go handles the environment variables. I've created a branch that (re-)enables API request logging for the authentication flow at https://github.com/hashicorp/terraform/tree/s3/log-base.
Can you try again using that branch and with the environment variable TF_LOG
set to DEBUG
and share the log, please?
Can you also please share your backend configuration, please?
I would love to help with this test, but I only have this trust relationship for my CI/CD runners.
I can't try it until it's published as a docker image on docker hub or something like it.
The logging update should be released in v1.6.0-beta2
Have it already being released to public docker registries?
No, v1.6.0-beta2
has not yet been built and released at all, thus it is not in Dockerhub. See also: https://hub.docker.com/r/hashicorp/terraform/tags
Hi @manobi, v1.6.0-beta3
is now on Dockerhub
Hi @manobi. Now that v1.6 has been released, are you still seeing this problem? If so, can you please share your backend configuration and a debug log generated by setting the environment variable TF_LOG
to DEBUG
I'm seeing a similar issue with v1.6.5, however the steps to reproduce are a bit different (set AWS_WEB_IDENTITY_TOKEN_FILE
env var, set role_arn
in backend config).
Initializing the backend...
╷
│ Error: Missing Required Value
│
│ on main.tf line 9, in terraform:
│ 9: backend "s3" {
│
│ Exactly one of web_identity_token, web_identity_token_file must be set.
╵
Perhaps I'm barking up the wrong tree and this is a SDK issue, similar to: https://github.com/hashicorp/terraform-provider-aws/issues/27019.
Terraform Version
Terraform Configuration Files
Debug Output
https://github.com/hashicorp/terraform/pull/31276#issuecomment-1703530574
Expected Behavior
The
assume_role_with_web_identity
block should respect the corresponding AWS environment variables.Actual Behavior
Role assumption flow fails.
Steps to Reproduce
AWS_ROLE_ARN
andAWS_WEB_IDENTITY_TOKEN_FILE
environment variables.terraform init
Additional Context
Originally reported in this comment: https://github.com/hashicorp/terraform/pull/31276#issuecomment-1703530574
References
Relates #31276 Relates #33730