Table: aws_ecs_cluster_services

This table shows data for Amazon Elastic Container Service (ECS) Cluster Services.

https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_Service.html (opens in a new tab)

The composite primary key for this table is (arn, cluster_arn).

Relations

This table depends on aws_ecs_clusters.

The following tables depend on aws_ecs_cluster_services:

Columns

NameType
_cq_iduuid
_cq_parent_iduuid
account_idutf8
regionutf8
arn (PK)utf8
tagsjson
capacity_provider_strategyjson
cluster_arn (PK)utf8
created_attimestamp[us, tz=UTC]
created_byutf8
deployment_configurationjson
deployment_controllerjson
deploymentsjson
desired_countint64
enable_ecs_managed_tagsbool
enable_execute_commandbool
eventsjson
health_check_grace_period_secondsint64
launch_typeutf8
load_balancersjson
network_configurationjson
pending_countint64
placement_constraintsjson
placement_strategyjson
platform_familyutf8
platform_versionutf8
propagate_tagsutf8
role_arnutf8
running_countint64
scheduling_strategyutf8
service_arnutf8
service_nameutf8
service_registriesjson
statusutf8
task_definitionutf8
task_setsjson

Example Queries

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

Amazon ECS services should not have public IP addresses assigned to them automatically

SELECT
  'Amazon ECS services should not have public IP addresses assigned to them automatically'
    AS title,
  account_id,
  arn AS resource_id,
  CASE
  WHEN network_configuration->'AwsvpcConfiguration'->>'AssignPublicIp'
  IS DISTINCT FROM 'DISABLED'
  THEN 'fail'
  ELSE 'pass'
  END
    AS status
FROM
  aws_ecs_cluster_services;