Control: At least one instance should be registered with ECS cluster
Description
This control ensures that at least one container instance is registered with an ECS cluster.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.ecs_cluster_no_registered_container_instance
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.ecs_cluster_no_registered_container_instance --share
SQL
This control uses a named query:
select cluster_arn as resource, case when registered_container_instances_count = 0 then 'alarm' else 'ok' end as status, case when registered_container_instances_count = 0 then title || ' has no container instance registered.' else title || ' has ' || registered_container_instances_count || ' container instance(s) registered.' end as reason , region, account_idfrom aws_ecs_cluster;