Skip to content

Instantly share code, notes, and snippets.

@bdnf
Created September 4, 2020 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdnf/61514973b22fb33fdf781d692307700b to your computer and use it in GitHub Desktop.
Save bdnf/61514973b22fb33fdf781d692307700b to your computer and use it in GitHub Desktop.
Fetch configuration from SSM parameter store:
# /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c ssm:configuration-parameter-store-name -s
Fetch config from local path:
/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m onPremise -s -c /etc/cwagentconfig/metrics.json
For check the status, run:
/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -m ec2 -a status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment