This repository has been archived by the owner on May 15, 2023. It is now read-only.
Terraform validator got different results when validating plans generated after and before apply #366
Labels
persistent-bug
Hard to diagnose or long lived bugs for which resolutions are more like feature work than bug work
Community Note
Related Issues
Terraform Validator version
terraform-validator: v0.9.1
Affected Resource(s)
Terraform Plan JSON
Terraform plan before apply
Terraform plan after apply
Debug Output
Running terraform-validator before terraform apply
Running terraform-validator after terraform apply
Expected Behavior
Validate terraform plans generated before and after apply, should have the same results
Actual Behavior
When validating a terraform plan generated before apply, some constraints are violated, but if you apply terraform and generate a new plan, no violations are foung
Steps to Reproduce
Important Factoids
The CMEK keys are being created together with the buckets, so the plan does not know the CMEK key that is going to be used to encrypt the bucket.
Before the terraform apply, the plan does not contain the encryption value for the bucket being created in the property after.
But is possible to see the after_unknow property with encryption value:
References
The text was updated successfully, but these errors were encountered: