本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
了解使用警报管理器所需的 IAM 权限
必须向用户授予使用 Amazon Managed Service for Prometheus 中警报管理器的权限。创建具有以下权限的 AWS Identity and Access Management
(IAM)策略,并将此策略分配给您的用户、组或角色。
- JSON
-
-
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"aps:CreateAlertManagerDefinition",
"aps:DescribeAlertManagerSilence",
"aps:DescribeAlertManagerDefinition",
"aps:PutAlertManagerDefinition",
"aps:DeleteAlertManagerDefinition",
"aps:ListAlerts",
"aps:ListRules",
"aps:ListAlertManagerReceivers",
"aps:ListAlertManagerSilences",
"aps:ListAlertManagerAlerts",
"aps:ListAlertManagerAlertGroups",
"aps:GetAlertManagerStatus",
"aps:GetAlertManagerSilence",
"aps:PutAlertManagerSilences",
"aps:DeleteAlertManagerSilence",
"aps:CreateAlertManagerAlerts"
],
"Resource": "*"
}
]
}