[Bug]: aws_backup_selection with two condition blocks override each other #38114
Labels
bug
Addresses a defect in current functionality.
service/backup
Issues and PRs that pertain to the backup service.
Terraform Core Version
1.3.7, 1.8.5
AWS Provider Version
5.55.0
Affected Resource(s)
Expected Behavior
The configuration inside multiple
condition
blocks should be merged and applied to the resource.If that is not possible, configuring multiple
condition
blocks should raise aToo many condition blocks
error.Actual Behavior
The resource is created only with the first
condition
block and becomes non-idempotent, since next applies will try to create the second condition block.Verifying the resource with the AWS CLI shows that only the first condition block was applied:
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
The main relevant configuration is this:
The full Terraform configuration to reproduce the issue (includes dependencies) is as follows:
main.tf
Steps to Reproduce
terraform apply
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: