AWSEC2SqlHaServiceRolePolicy
Description: EC2 SQL High Availability service permissions to detect standby/passive instances
AWSEC2SqlHaServiceRolePolicy is an AWS managed policy.
Using this policy
This policy is attached to a service-linked role that allows the service to perform actions on your behalf. You cannot attach this policy to your users, groups, or roles.
Policy details
-
Type: Service-linked role policy
-
Creation time: November 13, 2025, 01:34 UTC
-
Edited time: November 13, 2025, 01:34 UTC
-
ARN:
arn:aws:iam::aws:policy/aws-service-role/AWSEC2SqlHaServiceRolePolicy
Policy version
Policy version: v1 (default)
The policy's default version is the version that defines the permissions for the policy. When a user or role with the policy makes a request to access an AWS resource, AWS checks the default version of the policy to determine whether to allow the request.
JSON policy document
{ "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*" } ] }