-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Exception is raised when building a backup plan and vault together (non-deterministically) #8193
Comments
I noticed that I get 2 rules created when I have 2 tags (even though the plans says it created one rule). |
I was able to reproduce the same issue with just the Terraform Version
Terraform Configuration Fileslocals {
required_tags = {
tag1 = "val1"
tag2 = "val2"
}
}
resource "aws_backup_plan" "test" {
name = "bvs-test-plan-tf"
rule {
rule_name = "bvs-test-rule"
target_vault_name = "Default"
schedule = "rate(12 hours)"
recovery_point_tags = "${local.required_tags}"
}
tags = "${local.required_tags}"
} Panic Output
|
I'm not getting this issue but one that feels related, in that if Recovery Point Tags are specified then the initial apply works fine however any consequent ones fail each time with the below error whether there are changes to the code or not:
If I don't specify a Recovery Point Tag it works every time. Makes me wonder if its all connected to the Recovery Point Tags section? Terraform v0.11.13 |
+1 |
I think the |
The fixes for these issues has been merged and will release with version 2.34.0 of the Terraform AWS Provider, on Thursday. Thanks to @ewbankkit for the implementation. |
This has been released in version 2.34.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
Terraform v0.11.11
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Actual Behavior
Fails sometimes but works other times (first time fails and second time works)
Steps to Reproduce
Use the code above and run
terraform apply
. First time it fails and there after it will pass intermittently.Important Factoids
References
N/A
The text was updated successfully, but these errors were encountered: