How can this process be automated?

1 Comment

  1. Emma
    Author

    I would say the answer is:
    Create a CloudWatch Logs subscription in an AWS Lambda function. Configure the function to add a tag to the EC2 instance that produced the login event and mark the instance to be decommissioned. Create a CloudWatch Events rule to trigger a daily Lambda function that terminates all instances with this tag.

Leave a Reply to Emma Cancel reply

Your email address will not be published. Required fields are marked *

18 − 14 =