Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Using the AWS Console
    To attach the IAM Role, go to the EC2 Dashboard, select Instance from the menu and check the checkbox of the EC2 Instance. Click on the Actions dropdown and choose Instance Settings>Attach/Replace Security>Modify IAM Role>Choose IAM Role and update IAM Role.
    To attach this role, search for it, select the created IAM role, and then click Apply to attach it.
  • Using the AWS CLI
    For AWS CLI Version 1.11.46, use the below command to attach the IAM Role:

...

The log agent uses the config file located . Users need to create it at the below path:

Code Block
/opt/aws/amazon-cloudwatch-agent/bin/config.json

...