bash - Trigger event on AWS EC2 instance stop/terminate -
is there way trigger event (e.g. running script push logs s3) when ec2 instance stopped/terminated?
i have looked triggering script using service in /usr/lib/systemd/system haven't had luck yet. have heard networking capabilities on instance can shutdown before service triggered , if true, why script not executing correctly.
you can trigger events, such pushing logs s3 on specific events, cloudwatch... learn more here: https://aws.amazon.com/cloudwatch/
Comments
Post a Comment