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

asked a year ago586 views
2 Answers
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
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions