aws / amazon-ssm-agent

An agent to enable remote management of your EC2 instances, on-premises servers, or virtual machines (VMs).

Home Page:https://aws.amazon.com/systems-manager/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

bflance opened this issue · comments

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