2017-02-13 30 views
-2

我在連接時遇到問題。無法撥打CloudWatch:HTTP 400

錯誤是:

ERROR: Failed to call CloudWatch: HTTP 400. Message: AccessDeniedException","Message":"User: arn:aws:sts::377696198162:assumed-role/Cloudwatchrole/i-0ea0067e154edcccf is not authorized to perform: cloudwatch:PutMetricData

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

+1

你什麼時候得到錯誤?你想做什麼 ? –

回答

0

您需要更新分配給您的EC2實例的IAM角色(或指定一個新的IAM角色)有cloudwatch:PutMetricData權限。或者如果您使用顯式憑證,則更新分配給IAM用戶的角色。

注意這在mon-put-instance-data.pl腳本here的文檔的步驟3中有詳細說明。