In this article, we will see how to execute a shell script in EC2 using AWS Systems Manager (SSM) and capture the logs in AWS CloudWatch. AWS SSM cannot perform any actions on EC2 instances by default. For an EC2 Instance to be managed by SSM, The I...