Sha256: 1c4b1b648855765dfabaf2455086894319868a105e66e6bb9325f8a45c51c899
Contents?: true
Size: 483 Bytes
Versions: 4
Compression:
Stored size: 483 Bytes
Contents
class AwsInventory::Ecs::Cluster < AwsInventory::Base def header ["Cluster", "Container Instances", "Running Tasks"] end def data ecs_clusters.map do |cluster| [ cluster.cluster_name, cluster.registered_container_instances_count, cluster.running_tasks_count, ] end end def ecs_clusters cluster_arns = ecs.list_clusters.cluster_arns @ecs_clusters ||= ecs.describe_clusters(clusters: cluster_arns).clusters end end
Version data entries
4 entries across 4 versions & 1 rubygems