-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add task to get a list of all ECS clusters #2056
Comments
Two ideas about it
If the
A new module that just returns all existing clusters. |
Just tested it, when running without the cluster parameter:
...the result is a ClusterNotFound failure, with the following invocation parameters:
|
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
The text was updated successfully, but these errors were encountered: