Skip to main content

Command Palette

Search for a command to run...

Day 10 : Attach Elastic IP to EC2 Instance

100 Days of Cloud (AWS)

Updated
2 min read
Day 10 : Attach Elastic IP to EC2 Instance
Z

I'm Zin Lin Htet. Who love to learn and share about Linux, Cloud, Docker and K8s. Currently working as a DevOps Engineer at one of the famous Fintech Company in Myanmar.

Welcome from day 10. In this lab you will learn how to attach elastic IP to EC2 instance. In this lab, you need to allocate an EIP with the name devops-ec2-eip and attach it to the EC2 instance.

Why we need to attach EIP to EC2?

That’s a good question. Imagine you have a domain and you link it to the public IP of an EC2 instance. You can access your website using a domain, not an IP. However, the EC2 instance's IP is just a public IP, and if the instance is shut down or rebooted, the public IP will change. So, you need to reattach the new public IP to the domain. If you attach an EIP to an EC2 instance, the IP address will not change even if the instance is shut down or rebooted. So, you don't need to reattach the domain name. You can use an EIP for static public IP access.

Congratulations you did it. It looks good. This lab was successfully completed without any errors. See you in day 11. If you have any issues please let me know I will be happy to assist you. Stay tuned and learn together. If you find my article useful, please kindly like and share it.

100 Days of Cloud (AWS)

Part 41 of 50

In this series you will learn how to configure and manage cloud resources using AWS. My intention is to provide an explanation and share the answers for 100 Days of Cloud (AWS) from KodeKloud.

Up next

Day 9 : Enable Termination Protection for EC2 Instance

100 Days of Cloud (AWS)

More from this blog

Technical 101

69 posts

"Mingalarbar , I am an IT guy from Myanmar who enjoys learning and sharing about Linux, Cloud, Docker & K8s. I am planning to share my expertise with the information technology communities in Burma