AWS Elastic IP
Elastic IP Address in AWS:
An Elastic IP address in AWS is a unique, static IP address designed for dynamic cloud computing. When you launch a virtual server (an EC2 instance) on AWS, it's given an IP address. However, this IP address can change if you stop and start your instance. Public IP is dynamic by default.
To give static IP, we use elastic IP.
Check your Ec2 instance Public and Private IPv4 address
Allocate Ip Address
Step 1: Search Elastic Ip and then Click on Allocate Elastic IP address button
Step 2: choose the region
Elastic ip is successfully created
This Elastic Ip address is not allocated to any instance yet
Step 3: To allocate the elastic ip, select the instance -> Actions -> Associate Elastic Ip address
Select Instance to whom you want to allocate elastic ip. You can also select network interface.
And now select that running instance to which you want to assign this elastic ip. You can see the instance id here
Provide Private IP address is optional
click on Associate
Now the elastic IP is associated to that instance
Click on the Associated Instance ID, refesh the running EC2 instance
Public Ip address is now assigned as elastic IP address
After stopping and restarting the instance, we can see the public ip address is same as previous one
Thank you for taking the time to read…….
Subscribe to my newsletter
Read articles from Utkarsh Gupta directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Utkarsh Gupta
Utkarsh Gupta
🚀 Hi everyone! I'm Utkarsh Gupta, IAM Consultant. I am very passionate for all things DevOps. Right now, I'm learning and working on some cool projects and I can't wait to share what I'm learning with you all! 🛠️ Here's what's in my toolbox: Linux Docker Kubernetes Jenkins AWS Python Prometheus Grafana Ansible Terraform Join me as we explore AWS DevOps together. Let's learn and grow together in this ever-changing field! 🤝 Feel free to connect with me for: Sharing experiences Friendly chats Learning together Follow my journey on Hashnode and LinkedIn for daily updates. Let's dive into the world of DevOps together! 🚀 #DevOps #AWS #DevOpsJourney #90DaysOfDevOps