-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add CDN for archived data in S3 #1264
Add CDN for archived data in S3 #1264
Conversation
This adds a cloudfront distribution to serve data from our "data snaphsots" S3 bucket at `https://archives.getmyvax.org`. The goal here is mainly to prevent people from potentially driving up S3 costs by making requests we can't control or cache against the bucket. This is a first step for #1180.
OK, I’ve implemented this both directly with the AWS provider and using a module from Cloud Posse that makes the setup significantly simpler. I think the simplicity is probably worthwhile, but there are some caveats worth logging here:
|
In #1264, I used Cloud Posse's cloudfront-s3-cdn module to create a CloudFront distribution in front of our data snapshots bucket. It turned out to have some bugs that weren't obvious until trying to actually deploy and create resources. This *should* address those. (We'll see if more show up!)
In #1264, I used Cloud Posse's cloudfront-s3-cdn module to create a CloudFront distribution in front of our data snapshots bucket. It turned out to have some bugs that weren't obvious until trying to actually deploy and create resources. This *should* address those. (We'll see if more show up!)
This adds a CloudFront distribution to serve data from our "data snaphsots" S3 bucket at
https://archives.getmyvax.org
. The goal here is mainly to prevent people from potentially driving up S3 costs by making requests we can't control or cache against the bucket. (Per @TylerHendrickson’s guidance.)This is a first step for #1180. After we confirm this is deployed and working, we’ll need to revoke public read access from the S3 bucket.