-
Notifications
You must be signed in to change notification settings - Fork 3
17._Launch_Configurations
Ahmad Abdo edited this page Jun 26, 2017
·
1 revision
$ awsm listLaunchConfigurations --help
NAME:
awsm listLaunchConfigurations - List Launch Configurations
USAGE:
awsm listLaunchConfigurations [arguments...]
ARGUMENTS:
[search] - The keyword to search for
awsm listLaunchConfigurations prod
This will list all Launch Configurations matching the term prod
, the output should look similar to this:
$ awsm listLaunchConfigurations prod
+---------+--------------+--------------+---------------+----------+-----------------+--------------+-----------+---------------+--------------+
| NAME | IMAGE NAME | IMAGE ID | INSTANCE TYPE | KEY NAME | SECURITY GROUPS | CREATED | REGION | EBS OPTIMIZED | SNAPSHOT IDS |
+---------+--------------+--------------+---------------+----------+-----------------+--------------+-----------+---------------+--------------+
| prod-v3 | ami-ac6395cc | ami-ac6395cc | r3.large | awsm | dev | 9 months ago | us-west-2 | false | |
| prod-v3 | ami-1709177d | ami-1709177d | r3.large | awsm | dev | 9 months ago | us-east-1 | false | |
| prod-v3 | ami-cbf67ab8 | ami-cbf67ab8 | r3.large | awsm | dev | 9 months ago | eu-west-1 | false | |
+---------+--------------+--------------+---------------+----------+-----------------+--------------+-----------+---------------+--------------+
$ awsm createLaunchConfigurations --help
NAME:
awsm createLaunchConfigurations - Create an AutoScaling Launch Configurations
USAGE:
awsm createLaunchConfigurations [arguments...]
ARGUMENTS:
class - The class of the launch configuration groups to create
awsm createLaunchConfigurations prod
This will create new Launch Configurations in the configured regions using the prod
Class configuration, the output should look similar to this:
$ awsm createLaunchConfigurations prod
✓ Found Launch Configuration class configuration for [prod]
✓ Found Instance class configuration for [prod]
✓ Previous version of launch configuration is [2]
△ New version of launch configuration is [3]
✓ Found IAM Instance Profile [awsm]
△ Building Launch Configuration for [eu-west-1]...
✓ Found AMI [ami-7aeed21c] with class [awsm-init] created [2 months ago]
✓ Found KeyPair [awsm] in [eu-west-1]
✓ Found VPC [vpc-20552548] in Region [eu-west-1]
✓ Found Subnet [subnet-2755254f] in VPC [vpc-20552548]
✓ Found VPC Security Group [sg-6a50b105] with name [dev]
△ Created Launch Configuration [prod] in region [eu-west-1]
△ Building Launch Configuration for [us-east-1]...
✓ Found AMI [ami-82b00894] with class [awsm-init] created [2 months ago]
✓ Found KeyPair [awsm] in [us-east-1]
✓ Found VPC [vpc-abb5efc6] in Region [us-east-1]
✓ Found Subnet [subnet-a2b5efcf] in VPC [vpc-abb5efc6]
✓ Found VPC Security Group [sg-ce579ba1] with name [dev]
△ Created Launch Configuration [prod] in region [us-east-1]
△ Building Launch Configuration for [us-west-2]...
✓ Found AMI [ami-8dcb5fed] with class [awsm-init] created [2 months ago]
✓ Found KeyPair [awsm] in [us-west-2]
✓ Found VPC [vpc-551c1637] in Region [us-west-2]
✓ Found Subnet [subnet-c36a5fb7] in VPC [vpc-551c1637]
✓ Found VPC Security Group [sg-c57167a7] with name [dev]
△ Created Launch Configuration [prod] in region [us-west-2]
$ awsm deleteLaunchConfigurations --help
NAME:
awsm deleteLaunchConfigurations - Delete AutoScaling Launch Configurations
USAGE:
awsm deleteLaunchConfigurations [arguments...]
ARGUMENTS:
search - The search term for the launch configuration to delete
[region] - The region to delete the launch configuration from
awsm deleteLaunchConfigurations prod
This will delete Launch Configurations matching the name prod
, the output should look similar to this:
$ awsm deleteLaunchConfigurations prod
+---------+--------------+--------------+---------------+----------+-----------------+---------------+-----------+---------------+--------------+
| NAME | IMAGE NAME | IMAGE ID | INSTANCE TYPE | KEY NAME | SECURITY GROUPS | CREATED | REGION | EBS OPTIMIZED | SNAPSHOT IDS |
+---------+--------------+--------------+---------------+----------+-----------------+---------------+-----------+---------------+--------------+
| prod-v3 | awsm-init-v3 | ami-82b00894 | r3.large | awsm | dev | 2 minutes ago | us-east-1 | false | |
| prod-v3 | awsm-init-v3 | ami-8dcb5fed | r3.large | awsm | dev | 2 minutes ago | us-west-2 | false | |
| prod-v3 | awsm-init-v3 | ami-7aeed21c | r3.large | awsm | dev | 2 minutes ago | eu-west-1 | false | |
+---------+--------------+--------------+---------------+----------+-----------------+---------------+-----------+---------------+--------------+
▶ Are you sure you want to delete these Launch Configurations?
◀ y
△ Deleted Launch Configuration [prod-v3] in [us-east-1]
△ Deleted Launch Configuration [prod-v3] in [us-west-2]
△ Deleted Launch Configuration [prod-v3] in [eu-west-1]
✓ Done!