Skip to content

Instantly share code, notes, and snippets.

@anuragmathur1
Created April 4, 2017 22:04
Show Gist options
  • Save anuragmathur1/19229c5666ee559724d265875df6455a to your computer and use it in GitHub Desktop.
Save anuragmathur1/19229c5666ee559724d265875df6455a to your computer and use it in GitHub Desktop.
AWS - bash script for EC2 userdata to bootstrap with python and AWS CLI
#!/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