Day 10 : Attach Elastic IP to EC2 Instance
100 Days of Cloud (AWS)

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.




