-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: provider: (#39255) - Not allowing empty role_arn under assume_role block #39306
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Workaround works with terraform 1.9.2
Not work with 1.0.10
|
WorkAround success with older terraformTerraform version 1.0.10
|
Duplicate of #39296 ? |
Yes the same issue. |
This will be resolved by #39328. We're planning to release a bug fix update this Monday, 16 September. In addition to the workarounds listed above, you can also set the value of variable "var.aws_assume_role" {
type = string
default = null
} |
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. |
This functionality has been released in v5.68.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Terraform Core Version
1.0.10 , 1.9.2
AWS Provider Version
v5.67.0
Affected Resource(s)
Terraform provider makes error with empty value of role_arn which is under assume_role block after merging the PR provider: (#39255)
Expected Behavior
Two types of terraform apply environment.
For type 2.
assume_role block is uesd for Atlantis system.
The system gives role_arn value.
There is no issue.
For type 1.
Command based apply is using locally assumed aws role.
No need to assume role again via terraform provider so we made role_arn = "" (empty value).
By v5.66.0, There is no issue with this process.
Actual Behavior
Type 1, command based apply,
terraform provider does not allow empty value of role_arn.
Relevant Error/Panic Output Snippet
Initializing modules... Initializing the backend... Initializing provider plugins... - terraform.io/builtin/terraform is built in to Terraform - Reusing previous version of hashicorp/aws from the dependency lock file - Using previously-installed hashicorp/aws v5.67.0
Terraform Configuration Files
Steps to Reproduce
terraform init
terraform plan
(with below provider config)
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: