Home > Tutorials  > AWS  > How do we create an Elastic IP/Static IP address for AWS Website and link to domain name

Why do we need Elastic IP?

When you launch an AWS EC2 instance, AWS automatically allots an IP address to the instance. And this IP address is not static and will change on instance restart.

And if we link this IP address to website domain name, it will work fine as long as we do not restart our instance.

And not restarting instance is not practical, there are situations when we add/edit/delete website feature and that may show-up/function only on instance restart.

And on restart, IP address will change and once the IP address changes the domain name is no more linked to the site.

To overcome this issue, we have to create an Elastic/Static IP for the same.

Elastic IP address is –

  • Static and Public IP
  • Free to use
  • Independent and can be linked to any launched instance
  • The linked Elastic IP can even be relinked to different instance at any stage and
  • Most importantly, its highly valuable in digital space

Please note: If you create an Elastic IP, you have to use it, make sure to use it else please delete. Every idle IP address will be charged by Amazon. So create one, only when you need one.

STEP1: Create an Elastic IP

  1. After you login to your AWS account, Click on Services > EC2
  2. Select ‘Elastic IPs’ from the left navigation column
    My domain is not showing my website which is on Amazon cloud?
  3. Click on ‘Allocate new address’ button
  4. Once your Elastic IP is created, click on close button
  5. You will now be back to your Elastic IP section/page

STEP2: Associate Elastic IP to your EC2 instance

  1. From your Elastic IP page, click on ‘Actions’>’Associate Address’
    My Site IP is changing, what should I do?
  2. Select your instance from instance drop-down and click on ‘Associate’ button.
    How do I link Elastic IP to my site instance?
  3. Then go back to your EC2 instances list and check ‘IPv4 Public IP’ to cross-check if your new Elastic IP is associated for the same.
    How do I know if my site has Static IP?
  4. Generally it will be associated, better to cross-check once

STEP3: Link your AWS website Public IP to your domain name

  1. Login to your domain name provider account
  2. And only change your ‘A records’ with this new public IP address

Done, don-a-done! All set to go!

Imajine Logo Portfolio

Looking for Professional, Corporate, Unique logo for your Business?

Reach out to us at reachout[@]imajineweb.com and we would love to work with you on your logo design projects / even create your business website 🙂

And if you wish to view our portfolio, click here.