Skip to content

ec2 resize-autoscaling-group

Resize autoscaling group

Description

Resize autoscaling group

Synopsis

ec2 resize-autoscaling-group
    [--site <site>]
    [--region <region>]
    <name>
    [--min <min>]
    [--max <max>]
    [--desired_size <desired_size>]

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

region - (string)

     AWS region for the service
     Example: --region "region-1"
     Default: _None_      Attributes: optional

name - (string)

     Name of the autoscaling group
     Example: "name-1"
     Default: _None_      Attributes: required

min - (int)

     minimum size of autoscaling group
     Example: --min 1
     Default: _None_      Attributes: optional

max - (int)

     maximum size of autoscaling group
     Example: --max 1
     Default: _None_      Attributes: optional

desired_size - (int)

     desired size of autoscaling group
     Example: --desired_size 1
     Default: _None_      Attributes: optional

Examples

ec2 resize-autoscaling-group --region "region-1" "name-1" --min 1 --max 1 --desired_size 1

Access Control

To use this command, you need access to the following:

Field Value
Action "update"
Service Type "ec2"
Service Instance
Namespace
Object Type "autoscaling_group"
Object ID name

Please see Access Control for details.