Last active
May 3, 2017 20:48
-
-
Save anuragmathur1/05182a3e8cb404276462dbb5f6526fd9 to your computer and use it in GitHub Desktop.
Userdata script to bootstrap EC2 with cloudwatch sample scripts from AWS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Reference web Page : http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html | |
yum install perl-Switch perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https -y | |
curl http://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.1.zip -O | |
unzip CloudWatchMonitoringScripts-1.2.1.zip | |
rm CloudWatchMonitoringScripts-1.2.1.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment