Provider crashes instead of providing error message when cloudfront_cache_policy isn't configured correctly #21854
Labels
bug
Addresses a defect in current functionality.
service/cloudfront
Issues and PRs that pertain to the cloudfront service.
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v1.0.11 on linux_amd64
provider registry.terraform.io/hashicorp/aws v3.65.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/masterqwerty/d8c94b5d70f8c387c1534b8b30c49e72
Panic Output
https://gist.github.com/masterqwerty/e1b55abeffa28b8fe017b356189352b3
Expected Behavior
When I apply, Terraform should give me an error message saying that my terraform is invalid because the
headers_config
block is missing required values.Actual Behavior
The provider plugin crashes and produces a panic. (See gist link above.)
Steps to Reproduce
terraform apply
References
The text was updated successfully, but these errors were encountered: