AWS-SSM-RemediationAutomation-ExecutionRolePolicy
Summary
Provides permissions for Remediating issues with SSM services by executing activities defined within Automation Documents, primarily used for running the Automation documents in a target account/region setup by remediating SSM services health across all nodes.
Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.
Identity
- ARN
arn:aws:iam::aws:policy/AWS-SSM-RemediationAutomation-ExecutionRolePolicy- Default version
- v4
- Created
- Last edited
- Services
- ec2, iam, kms, ssm
Control-plane actions (19)
By access level: 5 List, 3 Read, 1 Tagging, 10 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| EC2 | 12 of 834 | 5 List, 1 Tagging, 6 Write; 7 restricted, 4 conditional | ec2:AuthorizeSecurityGroupEgress, ec2:AuthorizeSecurityGroupIngress, ec2:CreateSecurityGroup, ec2:CreateTags, ec2:CreateVpcEndpoint, ec2:DescribeSecurityGroups, ec2:DescribeSubnets, ec2:DescribeVpcAttribute, ec2:DescribeVpcEndpoints, ec2:DescribeVpcs, ec2:ModifyVpcAttribute, ec2:RevokeSecurityGroupEgress |
| IAM | 1 of 190 | 1 Write; 1 restricted, 1 conditional | iam:PassRole |
| KMS | 2 of 58 | 2 Write; 2 restricted, 2 conditional | kms:Decrypt, kms:GenerateDataKey |
| Systems Manager | 4 of 164 | 3 Read, 1 Write; 1 restricted, 0 conditional | ssm:DescribeAutomationExecutions, ssm:DescribeAutomationStepExecutions, ssm:GetAutomationExecution, ssm:StartAutomationExecution |
EC2: 12 actions
- ec2:AuthorizeSecurityGroupEgress (Write)
- ec2:AuthorizeSecurityGroupIngress (Write)
- ec2:CreateSecurityGroup (Write)
- ec2:CreateTags (Tagging)
- ec2:CreateVpcEndpoint (Write)
- ec2:DescribeSecurityGroups (List)
- ec2:DescribeSubnets (List)
- ec2:DescribeVpcAttribute (List)
- ec2:DescribeVpcEndpoints (List)
- ec2:DescribeVpcs (List)
- ec2:ModifyVpcAttribute (Write)
- ec2:RevokeSecurityGroupEgress (Write)
IAM: 1 actions
- iam:PassRole (Write)
KMS: 2 actions
- kms:Decrypt (Write)
- kms:GenerateDataKey (Write)
Systems Manager: 4 actions
- ssm:DescribeAutomationExecutions (Read)
- ssm:DescribeAutomationStepExecutions (Read)
- ssm:GetAutomationExecution (Read)
- ssm:StartAutomationExecution (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 11 write, tagging or permissions-management actions, short of full control of any service.
- Grants iam:PassRole, but only for scoped roles or under conditions (for example iam:PassedToService).
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
- AdministratorAccess-AWSElasticBeanstalk
- AgentRegistryFullAccess
- AIDevOpsReleaseManagementVPCPolicy
- AIOpsOperatorAccess
- AmazonAppFlowFullAccess
- AmazonAppStreamServiceAccess
- AmazonAuroraDSQLConsoleFullAccess
- AmazonAuroraDSQLFullAccess
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": [
{
"Sid": "AllowReadOnlyAccessSSMResource",
"Effect": "Allow",
"Action": [
"ssm:GetAutomationExecution",
"ssm:DescribeAutomationExecutions",
"ssm:DescribeAutomationStepExecutions"
],
"Resource": "*"
},
{
"Sid": "AllowReadOnlyAccessEC2Resource",
"Effect": "Allow",
"Action": [
"ec2:DescribeVpcAttribute",
"ec2:DescribeSubnets",
"ec2:DescribeVpcs",
"ec2:DescribeVpcEndpoints",
"ec2:DescribeSecurityGroups"
],
"Resource": "*"
},
{
"Sid": "AllowCreateVpcEndpointForTaggedSecurityGroup",
"Effect": "Allow",
"Action": [
"ec2:CreateVpcEndpoint"
],
"Resource": [
"arn:aws:ec2:*:*:security-group/*"
],
"Condition": {
"StringEquals": {
"aws:ResourceTag/SystemsManager::FindingNetworkingSecurityGroups::VPCE::SG": "VPCEndpointSecurityGroup"
}
}
},
{
"Sid": "AllowCreateVpcEndpoint",
"Effect": "Allow",
"Action": [
"ec2:CreateVpcEndpoint"
],
"Resource": [
"arn:aws:ec2:*:*:vpc/*",
"arn:aws:ec2:*:*:subnet/*"
]
},
{
"Sid": "RestrictCreateVpcEndpointForSSMService",
"Effect": "Allow",
"Action": [
"ec2:CreateVpcEndpoint"
],
"Resource": [
"arn:aws:ec2:*:*:vpc-endpoint/*"
],
"Condition": {
"StringLike": {
"ec2:VpceServiceName": [
"com.amazonaws.*.ssm",
"com.amazonaws.*.ssmmessages",
"com.amazonaws.*.ec2messages"
]
},
"StringEquals": {
"aws:RequestTag/SystemsManager::FindingNetworkingVPCEndpoints::VPCE": "VPCEndpoint"
}
}
},
{
"Sid": "RestrictCreateVpcEndpointWithTag",
"Effect": "Allow",
"Action": "ec2:CreateTags",
"Resource": [
"arn:aws:ec2:*:*:vpc-endpoint/*"
],
"Condition": {
"StringEquals": {
"aws:RequestTag/SystemsManager::FindingNetworkingVPCEndpoints::VPCE": "VPCEndpoint",
"ec2:CreateAction": [
"CreateVpcEndpoint"
]
}
}
},
{
"Sid": "AllowModifyVpcAttributeForDns",
"Effect": "Allow",
"Action": [
"ec2:ModifyVpcAttribute"
],
"Resource": [
"arn:aws:ec2:*:*:vpc/*"
],
"Condition": {
"StringEquals": {
"ec2:Attribute": [
"EnableDnsSupport",
"EnableDnsHostnames"
]
}
}
},
{
"Sid": "AllowSecurityGroupRuleUpdate",
"Effect": "Allow",
"Action": [
"ec2:AuthorizeSecurityGroupEgress"
],
"Resource": [
"arn:aws:ec2:*:*:security-group/*"
]
},
{
"Sid": "AllowSecurityGroupRuleUpdateForTaggedResource",
"Effect": "Allow",
"Action": [
"ec2:RevokeSecurityGroupEgress",
"ec2:AuthorizeSecurityGroupIngress"
],
"Resource": [
"arn:aws:ec2:*:*:security-group/*"
],
"Condition": {
"StringEquals": {
"aws:ResourceTag/SystemsManager::FindingNetworkingSecurityGroups::VPCE::SG": "VPCEndpointSecurityGroup"
}
}
},
{
"Sid": "AllowSecurityGroupRuleUpdateWithTag",
"Effect": "Allow",
"Action": [
"ec2:AuthorizeSecurityGroupEgress",
"ec2:AuthorizeSecurityGroupIngress"
],
"Resource": [
"arn:aws:ec2:*:*:security-group-rule/*"
],
"Condition": {
"StringEquals": {
"aws:RequestTag/SystemsManager::FindingNetworkingSecurityGroups::SG::Rule": "HTTPSAccess"
}
}
},
{
"Sid": "AllowSecurityGroupRuleUpdateTagRule",
"Effect": "Allow",
"Action": "ec2:CreateTags",
"Resource": [
"arn:aws:ec2:*:*:security-group-rule/*"
],
"Condition": {
"StringEquals": {
"aws:RequestTag/SystemsManager::FindingNetworkingSecurityGroups::SG::Rule": "HTTPSAccess",
"ec2:CreateAction": [
"AuthorizeSecurityGroupEgress",
"AuthorizeSecurityGroupIngress"
]
}
}
},
{
"Sid": "AllowCreateSecurityGroupForVPCEndpoint",
"Effect": "Allow",
"Action": [
"ec2:CreateSecurityGroup"
],
"Resource": [
"arn:aws:ec2:*:*:vpc/*"
]
},
{
"Sid": "AllowCreateSecurityGroupWithTag",
"Effect": "Allow",
"Action": [
"ec2:CreateSecurityGroup"
],
"Resource": [
"arn:aws:ec2:*:*:security-group/*"
],
"Condition": {
"StringEquals": {
"aws:RequestTag/SystemsManager::FindingNetworkingSecurityGroups::VPCE::SG": "VPCEndpointSecurityGroup"
}
}
},
{
"Sid": "AllowTagCreationForSecurityGroupTags",
"Effect": "Allow",
"Action": "ec2:CreateTags",
"Resource": [
"arn:aws:ec2:*:*:security-group/*"
],
"Condition": {
"StringEquals": {
"aws:RequestTag/SystemsManager::FindingNetworkingSecurityGroups::VPCE::SG": "VPCEndpointSecurityGroup",
"ec2:CreateAction": [
"CreateSecurityGroup"
]
}
}
},
{
"Sid": "AllowExecuteSSMAutomation",
"Effect": "Allow",
"Action": [
"ssm:StartAutomationExecution"
],
"Resource": [
"arn:aws:ssm:*:*:document/AWS-OrchestrateUnmanagedEC2Actions",
"arn:aws:ssm:*:*:document/AWS-RemediateSSMAgent*",
"arn:aws:ssm:*:*:automation-execution/*",
"arn:aws:ssm:*:*:automation-definition/AWS-OrchestrateUnmanagedEC2Actions:*",
"arn:aws:ssm:*:*:automation-definition/AWS-RemediateSSMAgent*:*"
]
},
{
"Sid": "AllowKMSOperations",
"Effect": "Allow",
"Action": [
"kms:Decrypt",
"kms:GenerateDataKey"
],
"Resource": "arn:aws:kms:*:*:key/*",
"Condition": {
"StringEquals": {
"aws:ResourceTag/SystemsManagerManaged": "true"
},
"ArnLike": {
"kms:EncryptionContext:aws:s3:arn": "arn:aws:s3:::do-not-delete-ssm-diagnosis-*"
},
"StringLike": {
"kms:ViaService": "s3.*.amazonaws.com"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Sid": "AllowPassRoleOnSelfToSsm",
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": "arn:aws:iam::*:role/AWS-SSM-RemediationExecutionRole*",
"Condition": {
"StringEquals": {
"iam:PassedToService": "ssm.amazonaws.com"
}
}
}
]
}
Version history
Current version v4, 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/AWS-SSM-RemediationAutomation-ExecutionRolePolicy
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AWS-SSM-RemediationAutomation-ExecutionRolePolicy
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AWS-SSM-RemediationAutomation-ExecutionRolePolicyCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AWS-SSM-RemediationAutomation-ExecutionRolePolicyTerraform
resource "aws_iam_role_policy_attachment" "aws_ssm_remediationautomation_executionrolepolicy" {
role = aws_iam_role.example.name
policy_arn = "arn:aws:iam::aws:policy/AWS-SSM-RemediationAutomation-ExecutionRolePolicy"
}CDK (TypeScript)
role.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName("AWS-SSM-RemediationAutomation-ExecutionRolePolicy"),
);Sources
Pending editorial review. No editorial sources are listed yet.