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

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -