View a markdown version of this page

檢閱共用的 CloudWatch 儀表板許可並變更許可範圍 - Amazon CloudWatch

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

檢閱共用的 CloudWatch 儀表板許可並變更許可範圍

如果您想要檢閱共享儀表板的使用者許可,或變更共享儀表板許可的範圍,請使用本節中的步驟。

若要檢閱共享儀表板許可
  1. 透過 https://console.aws.amazon.com/cloudwatch/ 開啟 CloudWatch 主控台。

  2. 在導覽窗格中,選擇 Dashboards (儀表板)。

  3. 選擇共享儀表板的名稱。

  4. 選擇 Actions (動作),Share dashboard (共享儀表板)。

  5. Resources (資源) 下,選擇 IAM Role (IAM 角色)。

  6. 在 IAM 主控台,選擇顯示的政策。

  7. (選用) 若要限制共享儀表板使用者可以看到的警示,請選擇 Edit policy (編輯政策),然後將 cloudwatch:DescribeAlarms 許可從目前位置移到新的 Allow 陳述式,其中只列出您想要讓共享儀表板使用者看到的警示 ARN。請參閱以下範例。

    { "Effect": "Allow", "Action": "cloudwatch:DescribeAlarms", "Resource": [ "AlarmARN1", "AlarmARN2" ] }

    如果您執行此動作,請務必從目前政策的區段中移除 cloudwatch:DescribeAlarms 許可,例如:

    { "Effect": "Allow", "Action": [ "cloudwatch:GetInsightRuleReport", "cloudwatch:GetMetricData", "cloudwatch:DescribeAlarms", "ec2:DescribeTags" ], "Resource": "*" }
  8. (選用) 若要限制共享儀表板使用者可以看到的 Contributor Insights 規則的適用範圍,請選擇 Edit policy (編輯政策),然後將 cloudwatch:GetInsightRuleReport 從目前位置移到新的 Allow 陳述式,其中只列出您想要讓共享儀表板使用者看到的 Contributor Insights 規則 ARN。請參閱以下範例。

    { "Effect": "Allow", "Action": "cloudwatch:GetInsightRuleReport", "Resource": [ "PublicContributorInsightsRuleARN1", "PublicContributorInsightsRuleARN2" ] }

    如果您執行此動作,請務必從目前政策的區段中移除 cloudwatch:GetInsightRuleReport,例如:

    { "Effect": "Allow", "Action": [ "cloudwatch:GetInsightRuleReport", "cloudwatch:GetMetricData", "cloudwatch:DescribeAlarms", "ec2:DescribeTags" ], "Resource": "*" }