-
Notifications
You must be signed in to change notification settings - Fork 3
18._AutoScale_Groups
$ awsm listAutoScaleGroups --help
NAME:
awsm listAutoScaleGroups - List AutoScale Groups
USAGE:
awsm listAutoScaleGroups [arguments...]
ARGUMENTS:
[search] - The keyword to search for
awsm listAutoScaleGroups
This will list all AutoScale Groups, the output should look similar to this:
$ awsm listAutoScaleGroups
+------+-------+-------------------+---------------------------+----------------------+----------------+------------------+----------+----------+----------+---------------+-------------+-----------+----------------+--------------------+
| NAME | CLASS | HEALTH CHECK TYPE | HEALTH CHECK GRACE PERIOD | LAUNCH CONFIGURATION | INSTANCE COUNT | DESIRED CAPACITY | MIN SIZE | MAX SIZE | COOLDOWN | VPC NAME | SUBNET NAME | REGION | LOAD BALANCERS | AVAILABILITY ZONES |
+------+-------+-------------------+---------------------------+----------------------+----------------+------------------+----------+----------+----------+---------------+-------------+-----------+----------------+--------------------+
| php | | ELB | 360 | php-v315 | 2 | 2 | 2 | 4 | 60 | us-west-2-vpc | Private | us-west-2 | php-vpc | us-west-2a |
| php | | ELB | 360 | php-v315 | 2 | 2 | 2 | 4 | 60 | us-east-1-vpc | Private | us-east-1 | php-vpc | us-east-1a |
| php | | ELB | 360 | php-v315 | 2 | 2 | 2 | 4 | 60 | eu-west-1-vpc | Private | eu-west-1 | php-vpc | eu-west-1a |
+------+-------+-------------------+---------------------------+----------------------+----------------+------------------+----------+----------+----------+---------------+-------------+-----------+----------------+--------------------+
$ awsm listScalingPolicies --help
NAME:
awsm listScalingPolicies - List Scaling Policies
USAGE:
awsm listScalingPolicies [arguments...]
awsm listScalingPolicies
This will list all Scaling Policies, the output should look similar to this:
$ awsm listScalingPolicies
+-----------+------------+----------+----------------------+-------------------------------------------------------------+-------------+-----------+
| NAME | ADJUSTMENT | COOLDOWN | AUTOSCALE GROUP NAME | ALARM ARNS | ALARM NAMES | REGION |
+-----------+------------+----------+----------------------+-------------------------------------------------------------+-------------+-----------+
| scaleDown | -1 | 300 | php | arn:aws:cloudwatch:us-west-2:971042242642:alarm:cpuLow-php | cpuLow-php | us-west-2 |
| scaleUp | +1 | 300 | php | arn:aws:cloudwatch:us-west-2:971042242642:alarm:cpuHigh-php | cpuHigh-php | us-west-2 |
| scaleDown | -1 | 300 | php | arn:aws:cloudwatch:us-east-1:971042242642:alarm:cpuLow-php | cpuLow-php | us-east-1 |
| scaleUp | +1 | 300 | php | arn:aws:cloudwatch:us-east-1:971042242642:alarm:cpuHigh-php | cpuHigh-php | us-east-1 |
| scaleDown | -1 | 300 | php | arn:aws:cloudwatch:eu-west-1:971042242642:alarm:cpuLow-php | cpuLow-php | eu-west-1 |
| scaleUp | +1 | 300 | php | arn:aws:cloudwatch:eu-west-1:971042242642:alarm:cpuHigh-php | cpuHigh-php | eu-west-1 |
+-----------+------------+----------+----------------------+-------------------------------------------------------------+-------------+-----------+
$ awsm createAutoScaleGroups --help
NAME:
awsm createAutoScaleGroups - Create an AutoScaling Groups
USAGE:
awsm createAutoScaleGroups [arguments...]
ARGUMENTS:
class - The class of the autoscaling groups to create
awsm createAutoScaleGroups prod
This will create AutoScale Groups based on the prod
Class configuration, the output should look similar to this:
$ awsm createAutoScaleGroups prod
✓ Found Autoscaling group class configuration for [prod]
✓ Found Launch Configuration class configuration for [prod]
✓ Found latest Launch Configuration [prod] version [0] in [us-east-1]
✓ Found Availability Zone [us-east-1a]!
△ Created AutoScaling Group [prod] in [us-east-1]!
✓ Found latest Launch Configuration [prod] version [0] in [us-west-2]
✓ Found Availability Zone [us-west-2a]!
△ Created AutoScaling Group [prod] in [us-west-2]!
✓ Done!
$ awsm resumeProcesses --help
NAME:
awsm resumeProcesses - Resume scaling processes on Autoscaling Groups
USAGE:
awsm resumeProcesses [arguments...]
ARGUMENTS:
search - The search term for the autoscaling group to resume
[region] - The region to resume the processes in
awsm resumeProcesses php
This will resume AutoScaling processes on the AutoScaling Groups matching the name php
, the output should look similar to this:
$ awsm resumeProcesses php
+------+-------+-------------------+---------------------------+----------------------+----------------+------------------+----------+----------+----------+---------------+-------------+-----------+----------------+--------------------+
| NAME | CLASS | HEALTH CHECK TYPE | HEALTH CHECK GRACE PERIOD | LAUNCH CONFIGURATION | INSTANCE COUNT | DESIRED CAPACITY | MIN SIZE | MAX SIZE | COOLDOWN | VPC NAME | SUBNET NAME | REGION | LOAD BALANCERS | AVAILABILITY ZONES |
+------+-------+-------------------+---------------------------+----------------------+----------------+------------------+----------+----------+----------+---------------+-------------+-----------+----------------+--------------------+
| php | | ELB | 360 | php-v315 | 2 | 2 | 2 | 4 | 60 | us-west-2-vpc | Private | us-west-2 | php-vpc | us-west-2a |
| php | | ELB | 360 | php-v315 | 2 | 2 | 2 | 4 | 60 | us-east-1-vpc | Private | us-east-1 | php-vpc | us-east-1a |
| php | | ELB | 360 | php-v315 | 2 | 2 | 2 | 4 | 60 | eu-west-1-vpc | Private | eu-west-1 | php-vpc | eu-west-1a |
+------+-------+-------------------+---------------------------+----------------------+----------------+------------------+----------+----------+----------+---------------+-------------+-----------+----------------+--------------------+
▶ Are you sure you want to resume these Autoscale Groups?
◀ y
△ Resumed processes on Autoscale Group [php] in [us-west-2]!
△ Resumed processes on Autoscale Group [php] in [us-east-1]!
△ Resumed processes on Autoscale Group [php] in [eu-west-1]!
✓ Done!
$ awsm suspendProcesses --help
NAME:
awsm suspendProcesses - Suspend scaling processes on Autoscaling Groups
USAGE:
awsm suspendProcesses [arguments...]
ARGUMENTS:
search - The search term for the autoscaling group to suspend
[region] - The region to suspend the processes in
awsm suspendProcesses php
This will suspend AutoScaling processes on the AutoScaling Groups matching the name php
, the output should look similar to this:
$ awsm suspendProcesses php
+------+-------+-------------------+---------------------------+----------------------+----------------+------------------+----------+----------+----------+---------------+-------------+-----------+----------------+--------------------+
| NAME | CLASS | HEALTH CHECK TYPE | HEALTH CHECK GRACE PERIOD | LAUNCH CONFIGURATION | INSTANCE COUNT | DESIRED CAPACITY | MIN SIZE | MAX SIZE | COOLDOWN | VPC NAME | SUBNET NAME | REGION | LOAD BALANCERS | AVAILABILITY ZONES |
+------+-------+-------------------+---------------------------+----------------------+----------------+------------------+----------+----------+----------+---------------+-------------+-----------+----------------+--------------------+
| php | | ELB | 360 | php-v315 | 2 | 2 | 2 | 4 | 60 | us-west-2-vpc | Private | us-west-2 | php-vpc | us-west-2a |
| php | | ELB | 360 | php-v315 | 2 | 2 | 2 | 4 | 60 | us-east-1-vpc | Private | us-east-1 | php-vpc | us-east-1a |
| php | | ELB | 360 | php-v315 | 2 | 2 | 2 | 4 | 60 | eu-west-1-vpc | Private | eu-west-1 | php-vpc | eu-west-1a |
+------+-------+-------------------+---------------------------+----------------------+----------------+------------------+----------+----------+----------+---------------+-------------+-----------+----------------+--------------------+
▶ Are you sure you want to suspend these Autoscale Groups?
◀ y
△ Suspended processes on Autoscale Group [php] in [us-west-2]!
△ Suspended processes on Autoscale Group [php] in [us-east-1]!
△ Suspended processes on Autoscale Group [php] in [eu-west-1]!
✓ Done!
$ awsm updateAutoScaleGroups --help
NAME:
awsm updateAutoScaleGroups - Update AutoScaling Groups
USAGE:
awsm updateAutoScaleGroups [command options] [arguments...]
ARGUMENTS:
search - The search term of the autoscaling group to update
[version] - The version of the launch configuration group to use (defaults to the most recent)
OPTIONS:
--double double (Doubles the desired-capacity and max-capacity)
awsm updateAutoScaleGroups prod
This will update the AutoScale Groups matching the name prod
, the output should look similar to this:
$ awsm updateAutoScaleGroups prod
+------+-------+-------------------+---------------------------+----------------------+----------------+------------------+----------+----------+----------+---------------+-------------+-----------+----------------+--------------------+
| NAME | CLASS | HEALTH CHECK TYPE | HEALTH CHECK GRACE PERIOD | LAUNCH CONFIGURATION | INSTANCE COUNT | DESIRED CAPACITY | MIN SIZE | MAX SIZE | COOLDOWN | VPC NAME | SUBNET NAME | REGION | LOAD BALANCERS | AVAILABILITY ZONES |
+------+-------+-------------------+---------------------------+----------------------+----------------+------------------+----------+----------+----------+---------------+-------------+-----------+----------------+--------------------+
| prod | prod | ELB | 360 | prod-v5 | 2 | 2 | 1 | 4 | 60 | us-west-2-vpc | Private | us-west-2 | prod | us-west-2a |
+------+-------+-------------------+---------------------------+----------------------+----------------+------------------+----------+----------+----------+---------------+-------------+-----------+----------------+--------------------+
▶ Are you sure you want to update these AutoScaling Groups?
◀ y
✓ Found Autoscaling group class configuration for [prod]
✓ Found Launch Configuration class configuration for [prod]
✓ Found latest Launch Configuration [prod] version [5] in [us-west-2]
✓ Found Availability Zone [us-west-2a]!
△ Updated AutoScaling Group [prod] in [us-west-2]!
✓ Done!
$ awsm deleteAutoScaleGroups --help
NAME:
awsm deleteAutoScaleGroups - Delete AutoScaling Groups
USAGE:
awsm deleteAutoScaleGroups [command options] [arguments...]
ARGUMENTS:
search - The search term for the autoscaling group to delete
[region] - The region to delete the autoscaling group from
OPTIONS:
--force force (Force deletes all instances and lifecycle actions)
awsm deleteAutoScaleGroups prod --force
This will force delete AutoScaling Groups matching the name prod
, the output should look similar to this:
$ awsm deleteAutoScaleGroups prod --force
+------+-------+-------------------+---------------------------+----------------------+----------------+------------------+----------+----------+----------+---------------+-------------+-----------+----------------+--------------------+
| NAME | CLASS | HEALTH CHECK TYPE | HEALTH CHECK GRACE PERIOD | LAUNCH CONFIGURATION | INSTANCE COUNT | DESIRED CAPACITY | MIN SIZE | MAX SIZE | COOLDOWN | VPC NAME | SUBNET NAME | REGION | LOAD BALANCERS | AVAILABILITY ZONES |
+------+-------+-------------------+---------------------------+----------------------+----------------+------------------+----------+----------+----------+---------------+-------------+-----------+----------------+--------------------+
| prod | | ELB | 360 | prod-v5 | 2 | 2 | 1 | 4 | 60 | us-west-2-vpc | Private | us-west-2 | prod | us-west-2a |
+------+-------+-------------------+---------------------------+----------------------+----------------+------------------+----------+----------+----------+---------------+-------------+-----------+----------------+--------------------+
▶ Are you sure you want to delete these AutoScaling Groups?
◀ y
△ Deleted AutoScaling Group [prod] in [us-west-2]!
✓ Done!