Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- packages:
- yum:
- perl-DateTime: []
- perl-Sys-Syslog: []
- perl-LWP-Protocol-https: []
- perl-Switch: []
- perl-URI: []
- perl-Bundle-LWP: []
- container_commands:
- 01download:
- command: "wget http://ec2-downloads.s3.amazonaws.com/cloudwatch-samples/CloudWatchMonitoringScripts-v1.1.0.zip"
- ignoreErrors: true
- 02extract:
- command: "unzip CloudWatchMonitoringScripts-v1.1.0.zip"
- ignoreErrors: true
- 03rmzip:
- command: "rm CloudWatchMonitoringScripts-v1.1.0.zip"
- ignoreErrors: true
- 04cdinto:
- command: "mv aws-scripts-mon/ /home/ec2-user"
- ignoreErrors: true
- 05cron:
- command: "crontab -l | { cat; echo '* * * * * /home/ec2-user/aws-scripts-mon/mon-put-instance-data.pl --mem-util --mem-used --mem-avail'; } | crontab -"
- ignoreErrors: false
Advertisement
Add Comment
Please, Sign In to add comment