Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joshtab/435216dc615876efe9bcc436baf0b1a7 to your computer and use it in GitHub Desktop.
Save joshtab/435216dc615876efe9bcc436baf0b1a7 to your computer and use it in GitHub Desktop.
EB CloudWatch memory usage reporting .ebextensions file
container_commands:
00download:
command: "wget http://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.2.zip"
ignoreErrors: true
01extract:
command: "unzip CloudWatchMonitoringScripts-1.2.2.zip"
ignoreErrors: true
02rmzip:
command: "rm CloudWatchMonitoringScripts-1.2.2.zip"
ignoreErrors: true
03prereq:
command: "yum install -y perl-Switch perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https"
ignoreErrors: false
04cdinto:
command: "mv aws-scripts-mon/ /home/ec2-user"
ignoreErrors: true
files:
"/etc/cron.d/memory_monitor":
mode: "000644"
owner: root
group: root
content: |
* * * * * /home/ec2-user/aws-scripts-mon/mon-put-instance-data.pl --mem-util --mem-used --mem-avail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment