Skill 4.3.5
Installing and configuring agents on EC2 instances (for example, AWS Systems Manager Agent [SSM Agent], CloudWatch agent)
Key Concepts
SSM Agent is preinstalled on many AMIs (Amazon Linux, Ubuntu, Windows Server). The instance needs an instance profile with AmazonSSMManagedInstanceCore (or Default Host Management Configuration) and network access to the ssm, ssmmessages and ec2messages endpoints, through a NAT gateway or VPC interface endpoints.
The CloudWatch agent is installed with the Systems Manager Distributor package AmazonCloudWatchAgent and configured with the AmazonCloudWatch-ManageAgent document using a configuration stored in Parameter Store. A State Manager association keeps agents installed and configured on new instances automatically.