When to use lambda with boto3 or SSM automation?

0

Hi, I am evaluating the best way to delete unused EBS volumes and ENI's. I saw in SSM automation 2 documents, one called AWSConfigRemediation-DeleteUnusedENI that request for the ENI id and delete it, and another one called AWSConfigRemediation-DeleteUnusedEBSVolume that also requests the EBS id and then delete the EBS volume. What I want is a scheduled task that check all EBS volumes and/or ENI's and delete the ones that are not attached and are unused without asking for the EBS or ENI id. I know, both lambda with boto3 and SSM automation can be used to do both tasks, but I want to know which is the best to automate this task.

Regards

preguntada hace un año623 visualizaciones
2 Respuestas
1

If you use boto, you ll have to maintain the lambda code, so in this case SSM could be a better choice if your task is only that one.

profile picture
EXPERTO
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas