Skip to content

Instantly share code, notes, and snippets.

@eovolkov
Created November 28, 2019 17:59
Show Gist options
  • Save eovolkov/ecc52d8a59a6577ec59b31a491ffb667 to your computer and use it in GitHub Desktop.
Save eovolkov/ecc52d8a59a6577ec59b31a491ffb667 to your computer and use it in GitHub Desktop.
sudo su -
wget https://s3.amazonaws.com/amazoncloudwatch-agent/amazon_linux/amd64/latest/amazon-cloudwatch-agent.rpm
rpm -U ./amazon-cloudwatch-agent.rpm
/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-config-wizard
/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:/opt/aws/amazon-cloudwatch-agent/bin/config.json -s
/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -m ec2 -a status
/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -m ec2 -a stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment