amazon web services - EC2 - cloud watch agent throw "The security token included in the request is invalid" -
i setup cloud watch agent (cwlog) on ec2 , encounter error
"the security token included in request invalid"
it wired after enable debug mode, found try shared credentials file: ~/.aws /credentials cannot find under ec2 user.
anyone can advise on it? full log shows below:
2017-08-20 23:38:26,323 - mainthread - botocore.hooks - debug - event load-cli-arg.custom.push.logging-config-file: calling handler 2017-08-20 23:38:26,323 - mainthread - botocore.hooks - debug - event load-cli-arg.custom.push.additional-configs-dir: calling handler 2017-08-20 23:38:26,323 - mainthread - botocore.hooks - debug - event process-cli-arg.custom.push: calling handler 2017-08-20 23:38:26,323 - mainthread - botocore.hooks - debug - event load-cli-arg.custom.push.buffer-duration: calling handler 2017-08-20 23:38:26,323 - mainthread - botocore.hooks - debug - event process-cli-arg.custom.push: calling handler 2017-08-20 23:38:26,323 - mainthread - botocore.hooks - debug - event load-cli-arg.custom.push.anonymous: calling handler 2017-08-20 23:38:26,324 - mainthread - botocore.credentials - debug - looking credentials via: env 2017-08-20 23:38:26,324 - mainthread - botocore.credentials - debug - looking credentials via: assume-role 2017-08-20 23:38:26,324 - mainthread - botocore.credentials - debug - looking credentials via: shared-credentials-file 2017-08-20 23:38:26,325 - mainthread - botocore.credentials - info - found credentials in shared credentials file: ~/.aws /credentials
2017-08-20 23:39:32,422 - thread-5 - botocore.endpoint - debug - sending http request: 2017-08-20 23:39:32,422 - thread-5 - botocore.vendored.requests.packages.urllib3.connectionpool - info - resetting dropped connection: logs.ap-southeast-1.amazonaws.com 2017-08-20 23:39:32,448 - thread-5 - botocore.vendored.requests.packages.urllib3.connectionpool - debug - "post / http/1.1" 400 107 2017-08-20 23:39:32,450 - thread-5 - botocore.parsers - debug - response headers: {'x-amzn-requestid': '582b44cc-8622-11e7-b195-1140b36db6b0', 'date': 'mon, 21 aug 2017 03:39:31 gmt', 'content-length': '107', 'content-type': 'application/x-amz-json-1.1', 'connection': 'close'} 2017-08-20 23:39:32,450 - thread-5 - botocore.parsers - debug - response body: {"__type":"unrecognizedclientexception","message":"the security token included in request invalid."} 2017-08-20 23:39:32,450 - thread-5 - botocore.hooks - debug - event needs-retry.logs.putlogevents: calling handler 2017-08-20 23:39:32,450 - thread-5 - botocore.retryhandler - debug - no retry needed. 2017-08-20 23:39:32,450 - cwlogs.push.publisher - warning - 12317 - thread-5 - caught exception: error occurred (unrecognizedclientexception) when calling putlogevents operation: security token included in request invalid.
Comments
Post a Comment