Create an Elastic IP address and assign to an instance
Hello Everyone
Welcome to CloudAffaire and this is Debjeet
In the last blog post, we have discussed Elastic IP address.
https://cloudaffaire.com/elastic-ip-address/
In this blog post, we are going to create an Elastic IP address and assign to an instance.
Below is the prerequisite for this demo
One active AWS account
One running EC2 instance
Create an Elastic IP address and assign to an instance
Step 1: Login to AWS console and click ‘EC2’ under compute
Step 2: Navigate to ‘Elastic IPs’ located under NETWORK & SECURITY. Click ‘Allocate new address’.
Step 3: Scope of the Elastic IP address will be displayed. Click ‘Allocate’
Note: For 1st generation AWS account (Created before 2013-12-04), EC2 classic platform was available. Those who have 1st generation AWS account will have the option to select EC2 classic or VPC.
Our new Elastic IP address has been created. Click ‘Close’.
Next, we are going to assign this new Elastic IP address to an EC2 instance.
Step 4: Expand ‘Actions’ and click ‘Associate address’
Step 5: Select Instance and Private IP from the drop down and click ‘Associate’
One success message will appear, click ‘Close’
Elastic IP address has been associated with the instance.
If the instance already had a public IP address associated, the public IP address will be replaced with Elastic IP address. Our instance already had a public IP address hence it is changed with Elastic IP address along with public DNS hostname.
Before association
After association
Hope you have enjoyed this blog post. In the next blog, we are going to discuss Placement Groups.