Search code examples
amazon-ec2amazon-cloudfront

Setting up Amazon CloudFront with an EC2 instance


What would be the simplest way to associate a CloudFront distribution with an EC2 server?

Public IP/DNS keeps changing as I shutdown/start the instance.


Solution

  • The simplest way would probably be to associate an Elastic IP.