AWS-SSM-RemediationAutomation-ExecutionRolePolicy
Last Modified
Mar 12, 2026
March 12, 2026 at 09:25 PM UTC
Version
v4
Total Versions
2
Created
Feb 12, 2026
Actions
26
Risk
no risk signalRead from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed
IAM Access Analyzer (1)
- Warning / TYPE_MISMATCH
Use the operator type String instead of operator ARN for the condition key kms:EncryptionContext:aws:s3:arn. AWS docs
Policy Document
View on GitHub{
"PolicyVersion": {
"Document": {
"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"
}
}
}
]
},
"VersionId": "v4",
"IsDefaultVersion": true,
"CreateDate": "2026-02-12T17:58:49+00:00"
}
}Version History (5 recorded)
Raw historyAWS-SSM-RemediationAutomation-ExecutionRolePolicy - Policy Version v4
No recorded action delta - this version predates the change index. View the raw diff.
Mar 12, 2026
5802179AWS-SSM-RemediationAutomation-ExecutionRolePolicy - Policy Version v4
No recorded action delta - this version predates the change index. View the raw diff.
Feb 12, 2026
37c68a4AWS-SSM-RemediationAutomation-ExecutionRolePolicy - Policy Version v3
No recorded action delta - this version predates the change index. View the raw diff.
Feb 12, 2026
21da34eAWS-SSM-RemediationAutomation-ExecutionRolePolicy - Policy Version v2
No recorded action delta - this version predates the change index. View the raw diff.
Jul 16, 2025
9ecde5bUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Nov 18, 2024
2631cef