aws_autoscaling_group

Nivis 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_size
  • min_size
Optional arguments
  • availability_zones (defaults to null)
  • capacity_rebalance (defaults to null)
  • context (defaults to null)
  • default_cooldown (defaults to null)
  • default_instance_warmup (defaults to null)
  • desired_capacity (defaults to null)
  • desired_capacity_type (defaults to null)
  • enabled_metrics (defaults to null)
  • force_delete (defaults to null)
  • force_delete_warm_pool (defaults to null)
  • health_check_grace_period (defaults to null)
  • health_check_type (defaults to null)
  • id (defaults to null)
  • ignore_failed_scaling_activities (defaults to null)
  • launch_configuration (defaults to null)
  • load_balancers (defaults to null)
  • max_instance_lifetime (defaults to null)
  • metrics_granularity (defaults to null)
  • min_elb_capacity (defaults to null)
  • cfg_name (defaults to null)
  • name_prefix (defaults to null)
  • placement_group (defaults to null)
  • protect_from_scale_in (defaults to null)
  • region (defaults to null)
  • service_linked_role_arn (defaults to null)
  • suspended_processes (defaults to null)
  • target_group_arns (defaults to null)
  • termination_policies (defaults to null)
  • vpc_zone_identifier (defaults to null)
  • wait_for_capacity_timeout (defaults to null)
  • wait_for_elb_capacity (defaults to null)
  • availability_zone_distribution (defaults to null)
  • capacity_reservation_specification (defaults to null)
  • initial_lifecycle_hook (defaults to null)
  • instance_lifecycle_policy (defaults to null)
  • instance_maintenance_policy (defaults to null)
  • instance_refresh (defaults to null)
  • launch_template (defaults to null)
  • mixed_instances_policy (defaults to null)
  • tag (defaults to null)
  • timeouts (defaults to null)
  • traffic_source (defaults to null)
  • warm_pool (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • arn
  • predicted_capacity
  • warm_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.