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

feita há um ano612 visualizações
2 Respostas
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
ESPECIALISTA
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas