AmazonSSMMaintenanceWindowRole
Summary
Service Role to be used for EC2 Maintenance Window
Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.
Identity
- ARN
arn:aws:iam::aws:policy/service-role/AmazonSSMMaintenanceWindowRole- Default version
- v3
- Created
- Last edited
- Services
- lambda, resource-groups, ssm, states, tag
Control-plane actions (10)
By access level: 3 List, 4 Read, 3 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| Resource Groups | 2 of 29 | 2 List; 0 restricted, 0 conditional | resource-groups:ListGroupResources, resource-groups:ListGroups |
| Systems Manager | 5 of 164 | 1 List, 2 Read, 2 Write; 0 restricted, 0 conditional | ssm:GetAutomationExecution, ssm:GetParameters, ssm:ListCommands, ssm:SendCommand, ssm:StartAutomationExecution |
| Step Functions | 2 of 37 | 1 Read, 1 Write; 2 restricted, 0 conditional | states:DescribeExecution, states:StartExecution |
| Resource Group Tagging | 1 of 9 | 1 Read; 0 restricted, 0 conditional | tag:GetResources |
Resource Groups: 2 actions
- resource-groups:ListGroupResources (List)
- resource-groups:ListGroups (List)
Systems Manager: 5 actions
- ssm:GetAutomationExecution (Read)
- ssm:GetParameters (Read)
- ssm:ListCommands (List)
- ssm:SendCommand (Write)
- ssm:StartAutomationExecution (Write)
Step Functions: 2 actions
- states:DescribeExecution (Read)
- states:StartExecution (Write)
Resource Group Tagging: 1 actions
- tag:GetResources (Read)
Data-plane actions (1)
By access level: 1 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| Lambda | 1 of 14 | 1 Write; 1 restricted, 0 conditional | lambda:InvokeFunction |
Lambda: 1 actions
- lambda:InvokeFunction (Write)
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 4 write, tagging or permissions-management actions, short of full control of any service.
- Can read secret values or decrypt data. Reads are not a High privilege rule.
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
- AIOpsOperatorAccess
- AmazonEC2ImageReferencesAccessPolicy
- AmazonEC2RoleforSSM
- AmazonEKSConnectorServiceRolePolicy
- AmazonEKSLocalOutpostClusterPolicy
- AmazonElasticFileSystemsUtils
- AmazonGuardDutyServiceRolePolicy
- AmazonInspector2ServiceRolePolicy
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:GetAutomationExecution",
"ssm:GetParameters",
"ssm:ListCommands",
"ssm:SendCommand",
"ssm:StartAutomationExecution"
],
"Resource": [
"*"
]
},
{
"Effect": "Allow",
"Action": [
"lambda:InvokeFunction"
],
"Resource": [
"arn:aws:lambda:*:*:function:SSM*",
"arn:aws:lambda:*:*:function:*:SSM*"
]
},
{
"Effect": "Allow",
"Action": [
"states:DescribeExecution",
"states:StartExecution"
],
"Resource": [
"arn:aws:states:*:*:stateMachine:SSM*",
"arn:aws:states:*:*:execution:SSM*"
]
},
{
"Effect": "Allow",
"Action": [
"resource-groups:ListGroups",
"resource-groups:ListGroupResources"
],
"Resource": [
"*"
]
},
{
"Effect": "Allow",
"Action": [
"tag:GetResources"
],
"Resource": [
"*"
]
}
]
}
Version history
Current version v3, edited by AWS on 2019-07-27. 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/service-role/AmazonSSMMaintenanceWindowRole
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AmazonSSMMaintenanceWindowRole
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AmazonSSMMaintenanceWindowRoleCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/service-role/AmazonSSMMaintenanceWindowRoleTerraform
resource "aws_iam_role_policy_attachment" "service_role_amazonssmmaintenancewindowrole" {
role = aws_iam_role.example.name
policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonSSMMaintenanceWindowRole"
}CDK (TypeScript)
role.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName("service-role/AmazonSSMMaintenanceWindowRole"),
);Sources
Pending editorial review. No editorial sources are listed yet.