本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
AWSEC2SqlHaServiceRolePolicy
描述:偵測待命/被動執行個體的 EC2 SQL 高可用性服務許可
AWSEC2SqlHaServiceRolePolicy 是 AWS 受管政策。
使用此政策
此政策會連接到服務連結角色,允許服務代表您執行動作。您無法將此政策連接至使用者、群組或角色。
政策詳細資訊
-
類型:服務連結角色政策
-
建立時間:2025 年 11 月 13 日 01:34 UTC
-
編輯時間:2025 年 11 月 13 日 01:34 UTC
-
ARN:
arn:aws:iam::aws:policy/aws-service-role/AWSEC2SqlHaServiceRolePolicy
政策版本
政策版本: v1 (預設)
政策的預設版本是定義政策許可的版本。當具有 政策的使用者或角色提出存取 AWS 資源的請求時, 會 AWS 檢查政策的預設版本,以決定是否允許請求。
JSON 政策文件
{ "Version" : "2012-10-17", "Statement" : [ { "Sid" : "AllowSSMSendCommandToTaggedInstances", "Effect" : "Allow", "Action" : "ssm:SendCommand", "Resource" : [ "arn:aws:ec2:*:*:instance/*" ], "Condition" : { "StringLike" : { "aws:ResourceTag/SqlHaMonitored" : "true" } } }, { "Sid" : "AllowSSMSendCommandOfOwnedDoc", "Effect" : "Allow", "Action" : "ssm:SendCommand", "Resource" : [ "arn:aws:ssm:*:*:document/AWSEC2-DetectSqlHa*" ] }, { "Sid" : "AllowSSMNonMutating", "Effect" : "Allow", "Action" : [ "ssm:DescribeInstanceInformation", "ssm:GetCommandInvocation", "ssm:ListCommands", "ssm:ListCommandInvocations" ], "Resource" : "*" }, { "Sid" : "AllowEC2NonMutating", "Effect" : "Allow", "Action" : [ "ec2:DescribeInstances", "ec2:DescribeInstanceAttribute", "ec2:DescribeInstanceStatus", "ec2:DescribeTags" ], "Resource" : "*" }, { "Sid" : "AllowEventsMutateManagedRule", "Effect" : "Allow", "Action" : [ "events:PutTargets", "events:PutRule", "events:DeleteRule", "events:RemoveTargets" ], "Condition" : { "StringEquals" : { "events:ManagedBy" : "ec2sqlha.amazonaws.com", "aws:PrincipalAccount" : "${aws:ResourceAccount}" } }, "Resource" : "arn:aws:events:*:*:rule/AWSEC2SqlHa*" }, { "Sid" : "AllowEventsNonMutatingManagedRule", "Effect" : "Allow", "Action" : [ "events:ListTargetsByRule", "events:DescribeRule" ], "Resource" : "arn:aws:events:*:*:rule/AWSEC2SqlHa*" } ] }