Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
terraform miss the Use Origin Cache Headers #1994
I want to use AWS cloudfront cache behaviour to
However in terraform, the min_ttl, max_ttl and default_ttl is required.
Is there a way to to use the
While the attributes are marked as required in Terraform, taking a look at the SDK documentation implies that CloudFront might "do the right thing" here if the appropriate headers are set in the origin.
Specifically this sentence for Default TTL and Max TTL:
Luckily, it also looks like the
Support to make all 3 TTL arguments optional has been merged into master and will be released in v1.11.0 of the AWS provider, likely at the end of the week. Please note they are default_ttl (1 day), max_ttl (365 days), and min_ttl (0 days) to match the behavior of the API and console.