AWS-SSM-DiagnosisAutomation-AdministrationRolePolicy
Last Modified
Aug 31, 2026
August 31, 2026 at 12:03 AM UTC
Version
v5
Total Versions
3
Created
Aug 29, 2026
Actions
12
Risk
MediumThe same capabilities in a scoped form, resource policy writes, reads across all data, or full access to a whole service. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed
- Medium
Can take over other users or roles
Grants the actions of 1 documented escalation path, but only on named resources or under a condition. Review that scope before trusting it.
- sts:AssumeRole: condition aws:ResourceAccount, on arn:aws:iam::*:role/AWS-SSM-DiagnosisExecutionRole*
Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.
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:DescribeAutomationExecutions",
"ssm:DescribeAutomationStepExecutions",
"ssm:GetAutomationExecution"
],
"Resource": "*"
},
{
"Sid": "AllowExecuteSSMAutomation",
"Effect": "Allow",
"Action": [
"ssm:StartAutomationExecution"
],
"Resource": [
"arn:aws:ssm:*:*:document/AWS-*UnmanagedEC2*",
"arn:aws:ssm:*:*:document/AWS-DiagnoseHybridActivationIssues",
"arn:aws:ssm:*:*:automation-execution/*",
"arn:aws:ssm:*:*:automation-definition/AWS-*UnmanagedEC2*:*",
"arn:aws:ssm:*:*:automation-definition/AWS-DiagnoseHybridActivationIssues:*"
]
},
{
"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": "AllowAssumeDiagnosisExecutionRoleWithinAccount",
"Effect": "Allow",
"Action": "sts:AssumeRole",
"Resource": "arn:aws:iam::*:role/AWS-SSM-DiagnosisExecutionRole*",
"Condition": {
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
}
}
},
{
"Sid": "AllowPassRoleOnSelfToSsm",
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": "arn:aws:iam::*:role/AWS-SSM-DiagnosisAdminRole*",
"Condition": {
"StringEquals": {
"iam:PassedToService": "ssm.amazonaws.com"
}
}
},
{
"Sid": "AllowReadWriteToSsmDiagnosisBucketInSameAccount",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject"
],
"Resource": "arn:aws:s3:::do-not-delete-ssm-diagnosis-*/actions/*",
"Condition": {
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
}
}
},
{
"Sid": "AllowListBucketOnSsmDiagnosisBucketInSameAccount",
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": "arn:aws:s3:::do-not-delete-ssm-diagnosis-*",
"Condition": {
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
}
}
}
]
},
"VersionId": "v5",
"IsDefaultVersion": true,
"CreateDate": "2026-08-29T00:47:07+00:00"
}
}Version History (6 recorded)
Raw historyscope changed, no action added or removed
AWS-SSM-DiagnosisAutomation-AdministrationRolePolicy - Policy Version v4
No recorded action delta - this version predates the change index. View the raw diff.
Mar 12, 2026
0fd13bdAWS-SSM-DiagnosisAutomation-AdministrationRolePolicy - Policy Version v4
No recorded action delta - this version predates the change index. View the raw diff.
Feb 12, 2026
448e03dAWS-SSM-DiagnosisAutomation-AdministrationRolePolicy - Policy Version v3
No recorded action delta - this version predates the change index. View the raw diff.
Feb 12, 2026
ca621e4AWS-SSM-DiagnosisAutomation-AdministrationRolePolicy - Policy Version v2
No recorded action delta - this version predates the change index. View the raw diff.
Jul 16, 2025
2968b23Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Nov 18, 2024
2631cef