Category

Elastic IP (EIP)

How to Automate Elastic IP Assignment on EC2 Instance Restart or Reboot

In AWS, users are charged for allocated Elastic IPs that are not associated with a running instance or network interface (VPC). Therefore, the accepted best practice is to keep only those IP addresses that will be needed in the future. Allocated Elastic IPs you don’t plan to use in the future, or those you just forgot to release, may contribute to unexpectedly high AWS bills.

How to Associate and Disassociate an Elastic IP to an EC2 Instance

AWS EC2 is a scalable, reliable and low-priced offering from Amazon for the user’s virtual computation or hosting needs. Elastic IP addresses are static IP addresses designed for elastic cloud computing. The traffic routed to the Elastic IP is translated via the 1:1 Network Address Translation (NAT) and forwarded to the Private IP address of an instance. Unlike a standard EC2 Public IP address, Elastic IP addresses are allocated to accounts and can be remapped to other instances when desired. The user can control this address until choosing to explicitly release it. Elastic IP addresses help the user to achieve high availability as it allows programmatic remapping to any other instance in the same region on the current instance or availability zone failure.

The present guide demonstrates how to associate or disassociate an Elastic IP to an instance.

How to Allocate or Release an AWS Elastic IP (EIP)

Elastic IP addresses are static IP addresses designed for Amazon cloud. An Elastic IP address belongs to the user’s AWS account and is not bound to a particular instance. The user can control the elastic IP address until the user explicitly releases it. However, unlike traditional static IP addresses, Elastic IP addresses help the user to achieve high availability as it allows to script the usage of an IP address and reallocate it in a glance to other instance in the same region when the instance or availability zone fails. An AWS account can have a maximum of 5 elastic IPs per region. If you like extend this limit you can apply for more Elastic IP address here.

This guide demonstrates how to allocate or release an Elastic IP for an AWS account.

How to View Instance’s Elastic IP Addresses

Elastic IP addresses are IP addresses designed for Amazon cloud. An Elastic IP address belongs to the user’s AWS account and is not bound to a particular EC2 instance. This short how-to guide demonstrates how to view the list of you Amazon cloud elastic IPs.

How-to Find Elastic IPs not Associated to an Instance/Network

How-to Diassociate an Elastic IP

Elastic IP How-to: Associate an Elastic IP to an Instance

Elastic IP How-to: Allocate new Elastic IP

Hitchhiker's Guide to The Cloud

Newvem's eBook for Cloud Operations