How can log collection be automated?

1 Comment

  1. Elizabeth
    Author

    I plot that the answer is:
    Use Auto Scaling lifecycle hooks to put instances in a Terminating:Wait state. Create an Amazon EventBridge rule for EC2 Instance-terminate Lifecycle Action and trigger an AWS Lambda function that invokes an SSM Run Command script to collect logs, push them to Amazon S3, and complete the lifecycle action once logs are collected.

Leave a Reply to Elizabeth Cancel reply

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

one − 1 =