How can log collection be automated?

1 Comment

  1. John
    Author

    I guess:
    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

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

ten − 4 =