Skip to content

Add task to get a list of all ECS clusters #2056

Open
@b0tting

Description

@b0tting

Summary

We want to control our AWS ECS services, for example, to restart all services in all accounts when Fargate is updated. For this reason, we run our playbooks against many clusters and we want the cluster_name to be discovered. However, all of the community.aws ECS modules either require a cluster name variable or add one with a default value of "default". I could not find a way to list the ECS cluster names, ie. the equivalent of "aws ecs list-clusters".

Issue Type

Feature Idea

Component Name

community.aws.ecs_cluster

Additional Information

This could be implemented similar to the way services are handled in community.aws.ecs_service_info - if no service_name is given, all services are queried.

Code of Conduct

  • I agree to follow the Ansible Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions