aws / amazon-ssm-agent

An agent to enable remote management of your EC2 instances, on-premises servers, or virtual machines (VMs).
https://aws.amazon.com/systems-manager/
Apache License 2.0
1.03k stars 323 forks source link

How to register amazon-ssm-agent on ubuntu with different AWS SSM Patch baseline? #527

Open bflance opened 11 months ago

bflance commented 11 months ago

Hi,

I am using ubuntu 20.04 machines with AWS SSM and amazon-ssm-agent snap package to manage said machines via SSM. In AWS Systems manager (SSM) i have default patch baseline, which is used by all new machines, and i have created a new 'test baseline' with different versions of patches.

question is - how to configure ssm-agent on the ubuntu machine to use different patch baseline rather than default one?

I am using following command to register the ubuntu machines:

sudo /snap/amazon-ssm-agent/current/amazon-ssm-agent -register \
  -tags 'Key=PatchGroup,Value=default-group' \
  -code "$CODE" \
  -id "$ID" \
  -region us-east-1 -y

thanx