AWSEC2SqlHaInstancePolicy
Summary
Amazon EC2 instance permissions to allow EC2 SQL High Availability service to detect instance high availability state through EC2 instance profile.
Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.
Identity
- ARN
arn:aws:iam::aws:policy/AWSEC2SqlHaInstancePolicy- Default version
- v3
- Created
- Last edited
- Services
- ec2messages, secretsmanager, ssm, ssmmessages
Control-plane actions (12)
By access level: 3 Read, 9 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| EC2 Messages | All 6 actions (see the EC2 Messages page) | 2 Read, 4 Write; 0 restricted, 0 conditional | ec2messages:AcknowledgeMessage, ec2messages:DeleteMessage, ec2messages:FailMessage, ec2messages:GetEndpoint, ec2messages:GetMessages, ec2messages:SendReply |
| Secrets Manager | 1 of 27 | 1 Read; 1 restricted, 1 conditional | secretsmanager:GetSecretValue |
| Systems Manager | 1 of 164 | 1 Write; 1 restricted, 1 conditional | ssm:UpdateInstanceInformation |
| SSM Messages | All 4 actions (see the SSM Messages page) | 4 Write; 0 restricted, 0 conditional | ssmmessages:CreateControlChannel, ssmmessages:CreateDataChannel, ssmmessages:OpenControlChannel, ssmmessages:OpenDataChannel |
Secrets Manager: 1 actions
- secretsmanager:GetSecretValue (Read)
Systems Manager: 1 actions
- ssm:UpdateInstanceInformation (Write)
Data-plane actions (0)
By access level: none.
This policy grants no actions in this plane.
Excluded and conditional actions
No patterns are excluded by NotAction or Deny statements.
Resource scope and attachment
Resource scope across granted actions: mixed.
Can be attached: Yes, to users, groups and roles.
Why this tier
- Grants 9 write, tagging or permissions-management actions, short of full control of any service.
Guidance
Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.
Related policies
Same service
- AmazonEC2RoleforSSM
- AmazonEKSConnectorServiceRolePolicy
- AmazonEKSLocalOutpostClusterPolicy
- AmazonElasticFileSystemsUtils
- AmazonRDSCustomInstanceProfileRolePolicy
- AmazonSageMakerClusterInstanceRolePolicy
- AmazonSSMFullAccess
- AmazonSSMManagedEC2InstanceDefaultPolicy
Same domain
Frequently asked questions
Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.
Policy JSON
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ssm:UpdateInstanceInformation"
],
"Resource": "arn:aws:ec2:*:*:instance/*",
"Condition": {
"StringLike": {
"aws:ResourceTag/SqlHaMonitored": "true"
}
}
},
{
"Effect": "Allow",
"Action": [
"secretsmanager:GetSecretValue"
],
"Resource": "arn:aws:secretsmanager:*:*:secret:*",
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSEc2SqlHa": "*"
}
}
},
{
"Effect": "Allow",
"Action": [
"ssmmessages:CreateControlChannel",
"ssmmessages:CreateDataChannel",
"ssmmessages:OpenControlChannel",
"ssmmessages:OpenDataChannel"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"ec2messages:AcknowledgeMessage",
"ec2messages:DeleteMessage",
"ec2messages:FailMessage",
"ec2messages:GetEndpoint",
"ec2messages:GetMessages",
"ec2messages:SendReply"
],
"Resource": "*"
}
]
}
Version history
Current version v3, edited by AWS on 2026-02-12. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.
Attach snippets
AWS CLI
aws iam attach-role-policy --role-name ROLE_NAME --policy-arn arn:aws:iam::aws:policy/AWSEC2SqlHaInstancePolicy
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AWSEC2SqlHaInstancePolicy
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AWSEC2SqlHaInstancePolicyCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AWSEC2SqlHaInstancePolicyTerraform
resource "aws_iam_role_policy_attachment" "awsec2sqlhainstancepolicy" {
role = aws_iam_role.example.name
policy_arn = "arn:aws:iam::aws:policy/AWSEC2SqlHaInstancePolicy"
}CDK (TypeScript)
role.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName("AWSEC2SqlHaInstancePolicy"),
);Sources
Pending editorial review. No editorial sources are listed yet.