Terraform crash issue while using ignore lifecycle change for "aws_wafv2_web_acl" #32410
Labels
bug
duplicate
issue closed because another issue already tracks this problem
waiting-response
An issue/pull request is waiting for a response from the community
Terraform Version
Terraform Configuration Files
provider.tf -
webacl.tf -
module.tf -
We have around 10-15
waf_web_acls under
waf_web_acls
as shown below as a....
(dot dot)webacl.tfvars -
Debug Output
Terraform is crashing while running
terraform plan
, here is theTRACE
log for the same, keeping this short to avoid unwanted verboseness.Tried
Expected Behavior
Background info - We are creating
aws_wafv2_web_acl
resource using terraform, where we are adding a new web ACL intotfvars
file for the same.After successful creation of
aws_wafv2_web_acl
in AWS acc, if we tried to run terraform plan, this will show us only changes related to desired resources exceptlifecycle ignore added in
webacl.tf`.we are having CICD automation where we are rule to already created web_Acl,
hence to avoid drifts we have added
lifecycle ignore_changes
block inwebacl.tf
.Expected Behavior-
terraform plan will run with some either drifts or no drifts.
Actual Behavior
There are 2 actual behavior observed -
when we tried to remove
lifecycle, ignore changes
block(configuration) fromwebacl.tfvars
, terraform plan will work without crash, although we faced unwanted drifts too.Steps to Reproduce
Additional Context
I have seen and tried a couple of issues in the GitHub issues section regarding the same, stating that updation of terraform AWS provider version / terraform version, but no luck.
My observation -
As we tried to apply rule outside terraform, aws provider version of terraform is crashing to load the
plan
for the same.References
No response
The text was updated successfully, but these errors were encountered: