Monday, 20 January 2020

AWS CloudWatch - awslogs.log:Error:NoCredentialsError: Unable to locate credentials





 After Cloudwatch agent installation in the install when you check the agent log /var/log/awslogs.log

Error:
NoCredentialsError: Unable to locate credentials

 
Solution:
Create and Add the IAM role as below
+AWS CloudWatch - Create role for cloudwatch to attach to EC2
+AWS CloudWatch - Attach CloudWatch role to EC2 instance 
Then stop and start the services.
systemctl stop awslogsd
systemctl start awslogsd
then check the log

No comments: