Aucune réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 9 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
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 :/