$ sudo yum -y install perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https
$ curl https://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.2.zip -O
$ unzip CloudWatchMonitoringScripts-1.2.2.zip && \
rm CloudWatchMonitoringScripts-1.2.2.zip && \
$ sudo mv aws-scripts-mon /usr/local/
Use IAM policy
$ sudo vim /etc/crontab
# aws-scripts-mon
*/5 * * * * root /usr/local/aws-scripts-mon/mon-put-instance-data.pl --mem-util --mem-used --mem-avail --from-cron
*/5 * * * * root /usr/local/aws-scripts-mon/mon-put-instance-data.pl --disk-space-util --disk-path=/ --from-cron
thanks!