I have tried many things but not able to save my files.
I have an account in aws and I have created an autoscaling group.I want to copy my log files to s3 but when any of the server deleted through autoscaling my 30 minutes log files loss so I have to run a script that runs on the time when the current server going to terminate due to autoscalling but I am unable to figure out that how I know or how to know that which server is going to delete with autoscalling ?
Is there any way to find out which server is going to delete using autoscalling ?