-
Notifications
You must be signed in to change notification settings - Fork 3
9._VPCs
Ahmad Abdo edited this page Jun 26, 2017
·
1 revision
The awsm
VPC class only specifies the CIDR and the Instance tenancy. The name, IP, and region are provided during the command execution.
$ awsm listVpcs --help
NAME:
awsm listVpcs - List Vpcs
USAGE:
awsm listVpcs [arguments...]
ARGUMENTS:
[search] - The keyword to search for
awsm listVpcs awsm
This will list all VPCs matching the search term awsm
, the output should look similar to this:
$ awsm listVpcs awsm
+---------------+-------+--------------+-----------+-------------+---------------+---------+-----------+
| NAME | CLASS | VPC ID | STATE | CIDR BLOCK | DHCP OPT ID | TENANCY | REGION |
+---------------+-------+--------------+-----------+-------------+---------------+---------+-----------+
| us-east-1-vpc | awsm | vpc-abb5efc6 | available | 10.1.0.0/16 | dopt-7141671c | default | us-east-1 |
| us-west-2-vpc | awsm | vpc-551c1637 | available | 10.0.0.0/16 | dopt-62e0e900 | default | us-west-2 |
| eu-west-1-vpc | awsm | vpc-20552548 | available | 10.2.0.0/16 | dopt-3463105c | default | eu-west-1 |
+---------------+-------+--------------+-----------+-------------+---------------+---------+-----------+
$ awsm createVpc --help
NAME:
awsm createVpc - Create a VPC
USAGE:
awsm createVpc [arguments...]
ARGUMENTS:
class - The class of VPC to create
name - The name of the VPC
ip - The IP address of this VPC (not including CIDR)
region - The region to create the VPC in
awsm createVpc awsm awsm-vpc 10.1.0.0 us-east-1
This will create a new VPC named awsm-vpc
with the CIDR IP range of 10.1.0.0/16 in us-east-1
, the output should look similar to this:
$ awsm createVpc awsm awsm-vpc 10.1.0.0 us-east-1
✓ Found VPC Class Configuration for [awsm]!
△ Created VPC [vpc-d75db8ae] named [awsm-vpc] in [us-east-1]!
$ awsm deleteVpcs --help
Incorrect Usage.
NAME:
awsm deleteVpcs - Delete VPCs
USAGE:
awsm deleteVpcs [arguments...]
ARGUMENTS:
search - The search term for VPCs to delete
[region] - The region of the VPCs (optional)
awsm deleteVpcs awsm
This will delete VPC matching the name awsm
, the output should look similar to this:
$ awsm deleteVpcs awsm
+------+-------+--------------+-----------+---------------+---------------+---------+--------------+
| NAME | CLASS | VPC ID | STATE | CIDR BLOCK | DHCP OPT ID | TENANCY | REGION |
+------+-------+--------------+-----------+---------------+---------------+---------+--------------+
| awsm | awsm | vpc-961ef0ff | available | 172.31.0.0/16 | dopt-741cf21d | default | ca-central-1 |
+------+-------+--------------+-----------+---------------+---------------+---------+--------------+
▶ Are you sure you want to delete these VPCs?
◀ y
△ Deleted VPC [awsm] in region [ca-central-1]!