Default values of max_ttl and default_ttl not working as expected in aws_cloudfront_cache_policy #24535
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/cloudfront
Issues and PRs that pertain to the cloudfront service.
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.12.31
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
It should create resources successfully and by taking max_value = 31536200 for example01 ,default_ttl = 86500 for example02 and default_ttl=max_ttl=31536100 for example03
Actual Behavior
It taking there default values if we did not specify max_ttl and default_ttl and throwing error
MinTTL, MaxTTL and DefaultTTL should follow order MinTTL less than or equal to DefaultTTL less than or equal to MaxTTL
Steps to Reproduce
terraform apply
Reference:
aws_cli document for clouldfront cache policy:
https://docs.aws.amazon.com/cli/latest/reference/cloudfront/create-cache-policy.html
The text was updated successfully, but these errors were encountered: