Missing 'force' parameter on service deletion #220
Labels
affects_2.10
bug
This issue/PR relates to a bug
feature
This issue/PR relates to a feature request
has_pr
module
module
needs_info
This issue requires further information. Please answer any outstanding questions
needs_template
This issue/PR has an incomplete description. Please fill in the proposed template correctly
needs_triage
plugins
plugin (any type)
on this line:
community.aws/plugins/modules/ecs_service.py
Line 631 in a147040
Ansible calls boto3's ECS.Client.delete_service API Functions, documented here:
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ecs.html#ECS.Client.delete_service
The module should add support to call the boto3 function with 'force' parameter, which allows deletion of a service even if:
Scale isn't 0
Target Group has already been delete, resulting in this error:
'{'Code': 'InvalidParameterException', 'Message': 'The target group arn:aws:elasticloadbalancing:<REGION>:<ACCOUNT>:targetgroup/<target_group_name>/<randomID> does not exist.'}'
the force parameter is only relevant for 'absent' state, as that is the only state that uses 'delete_service function
COMPONENT NAME
ecs_service
ISSUE TYPE
The text was updated successfully, but these errors were encountered: