aws_autoscaling_groupNivis Nix constructor for the aws_autoscaling_group resource (provider aws). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
max_size,
min_size,
availability_zones ? null,
capacity_rebalance ? null,
context ? null,
default_cooldown ? null,
default_instance_warmup ? null,
desired_capacity ? null,
desired_capacity_type ? null,
enabled_metrics ? null,
force_delete ? null,
force_delete_warm_pool ? null,
health_check_grace_period ? null,
health_check_type ? null,
id ? null,
ignore_failed_scaling_activities ? null,
launch_configuration ? null,
load_balancers ? null,
max_instance_lifetime ? null,
metrics_granularity ? null,
min_elb_capacity ? null,
cfg_name ? null,
name_prefix ? null,
placement_group ? null,
protect_from_scale_in ? null,
region ? null,
service_linked_role_arn ? null,
suspended_processes ? null,
target_group_arns ? null,
termination_policies ? null,
vpc_zone_identifier ? null,
wait_for_capacity_timeout ? null,
wait_for_elb_capacity ? null,
availability_zone_distribution ? null,
capacity_reservation_specification ? null,
initial_lifecycle_hook ? null,
instance_lifecycle_policy ? null,
instance_maintenance_policy ? null,
instance_refresh ? null,
launch_template ? null,
mixed_instances_policy ? null,
tag ? null,
timeouts ? null,
traffic_source ? null,
warm_pool ? null,
overrides ? {}
}Required arguments
max_sizemin_size
Optional arguments
availability_zones(defaults tonull)capacity_rebalance(defaults tonull)context(defaults tonull)default_cooldown(defaults tonull)default_instance_warmup(defaults tonull)desired_capacity(defaults tonull)desired_capacity_type(defaults tonull)enabled_metrics(defaults tonull)force_delete(defaults tonull)force_delete_warm_pool(defaults tonull)health_check_grace_period(defaults tonull)health_check_type(defaults tonull)id(defaults tonull)ignore_failed_scaling_activities(defaults tonull)launch_configuration(defaults tonull)load_balancers(defaults tonull)max_instance_lifetime(defaults tonull)metrics_granularity(defaults tonull)min_elb_capacity(defaults tonull)cfg_name(defaults tonull)name_prefix(defaults tonull)placement_group(defaults tonull)protect_from_scale_in(defaults tonull)region(defaults tonull)service_linked_role_arn(defaults tonull)suspended_processes(defaults tonull)target_group_arns(defaults tonull)termination_policies(defaults tonull)vpc_zone_identifier(defaults tonull)wait_for_capacity_timeout(defaults tonull)wait_for_elb_capacity(defaults tonull)availability_zone_distribution(defaults tonull)capacity_reservation_specification(defaults tonull)initial_lifecycle_hook(defaults tonull)instance_lifecycle_policy(defaults tonull)instance_maintenance_policy(defaults tonull)instance_refresh(defaults tonull)launch_template(defaults tonull)mixed_instances_policy(defaults tonull)tag(defaults tonull)timeouts(defaults tonull)traffic_source(defaults tonull)warm_pool(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
arnpredicted_capacitywarm_pool_size
Example
aws_autoscaling_group {
name = "autoscaling_group";
max_size = …; # required
min_size = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.