Closed hazam closed 1 month ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @hazam 👋 Thank you for taking the time to raise this! This is a bit of an interesting scenario, because the provider doesn't do anything special in order to work with Dynamic Provider credentials. That feature is something built into HCP Terraform that ultimately just cleverly utilizes how the provider works in general.
With that in mind, I would recommend that you file a support ticket with the HCP Terraform team so that they can try to track down the root cause of this. Looking over the provider's changelog, the only thing that sticks out to me as a potential cause is that the provider was upgraded to use Go 1.23. We don't anticipate that the Go upgrade would cause any downstream issues, but stranger things have happened.
I'll keep this issue open for now as well, in case my initial thought are incorrect.
Done, support request #160016 on HCP side. Will keep you posted
@hazam Assuming that the Go 1.22.6 downgrade with Terraform AWS Provider v5.67.0 fixed this problem, I'm going to close this issue. Discussion will continue in https://github.com/hashicorp/terraform-provider-aws/issues/39311.
[!WARNING] This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.
Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Core Version
1.4.2
AWS Provider Version
5.65.0
Affected Resource(s)
(probably) Dynamic Provider Credentials when using hosted agents (1.15.4 in our case). Reverting to 5.63.1 solves the issue.
Expected Behavior
Provider is autenticated correctly even when executed in hosted agents
Actual Behavior
Provider is not autenticated when executed in hosted agents and fails.
Relevant Error/Panic Output Snippet
Reverting to 5.63.1 solves the issue.
Terraform Configuration Files
Steps to Reproduce
Start a plan with dynamic provider configured inside a hosted agent (1.15.4)
Debug Output