Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 13 You must be signed in to fork a gist
  • Save mikepfeiffer/d889b3bc78b68193e407d487b197be04 to your computer and use it in GitHub Desktop.
Save mikepfeiffer/d889b3bc78b68193e407d487b197be04 to your computer and use it in GitHub Desktop.
EC2 user data script to bootstrap instance with CloudWatch sample scripts
#!/bin/bash
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