The simplest way would probably be to associate an Elastic IP.
Setting up Amazon CloudFront with an EC2 instance
-
19-06-2023 - |
Question
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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow