Skip to content

16._Elastic_IPs

Ahmad Abdo edited this page Jun 26, 2017 · 1 revision

Elastic IPs

listAddresses


Usage

$ awsm listAddresses --help
NAME:
   awsm listAddresses - List Elastic IP Addresses

USAGE:
   awsm listAddresses [arguments...]

ARGUMENTS:
   [search] - The keyword to search for

Example Output

awsm listInternetGateways

This will list all Elastic IP Addresses, the output should look similar to this:

$ awsm listAddresses
+-------------------+----------------+------------+--------+---------------------+-----------+-------------------+----------------------+-----------+
|   ALLOCATION ID   |   PUBLIC IP    | PRIVATE IP | DOMAIN |     INSTANCE ID     |  STATUS   |    ATTACHMENT     | NETWORK INTERFACE ID |  REGION   |
+-------------------+----------------+------------+--------+---------------------+-----------+-------------------+----------------------+-----------+
| eipalloc-f999259d | 52.38.31.35    | 10.0.1.166 | vpc    |                     | available |                   | eni-76d2913c         | us-west-2 |
| eipalloc-a157f5c6 | 52.200.167.73  | 10.1.1.168 | vpc    |                     | available |                   | eni-ed35c7bd         | us-east-1 |
| eipalloc-1adebc7f | 52.48.143.89   | 10.2.1.47  | vpc    |                     | available |                   | eni-2055ca59         | eu-west-1 |
+-------------------+----------------+------------+--------+---------------------+-----------+-------------------+----------------------+-----------+



createAddress


Usage

$ awsm createAddress --help
Incorrect Usage.

NAME:
   awsm createAddress - Create an Elastic IP Address

USAGE:
   awsm createAddress [arguments...]

ARGUMENTS:
   region - The region to create the elastic ip in
   domain - The domain to create the elastic ip in (classic or vpc)

Example Output

awsm createAddress us-east-1 vpc

This will create a new Elastic IP Address in us-east-1 for use in a VPC, the output should look similar to this:

$ awsm createAddress us-east-1 vpc

△  Created Address  [34.226.49.62] with allocation Id [eipalloc-5b5cf36b] in [us-east-1]! 



deleteAddresses


Usage

$ awsm deleteAddresses --help

NAME:
   awsm deleteAddresses - Delete Elastic IP Addresses

USAGE:
   awsm deleteAddresses [arguments...]

ARGUMENTS:
   search - The search term for the elastic ip to delete
   [region] - The region to delete the elastic ip from

Example Output

awsm deleteAddresses 34.226.49.62

This will delete the Elastic IP Address matching the term 34.226.49.62, the output should look similar to this:

$ awsm deleteAddresses 34.226.49.62
+-------------------+--------------+------------+--------+-------------+-----------+------------+----------------------+-----------+
|   ALLOCATION ID   |  PUBLIC IP   | PRIVATE IP | DOMAIN | INSTANCE ID |  STATUS   | ATTACHMENT | NETWORK INTERFACE ID |  REGION   |
+-------------------+--------------+------------+--------+-------------+-----------+------------+----------------------+-----------+
| eipalloc-5b5cf36b | 34.226.49.62 |            | vpc    |             | available |            |                      | us-east-1 |
+-------------------+--------------+------------+--------+-------------+-----------+------------+----------------------+-----------+

▶  Are you sure you want to delete these Addresses?                                                    
◀  y

△  Deleted Address [eipalloc-5b5cf36b] in [us-east-1]!                                                 

✓  Done!