IAM 許可和政策 - Amazon Managed Service for Prometheus

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

IAM 許可和政策

存取 Amazon Managed Service for Prometheus 動作和資料需要憑證。這些登入資料必須具有執行動作和存取 AWS 資源的許可,例如擷取 Amazon Managed Service for Prometheus 雲端資源的資料。下列各節提供如何使用 AWS Identity and Access Management (IAM) 和 Amazon Managed Service for Prometheus 的詳細資訊,藉由控制誰可以存取這些資源,以協助保護您的資源。如需詳細資訊,請參閱 IAM 中的政策和許可

Amazon Managed Service for Prometheus 許可

下表顯示 Amazon Managed Service for Prometheus 動作及其所需的許可。這些動作可能還需要其他服務的許可,沒有詳細說明。

動作 所需的許可

建立警示。

aps:CreateAlertManagerAlerts

在工作區中建立警示管理員定義。如需詳細資訊,請參閱 使用警示管理員管理和轉送 Amazon Managed Service for Prometheus 中的警示

aps:CreateAlertManagerDefinition

在工作區中建立規則群組命名空間。如需詳細資訊,請參閱 使用規則來修改或監控收到指標時的指標

aps:CreateRuleGroupsNamespace

建立 Amazon Managed Service for Prometheus 工作區。工作區是專用於儲存和查詢 Prometheus 指標的邏輯空間。

aps:CreateWorkspace

刪除工作區的警示管理員定義。

aps:DeleteAlertManagerDefinition

刪除警示靜音。

aps:DeleteAlertManagerSilence

刪除 Amazon Managed Service for Prometheus 工作區。

aps:DeleteWorkspace

擷取有關警示管理員定義的詳細資訊。

aps:DescribeAlertManagerDefinition

擷取有關規則群組命名空間的詳細資訊。

aps:DescribeRuleGroupsNamespace

擷取有關 Amazon Managed Service for Prometheus 工作區的詳細資訊。

aps:DescribeWorkspace

擷取警示靜音的詳細資訊。

aps:GetAlertManagerSilence

擷取工作區中警示管理員的狀態。

aps:GetAlertManagerStatus

擷取標籤。

aps:GetLabels

擷取 Amazon Managed Service for Prometheus 指標的中繼資料。

aps:GetMetricMetadata

擷取時間序列資料。

aps:GetSeries

擷取警示管理員定義中定義的警示群組清單。

aps:ListAlertManagerAlertGroups

擷取警示管理員中定義的警示清單。

aps:ListAlertManagerAlerts

擷取已在警示管理員定義中定義的接收者清單。

aps:ListAlertManagerReceivers

擷取已定義警示靜音的清單。

aps:ListAlertManagerSilences

擷取啟用中警示的清單。

aps:ListAlerts

擷取工作區中規則群組命名空間的規則清單。

aps:ListRules

擷取工作區中規則群組命名空間的清單。

aps:ListRuleGroupsNamespaces

擷取與 Amazon Managed Service for Prometheus 資源相關聯的標籤。

aps:ListTagsForResource

擷取帳戶中存在的 Amazon Managed Service for Prometheus 工作區清單。

aps:ListWorkspaces

更新工作區中現有的警示管理員定義。

aps:PutAlertManagerDefinition

建立警示靜音。

aps:PutAlertManagerSilences

更新現有規則群組命名空間。

aps:PutRuleGroupsNamespace

在 Amazon Managed Service for Prometheus 指標執行查詢。

aps:QueryMetrics

執行遠端寫入作業,以啟動 Prometheus 伺服器至 Amazon Managed Service for Prometheus 的指標串流。

aps:RemoteWrite

將標籤指派給 Amazon Managed Service for Prometheus 資源。

aps:TagResource

移除 Amazon Managed Service for Prometheus 資源的標籤。

aps:UntagResource

修改現有工作區的別名。

aps:UpdateWorkspaceAlias

建立記錄組態。

aps:CreateLoggingConfiguration

刪除記錄組態。

aps:DeleteLoggingConfiguration

說明工作區記錄組態。

aps:DescribeLoggingConfiguration

更新記錄組態。

aps:UpdateLoggingConfiguration

範例 IAM 政策

本節提供可以建立的其他自我管理政策範例。

下列 IAM 政策授予 Amazon Managed Service for Prometheus 的完整存取權,也可讓使用者探索 Amazon EKS 叢集並查看叢集相關詳細資訊。

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "aps:*", "eks:DescribeCluster", "eks:ListClusters" ], "Resource": "*" } ] }