How can this process be automated?

1 Comment

  1. Charlotte
    Author

    From my point of view, the answer is:
    Create a CloudWatch Logs subscription to 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 *

1 × three =