Skip to content

Joseph-T-Gordon

A complete log of all recent projects and skills

Menu
  • About me
  • Posts/Projects
  • Resume/Certifications
Menu

Post #135 (AWS) – CloudFront, using EC2 or ALB as an origin and Geo Restriction

Posted on September 7, 2023September 7, 2023 by admin

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.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

© 2025 Joseph-T-Gordon | Powered by Minimalist Blog WordPress Theme