AWS EC2: Terminate self!

Terminate the current EC2 instance

/usr/bin/aws ec2 terminate-instances --instance-ids  $(curl http://169.254.169.254/latest/meta-data/instance-id/)  --region $(curl http://169.254.169.254/latest/dynamic/instance-identity/document | grep region | awk '{print $3}' | sed  's/"//g'|sed 's/,//g')