Skip to main content
IAM Policy Map

AmazonSSMMaintenanceWindowRole

OperatorService roleActivePermissions reviewedShow on mapCompare

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.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
Resource Groups2 of 292 List; 0 restricted, 0 conditionalresource-groups:ListGroupResources, resource-groups:ListGroups
Systems Manager5 of 1641 List, 2 Read, 2 Write; 0 restricted, 0 conditionalssm:GetAutomationExecution, ssm:GetParameters, ssm:ListCommands, ssm:SendCommand, ssm:StartAutomationExecution
Step Functions2 of 371 Read, 1 Write; 2 restricted, 0 conditionalstates:DescribeExecution, states:StartExecution
Resource Group Tagging1 of 91 Read; 0 restricted, 0 conditionaltag: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.

Data-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
Lambda1 of 141 Write; 1 restricted, 0 conditionallambda: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.

Same service

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

Download 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/AmazonSSMMaintenanceWindowRole

CloudFormation

Resources:
  ExampleRole:
    Type: AWS::IAM::Role
    Properties:
      AssumeRolePolicyDocument: {}  # replace with your trust policy
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/service-role/AmazonSSMMaintenanceWindowRole

Terraform

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.