Skip to content
CloudFront Lab
- Creating a cloudfront network, AKA CloudFront Distribution
- CloudFront origin will be an S3 bucket
- Can have multiple origins per distribution
- Can also have an EC2 instance, Elastic load balancer, or physical server on premise
- Need to know theoretically what is CloudFront at a high level
- TTL needs to be shorter if you are uploading the same file
- Reduce TTL if it is changing frequently
- Set the TTL to a fraction of refresh frequency depending on how important the material being up to date is
- Use signed URL to restrict access to paid users
- EXAM: access content you are selling
- Restrict access to paid users
- Use Signed URLs or Signed Cookies
- Use invalidations if you need to clear cache to update a version of something
- Invalidates object on cache and clears it
- Charged every time you do it