Create An Elastic IP Address And Assign To An Instance

Create An Elastic IP Address And Assign To An Instance

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

Create an Elastic IP address and assign to an instance

Step 2: Navigate to ‘Elastic IPs’ located under NETWORK & SECURITY. Click ‘Allocate new address’.

Create an Elastic IP address and assign to an instance

Step 3: Scope of the Elastic IP address will be displayed. Click ‘Allocate’

Create an Elastic IP address and assign to an instance

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’.

Create an Elastic IP address and assign to an instance

Create an Elastic IP address and assign to an instance

Next, we are going to assign this new Elastic IP address to an EC2 instance.

Step 4: Expand ‘Actions’ and click ‘Associate address’

Create an Elastic IP address and assign to an instance

Step 5: Select Instance and Private IP from the drop down and click ‘Associate’

Create an Elastic IP address and assign to an instance

One success message will appear, click ‘Close’

Create an Elastic IP address and assign to an instance

Elastic IP address has been associated with the instance.

Create an Elastic IP address and assign to an 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

Create an Elastic IP address and assign to an instance

After association

Create an Elastic IP address and assign to an instance

Hope you have enjoyed this blog post. In the next blog, we are going to discuss Placement Groups.

 

Leave a Reply

Close Menu