Ec2 public private ip and elastic ip
#ec2 #elastic_ip #aws
Some specifications:
- Elastic IP is fixed public IP and won’t be changed after the instance is restarted or terminated.
- Max 5 Elastic IP for AWS account and can ask AWS to increase if needed.
- Try to avoid to use Elastic IP because
- Not a good practise, poor architectual solution
- Use random public IP and DNS instead
Default
- EC2 machine has a private IP and a public IP for www
- Cannot SSH to EC2 by using private IP when VPN, because the network is not the same.