ERROR: Failed to call CloudWatch

Table of Contents

Error

Received HTTP status 400 on attempt 1
{"__type":"com.amazon.coral.service#UnrecognizedClientException","message":"The security token included in the request is invalid."}

ERROR: Failed to call CloudWatch: HTTP 400. Message: The security token included in the request is invalid.

For more information, run 'mon-put-instance-data.pl --help'

Solution

— Verify IAM user account have “CloudWatchFullAccess” policy attached.

— Verify “AWSAccessKeyId” and “AWSSecretKey” are correctly placed inside the config file “awscreds.conf“. like below i.e. without any single or double quote.

root@FlyWithEdu:/etc/aws-scripts-mon# cat awscreds.conf
AWSAccessKeyId=AXXXXXXXXXXXXXXXXXXD
AWSSecretKey=6XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXW

Leave a Reply