How to Install and Configure the CloudWatch Logs Agent on a Running EC2 Linux Instance & Push the logs to cloudwatch using Agent.

Step 1: Launch a EC2 Linuc instance & Attached IAM Role for CloudWatch Logs. To configure your IAM role or user for CloudWatch Logs Open the IAM console at https://console.aws.amazon.com/iam/. In the navigation pane, choose Roles. Choose the role by selecting the role name (do not select the check box next to the name). Choose …