-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloudfront distribution fills in 0'd defaultTtl / minTtl / maxTtl if not set #2688
Comments
Hi @mivtachyahu , could you provider an example or reproduction of your program? Also, what language are you using – it looks like 0's should be the correct default value for these attributes in each language regardless |
Hi @aq17 - I'm using TypeScript.
Which yields this config in the aws console: On a whim I decided to update the example above with the default values for maxTtl / defaultTtl from reading the aws-sdk code and a 0 of minTtl:
And it turns out this does yield the config setting that I was after in AWS But that behaviour isn't documented anywhere, and I assume it's probably the bug that they probably should have the default values from the aws-sdk if they're not set instead of 0s? |
I believe this is tracked upstream in hashicorp/terraform-provider-aws#19382 which was recently closed with a doc change:
Since the upstream decided not to fix this, I think I'll go ahead and close this issue by design as well. |
What happened?
I would like my defaultCacheBehaviour to use the "Use origin cache headers" setting.
In terraform I achieve this by not setting defaultTtl, minTtl or maxTtl.
If I do this in pulumi, it fills them in with 0's instead. There appears to be no option to "Use origin cache headers"
Expected Behavior
Not setting a defaultTtl, minTtl and maxTtl should use the "Use origin cache headers" behaviour instead of filling these in with 0's.
Steps to reproduce
Output of
pulumi about
CLI
Version 3.76.1
Go Version go1.20.6
Go Compiler gc
Plugins
NAME VERSION
aws 5.42.0
nodejs unknown
Host
OS darwin
Version 13.4
Arch arm64
This project is written in nodejs: executable='/Users/matthewbrown/.nvm/versions/node/v18.15.0/bin/node' version='v18.15.0'
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: