Skip to main content
IAM Policy Map

AWSSystemsManagerJustInTimeAccessTokenPolicy

OperatorAWS managedActivePermissions reviewedShow on mapCompare

Summary

The managed policy AWSSystemsManagerJustInTimeAccessTokenPolicy allows Systems Manager to generate access tokens used for just-in-time node access.

Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.

Identity

ARN
arn:aws:iam::aws:policy/AWSSystemsManagerJustInTimeAccessTokenPolicy
Default version
v6
Created
Last edited
Services
identitystore, kms, ssm, ssm-guiconnect, ssmmessages, sso

Control-plane actions (13)

By access level: 1 Permissions management, 4 Read, 8 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
Identity Store1 of 291 Read; 1 restricted, 1 conditionalidentitystore:DescribeUser
KMS2 of 581 Permissions management, 1 Write; 2 restricted, 2 conditionalkms:CreateGrant, kms:GenerateDataKey
Systems Manager5 of 1641 Read, 4 Write; 5 restricted, 2 conditionalssm:GetCommandInvocation, ssm:ResumeSession, ssm:SendCommand, ssm:StartSession, ssm:TerminateSession
GUI Connect3 of 71 Read, 2 Write; 0 restricted, 0 conditionalssm-guiconnect:CancelConnection, ssm-guiconnect:GetConnection, ssm-guiconnect:StartConnection
SSM Messages1 of 41 Write; 1 restricted, 0 conditionalssmmessages:OpenDataChannel
IAM Identity Center1 of 1261 Read; 1 restricted, 1 conditionalsso:ListDirectoryAssociations*
Identity Store: 1 actions
  • identitystore:DescribeUser (Read)
KMS: 2 actions
  • kms:CreateGrant (Permissions management)
  • kms:GenerateDataKey (Write)
Systems Manager: 5 actions
  • ssm:GetCommandInvocation (Read)
  • ssm:ResumeSession (Write)
  • ssm:SendCommand (Write)
  • ssm:StartSession (Write)
  • ssm:TerminateSession (Write)
GUI Connect: 3 actions
  • ssm-guiconnect:CancelConnection (Write)
  • ssm-guiconnect:GetConnection (Read)
  • ssm-guiconnect:StartConnection (Write)
SSM Messages: 1 actions
  • ssmmessages:OpenDataChannel (Write)
IAM Identity Center: 1 actions
  • sso:ListDirectoryAssociations (Read)

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 9 write, tagging or permissions-management actions, short of full control of any service.

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": [
    {
      "Sid": "SsmStartSession",
      "Effect": "Allow",
      "Action": [
        "ssm:StartSession"
      ],
      "Resource": [
        "arn:aws:ec2:*:*:instance/*",
        "arn:aws:ssm:*:*:managed-instance/*",
        "arn:aws:ssm:*:*:document/SSM-SessionManagerRunShell"
      ]
    },
    {
      "Sid": "TerminateAndResumeSessionAndOpenDataChannel",
      "Effect": "Allow",
      "Action": [
        "ssm:TerminateSession",
        "ssm:ResumeSession",
        "ssmmessages:OpenDataChannel"
      ],
      "Resource": "arn:aws:ssm:*:*:session/*"
    },
    {
      "Sid": "GuiConnect",
      "Effect": "Allow",
      "Action": [
        "ssm-guiconnect:CancelConnection",
        "ssm-guiconnect:GetConnection",
        "ssm-guiconnect:StartConnection"
      ],
      "Resource": "*"
    },
    {
      "Sid": "SessionManagerKmsPermission",
      "Effect": "Allow",
      "Action": [
        "kms:GenerateDataKey"
      ],
      "Resource": "arn:aws:kms:*:*:key/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/SystemsManagerJustInTimeNodeAccessManaged": "true"
        }
      }
    },
    {
      "Sid": "RdpKmsPermission",
      "Effect": "Allow",
      "Action": [
        "kms:CreateGrant"
      ],
      "Resource": "arn:aws:kms:*:*:key/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/SystemsManagerJustInTimeNodeAccessManaged": "true"
        },
        "StringLike": {
          "kms:ViaService": "ssm-guiconnect.*.amazonaws.com"
        },
        "Bool": {
          "aws:ViaAWSService": "true"
        }
      }
    },
    {
      "Sid": "RdpStartSession",
      "Effect": "Allow",
      "Action": [
        "ssm:StartSession"
      ],
      "Resource": [
        "arn:aws:ec2:*:*:instance/*",
        "arn:aws:ssm:*:*:managed-instance/*",
        "arn:aws:ssm:*:*:document/AWS-StartPortForwardingSession"
      ],
      "Condition": {
        "StringEquals": {
          "aws:CalledViaFirst": "ssm-guiconnect.amazonaws.com"
        }
      }
    },
    {
      "Sid": "SsmRdpSsoSetup",
      "Effect": "Allow",
      "Action": [
        "sso:ListDirectoryAssociations*",
        "identitystore:DescribeUser",
        "ssm:GetCommandInvocation"
      ],
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "aws:CalledViaFirst": "ssm-guiconnect.amazonaws.com"
        }
      }
    },
    {
      "Sid": "SsmRdpSsoSetupSendCommand",
      "Effect": "Allow",
      "Action": [
        "ssm:SendCommand"
      ],
      "Resource": [
        "arn:aws:ec2:*:*:instance/*",
        "arn:aws:ssm:*:*:managed-instance/*",
        "arn:aws:ssm:*:*:document/AWSSSO-CreateSSOUser"
      ],
      "Condition": {
        "StringEquals": {
          "aws:CalledViaFirst": "ssm-guiconnect.amazonaws.com"
        }
      }
    }
  ]
}

Version history

Current version v6, 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/AWSSystemsManagerJustInTimeAccessTokenPolicy
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AWSSystemsManagerJustInTimeAccessTokenPolicy
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AWSSystemsManagerJustInTimeAccessTokenPolicy

CloudFormation

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

Terraform

resource "aws_iam_role_policy_attachment" "awssystemsmanagerjustintimeaccesstokenpolicy" {
  role       = aws_iam_role.example.name
  policy_arn = "arn:aws:iam::aws:policy/AWSSystemsManagerJustInTimeAccessTokenPolicy"
}

CDK (TypeScript)

role.addManagedPolicy(
  iam.ManagedPolicy.fromAwsManagedPolicyName("AWSSystemsManagerJustInTimeAccessTokenPolicy"),
);

Sources

Pending editorial review. No editorial sources are listed yet.