While i was setting up AWS autoscaling group, and scaling policy i ran into this problem.
I wanted to use memory as a parameter, so i installed CLoudwatch's script for memory monitoring from below link.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html
When i use it for simple instance it works fine, but when i do it for auto-scaling with below command as given in above doc i am getting an error.
Command
./mon-put-instance-data.pl --mem-util --mem-used --mem-avail --auto-scaling=only
Error:
WARNING: The Auto Scaling metrics will not be reported this time.
Any help is appreciated.