-
Notifications
You must be signed in to change notification settings - Fork 16
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
[Issue #680] Add basic CDN configuration #3082
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
infra/modules/service/cdn.tf
Outdated
# Default to caching for 1 hour, with a minimum of 1 minute. | ||
# The default TTL can be overriden by the `Cache-Control max-age` or `Expires` headers | ||
# There's also a `max_ttl` option, which can be used to override the above headers. | ||
min_ttl = 60 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think we might want this as 0 is we set those in the app with the s-maxage=
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html#ExpirationDownloadDist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had this as 0 at first! I'll put it back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ship it!
|
Summary
Relates to #680
Time to review: 20 mins
Changes proposed
Testing
https://d3oegia17k54zs.cloudfront.net/
You can have the load balancer available at the same time as the CDN: http://frontend-staging-1506108424.us-east-1.elb.amazonaws.com/. That said, after we roll this to production and test it, we should block public access to the load balancer, and swap the simpler.grants.gov CNAME over to the CDN.