Solution for local ip changes of AWS EC2 instances

后端 未结 5 2025
忘掉有多难
忘掉有多难 2021-01-30 23:01

Amazon only gives you a certain number of static ip address and the local (private) ips of each EC2 instance can change when the machine is restarted. This makes creating a stab

5条回答
  •  误落风尘
    2021-01-30 23:18

    The stock answers are:

    1. Use AWS VPC so you have complete control over instance addressing
    2. Use Elastic IPs, which will resolve to the instance's local address (not the public, as you'd expect) when used to communicate between EC2 instances

提交回复
热议问题