79409384

Date: 2025-02-03 16:26:52
Score: 0.5
Natty:
Report link

I am using SSM Parameter Store for config management. There, I have one GENERAL config that is used by all EC2 instances. Additionally, I have SPECIFIC config for EC2 instances that require more setting beyond the GENERAL config.

Here is how you could do it:

#fetch GENERAL config from the SSM parameter store:

sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -s -m ec2 -c ssm:AmazonCloudWatch-GENERAL-cw-config

#fetch SPECIFIC config from the SSM parameter store:

sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a append-config -m ec2 -s -c ssm:AmazonCloudWatch-SPECIFIC-cw-config

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: caba