[Bug]: Provider iam role chaining error when there is an unknown variable in the role_arn argument #39674
Labels
bug
Addresses a defect in current functionality.
service/organizations
Issues and PRs that pertain to the organizations service.
service/vpc
Issues and PRs that pertain to the vpc service.
Terraform Core Version
1.9.7
AWS Provider Version
5.70.0
Affected Resource(s)
All
Expected Behavior
Before provider version 5.67, it was possible to have an unknown variable (output for a ressource for example) for the role_arn argument in provider assume_role configuration without having warning for provider with single assume_role. With the new feature for provider IAM role chaining, this is an error.
Actual Behavior
Provider IAM role chaining with an unknown variable for the role_arn argument results in error and fails to plan.
Since provider version 5.67, there is also a warning with unknown variable for the role_arn for a single assume_role.
Relevant Error/Panic Output Snippet
The argument "role_arn" is required, but no definition was found.
Terraform Configuration Files
providers.tf
main.tf
Steps to Reproduce
Run the above configuration
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: