- Newest
- Most votes
- Most comments
Hello.
aws configure --profile AmazonCloudWatchAgent --> I do not have an IAM but using a Access/Secret key that should have full access at the moment.
EC2 does not require setting an access key.
Attach an IAM role to EC2 instead.
I think the following document will be helpful for creating an IAM role.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/create-iam-roles-for-cloudwatch-agent.html
Please try running the CloudWatch Agent startup command described in the following document.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/install-CloudWatch-Agent-commandline-fleet.html#start-CloudWatch-Agent-EC2-commands-fleet
There is also a log file for the CloudWatch Agent itself, so check there to see if any errors have occurred.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/troubleshooting-CloudWatch-Agent.html
Relevant content
asked 2 years ago
