Table: aws_autoscaling_groups

This table shows data for Auto Scaling Groups.

https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_AutoScalingGroup.html (opens in a new tab)

The primary key for this table is arn.

Relations

The following tables depend on aws_autoscaling_groups:

Columns

NameType
_cq_iduuid
_cq_parent_iduuid
account_idutf8
regionutf8
load_balancersjson
load_balancer_target_groupsjson
arn (PK)utf8
tagsjson
tags_rawjson
auto_scaling_group_nameutf8
availability_zoneslist<item: utf8, nullable>
created_timetimestamp[us, tz=UTC]
default_cooldownint64
desired_capacityint64
health_check_typeutf8
max_sizeint64
min_sizeint64
auto_scaling_group_arnutf8
capacity_rebalancebool
contextutf8
default_instance_warmupint64
desired_capacity_typeutf8
enabled_metricsjson
health_check_grace_periodint64
instancesjson
launch_configuration_nameutf8
launch_templatejson
load_balancer_nameslist<item: utf8, nullable>
max_instance_lifetimeint64
mixed_instances_policyjson
new_instances_protected_from_scale_inbool
placement_grouputf8
predicted_capacityint64
service_linked_role_arnutf8
statusutf8
suspended_processesjson
target_group_arnslist<item: utf8, nullable>
termination_policieslist<item: utf8, nullable>
traffic_sourcesjson
vpc_zone_identifierutf8
warm_pool_configurationjson
warm_pool_sizeint64
notification_configurationsjson

Example Queries

These SQL queries are sampled from CloudQuery policies and are compatible with PostgreSQL.

Auto Scaling groups associated with a load balancer should use health checks

SELECT
  'Auto Scaling groups associated with a load balancer should use health checks'
    AS title,
  account_id,
  arn AS resource_id,
  CASE
  WHEN array_length(load_balancer_names, 1) > 0
  AND health_check_type IS DISTINCT FROM 'ELB'
  THEN 'fail'
  ELSE 'pass'
  END
    AS status
FROM
  aws_autoscaling_groups;