You can set up CloudFront to be used for your EC2 instances! In order to use it you will need to make the instance public and allow CloudFront edge location IPs by creating a security group that permits traffic from those IPs. If you want to keep your instances private you can simply use an ALB. All you need to do is attach a security group to the ALB that permits the edge location IP, you can find a list of these IP on the AWS website. I would like to talk about Geo Restriction in CloudFront in this post as well as it is a rather short topic. Geo Restriction allows you to go into your CloudFront distribution and block and allow specific regions you don’t want to have access, most likely for compliance reasons.