No Answers
- Newest
- Most votes
- Most comments
Relevant content
- asked 2 years ago
- asked a year ago
- Accepted Answerasked 8 months ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Could you share some details on why you need to delete the service and security groups so frequently?
Either way, setting the desired number of tasks for the service to 0 to stop all tasks will cause the tasks to be stopped and the corresponding ENIs to be released. That would let you delete the service.
Thank you for your comment @Mats_L. I have some integration tests poking the AWS API creating and deleting resources and this is generating brittleness in the tests. I am updating first the service to desiredCount=0 and then deleting the service, I have added some waiter logic after deleting the service, but still is not enough and sometimes it takes longer to release the ENI so my security group deletion fails :/