Discuss

Using Elastic IP with Amazon AWS

On this page

About Elastic IP Addresses

An Elastic IP address is a reserved public IP address that you can assign to your Amazon AWS Docker Machine (EC2 instance) until you choose to release it.

Assigning Elastic IP to EC2 Instance

Creating an AWS Docker Machine

First you need to create an AWS Docker Machine in Wappler. This will add it to the Instances list in your AWS EC2 Management Console:

Screenshot_19|690x418

Allocating Elastic IP

In order to assign an Elastic IP to your EC2 Instance, you need to allocate it first. Log into the AWS Console, look for EC2 and select it in the results list in order to open the EC2 Management Console:

Screenshot_3|690x418

Then in the left sidebar select Elastic IPs:

Screenshot_4|690x418

And click Allocate Elastic IP Address:

Screenshot_5|690x418

Click the Allocate button:

Screenshot_6|690x418

And you are done.

Associating Elastic IP

The next step is to Associate your newly created Elastic IP to an EC2 Instance.

Open the Actions dropdown and select Associate Elastic IP Address:

Screenshot_8|690x418

Select Instance under Resource Type, then click in the Instance input and select your instance there:

Screenshot_9|690x418

Click the Associate button:

Screenshot_10|690x418

Your Elastic IP has been associated successfully. Copy the IP as we will need it in Wappler:

Screenshot_11|690x418

Setup Docker Options

Load your project in Wappler and open the project settings:

Screenshot_12|690x418

Select your AWS Docker target and click the Manage button:

Screenshot_13|690x418

Select your Docker Machine in the list and click the Edit IP Address button:

Screenshot_14|690x418

Paste your Elastic IP here and click the Apply button:

Screenshot_15|690x418

A confirmation dialog appears, click Yes

Screenshot_16|690x418

You will see a success message when the IP has been applied successfully:

Screenshot_17|690x418

Click "Select" to use this Docker Machine and you are done:

Screenshot_18|690x418

Then you can click "Save" to save your target settings.