Open markuman opened 2 years ago
bot_skip
everyone who is bored can join
@markuman I can poke at a few of these after #1145 gets merged
@markuman where are waiters needed here? are there specific test cases I can look at to validate the waiters do their job? I see for scaling down services
@markuman where are waiters needed here? are there specific test cases I can look at to validate the waiters do their job? I see for scaling down services
yes. one case is when the service is state: absent
, it must wait until the service is inactive.
it would make this retry https://github.com/ansible-collections/community.aws/blob/main/tests/integration/targets/ecs_cluster/tasks/main.yml#L983-L991 superfluous, because the cluster can only be removed when no service is available anymore.
wait: yes
in this tasks inside the always block: https://github.com/ansible-collections/community.aws/blob/main/tests/integration/targets/ecs_cluster/tasks/main.yml#L877-L916
another case is when the desired_count changes. https://github.com/ansible-collections/community.aws/blob/main/tests/integration/targets/ecs_cluster/tasks/main.yml#L301-L319
or when the service is created. it must wait until the service is table: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ecs.html#ECS.Waiter.ServicesStable
this would also solves this PR: https://github.com/ansible-collections/community.aws/pull/91
something else that might be need to be discussed is the format of the task_definition.
The input format is documented like this: https://github.com/ansible-collections/community.aws/blob/main/plugins/modules/ecs_service.py#L214
task_definition: 'new_cluster-task:1'
But the output is returning just the arn of the task_definition:
taskDefinition: arn:aws:ecs:eu-central-1:123456789:task-definition/new_cluster-task:1
Shall we support both as valid input formats?
Shall we support both as valid input formats?
Having dealt with all sorts of cross-account fun in the past few years, I'm a fan of supporting full ARNs in addition to just the names.
@ingmarfjolla this could be a good first contribution for ya
@markuman Can you please check what's missing in here?
@markuman Can you please check what's missing in here?
@alinabuzachis done. only two items are left. but they are more cosmetic in nature.
Summary
ecs_service
needs some carethe three most important ToDos
ecs_cluster
integration test work again: https://github.com/ansible-collections/community.aws/pull/1145easy, good first issues
ecs_service
ecs_service_info
service
andname
parameter/aliases inecs_service
andecs_service_info
placement_constraints
to max 10 (verify what docs told)features
bugs