The AWS::AutoScaling::ScalingPolicy resource specifies an Amazon EC2 Auto Scaling scaling policy so that the Auto Scaling group can scale the number of instances available for your application.
auto_scaling_group_name
(String) The name of the Auto Scaling group.adjustment_type
(String) Specifies how the scaling adjustment is interpreted. The valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.cooldown
(String) The duration of the policy's cooldown period, in seconds. When a cooldown period is specified here, it overrides the default cooldown period defined for the Auto Scaling group.estimated_instance_warmup
(Number) The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics. If not provided, the default is to use the value from the default cooldown period for the Auto Scaling group. Valid only if the policy type is TargetTrackingScaling or StepScaling.metric_aggregation_type
(String) The aggregation type for the CloudWatch metrics. The valid values are Minimum, Maximum, and Average. If the aggregation type is null, the value is treated as Average. Valid only if the policy type is StepScaling.min_adjustment_magnitude
(Number) The minimum value to scale by when the adjustment type is PercentChangeInCapacity. For example, suppose that you create a step scaling policy to scale out an Auto Scaling group by 25 percent and you specify a MinAdjustmentMagnitude of 2. If the group has 4 instances and the scaling policy is performed, 25 percent of 4 is 1. However, because you specified a MinAdjustmentMagnitude of 2, Amazon EC2 Auto Scaling scales out the group by 2 instances.policy_type
(String) One of the following policy types: TargetTrackingScaling, StepScaling, SimpleScaling (default), PredictiveScalingpredictive_scaling_configuration
(Attributes) A predictive scaling policy. Includes support for predefined metrics only. (see below for nested schema)scaling_adjustment
(Number) The amount by which to scale, based on the specified adjustment type. A positive value adds to the current capacity while a negative number removes from the current capacity. For exact capacity, you must specify a positive value. Required if the policy type is SimpleScaling. (Not used with any other policy type.)step_adjustments
(Attributes Set) A set of adjustments that enable you to scale based on the size of the alarm breach. Required if the policy type is StepScaling. (Not used with any other policy type.) (see below for nested schema)target_tracking_configuration
(Attributes) A target tracking scaling policy. Includes support for predefined or customized metrics. (see below for nested schema)arn
(String) The ARN of the AutoScaling scaling policyid
(String) Uniquely identifies the resource.policy_name
(String)predictive_scaling_configuration
Required:
metric_specifications
(Attributes Set) (see below for nested schema)Optional:
max_capacity_breach_behavior
(String)max_capacity_buffer
(Number)mode
(String)scheduling_buffer_time
(Number)predictive_scaling_configuration.metric_specifications
Required:
target_value
(Number)Optional:
customized_capacity_metric_specification
(Attributes) (see below for nested schema)customized_load_metric_specification
(Attributes) (see below for nested schema)customized_scaling_metric_specification
(Attributes) (see below for nested schema)predefined_load_metric_specification
(Attributes) (see below for nested schema)predefined_metric_pair_specification
(Attributes) (see below for nested schema)predefined_scaling_metric_specification
(Attributes) (see below for nested schema)predictive_scaling_configuration.metric_specifications.customized_capacity_metric_specification
Required:
metric_data_queries
(Attributes Set) (see below for nested schema)predictive_scaling_configuration.metric_specifications.customized_capacity_metric_specification.metric_data_queries
Required:
id
(String)Optional:
expression
(String)label
(String)metric_stat
(Attributes) (see below for nested schema)return_data
(Boolean)predictive_scaling_configuration.metric_specifications.customized_capacity_metric_specification.metric_data_queries.metric_stat
Required:
metric
(Attributes) (see below for nested schema)stat
(String)Optional:
unit
(String)predictive_scaling_configuration.metric_specifications.customized_capacity_metric_specification.metric_data_queries.metric_stat.metric
Required:
metric_name
(String)namespace
(String)Optional:
dimensions
(Attributes Set) (see below for nested schema)predictive_scaling_configuration.metric_specifications.customized_capacity_metric_specification.metric_data_queries.metric_stat.unit.dimensions
Required:
name
(String)value
(String)predictive_scaling_configuration.metric_specifications.customized_load_metric_specification
Required:
metric_data_queries
(Attributes Set) (see below for nested schema)predictive_scaling_configuration.metric_specifications.customized_load_metric_specification.metric_data_queries
Required:
id
(String)Optional:
expression
(String)label
(String)metric_stat
(Attributes) (see below for nested schema)return_data
(Boolean)predictive_scaling_configuration.metric_specifications.customized_load_metric_specification.metric_data_queries.metric_stat
Required:
metric
(Attributes) (see below for nested schema)stat
(String)Optional:
unit
(String)predictive_scaling_configuration.metric_specifications.customized_load_metric_specification.metric_data_queries.metric_stat.metric
Required:
metric_name
(String)namespace
(String)Optional:
dimensions
(Attributes Set) (see below for nested schema)predictive_scaling_configuration.metric_specifications.customized_load_metric_specification.metric_data_queries.metric_stat.unit.dimensions
Required:
name
(String)value
(String)predictive_scaling_configuration.metric_specifications.customized_scaling_metric_specification
Required:
metric_data_queries
(Attributes Set) (see below for nested schema)predictive_scaling_configuration.metric_specifications.customized_scaling_metric_specification.metric_data_queries
Required:
id
(String)Optional:
expression
(String)label
(String)metric_stat
(Attributes) (see below for nested schema)return_data
(Boolean)predictive_scaling_configuration.metric_specifications.customized_scaling_metric_specification.metric_data_queries.metric_stat
Required:
metric
(Attributes) (see below for nested schema)stat
(String)Optional:
unit
(String)predictive_scaling_configuration.metric_specifications.customized_scaling_metric_specification.metric_data_queries.metric_stat.metric
Required:
metric_name
(String)namespace
(String)Optional:
dimensions
(Attributes Set) (see below for nested schema)predictive_scaling_configuration.metric_specifications.customized_scaling_metric_specification.metric_data_queries.metric_stat.unit.dimensions
Required:
name
(String)value
(String)predictive_scaling_configuration.metric_specifications.predefined_load_metric_specification
Required:
predefined_metric_type
(String)Optional:
resource_label
(String)predictive_scaling_configuration.metric_specifications.predefined_metric_pair_specification
Required:
predefined_metric_type
(String)Optional:
resource_label
(String)predictive_scaling_configuration.metric_specifications.predefined_scaling_metric_specification
Required:
predefined_metric_type
(String)Optional:
resource_label
(String)step_adjustments
Required:
scaling_adjustment
(Number)Optional:
metric_interval_lower_bound
(Number)metric_interval_upper_bound
(Number)target_tracking_configuration
Required:
target_value
(Number)Optional:
customized_metric_specification
(Attributes) (see below for nested schema)disable_scale_in
(Boolean)predefined_metric_specification
(Attributes) (see below for nested schema)target_tracking_configuration.customized_metric_specification
Required:
metric_name
(String)namespace
(String)statistic
(String)Optional:
dimensions
(Attributes Set) (see below for nested schema)unit
(String)target_tracking_configuration.customized_metric_specification.dimensions
Required:
name
(String)value
(String)target_tracking_configuration.predefined_metric_specification
Required:
predefined_metric_type
(String)Optional:
resource_label
(String)Import is supported using the following syntax:
$ terraform import awscc_autoscaling_scaling_policy.example <resource ID>