How can this process be automated?

1 Comment

  1. Austin
    Author

    I categorize that 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 an Amazon EventBridge rule to invoke a daily Lambda function that terminates all instances with this tag.

Leave a Reply

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

twenty + four =