Hi. I have a question about how to configure CloudWatch Agent for GameLift instance.
Default gamelift metrics doesn’t provide memory/disk usage, so I want to use CloudWatch Agent for it. But when I try it, it doesn work and failed due to “refresh EC2 Instance Tags failed: UnauthorizedOperation: You are not authorized to perform this operation.”
Here is my attempt:
- Create IAM accout for CloudWatch Agent.
- Create AmazonCloudWatchAgent profile (access key and secret for 1) by calling aws configure command in install.sh
- Install / Run CloudWatchAgent in install.sh
After that, CloudWatchAgent is running but send data is failed.