AWS Elastic IP In Console Before Applying “Terraform init”

You may observe the changes by using the terraform apply command on the terminal.

As you can see, the IP was linked to the necessary instance and the elastic IP addresses.

The Elastic IP was created and linked to the necessary EC2 instance, as you can see below.

How To Create Elastic IP In AWS Using Terraform ?

Using Terraform, creating an Elastic IP (EIP) on AWS entails specifying the resources required in a Terraform configuration file in order to create the EIP. A static IPv4 address intended for dynamic cloud computing is called an elastic IP. It is helpful in situations when you require a public IP address that is reliable and simple to link to or disconnect from instances within your AWS infrastructure.

Similar Reads

What Is Elastic IP In AWS?

In Amazon Web Services (AWS), an Elastic IP (EIP) is a static IPv4 address designed for dynamic cloud computing. It is primarily used to provide a fixed, public IP address to an AWS resource, such as an EC2 instance, NAT gateway, or a Network Load Balancer (NLB). Unlike the standard public IP addresses assigned to EC2 instances, which may change if the instance is stopped and restarted, an Elastic IP remains associated with the account until it is explicitly released....

Step-by-step To Create Elastic IP in AWS using Terraform

Step 1: As seen in the image below, create a file with the name eip.tf and paste the following code into it....

AWS Elastic IP In Console Before Applying “Terraform init”

...

Elastic IP – FAQ’s

What is elastic IP and dynamic IP?...