AWSSystemsManagerJustInTimeAccessServicePolicy

Last Modified

Mar 12, 2026

March 12, 2026 at 09:27 PM UTC

Version

v9

Total Versions

4

Created

Feb 12, 2026

Actions

25

Risk

no risk signal

Read 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 (2)

  • Warning / TYPE_MISMATCH

    Use the operator type String instead of operator ARN for the condition key kms:EncryptionContext:aws:sso:instance-arn. AWS docs

  • Warning / TYPE_MISMATCH

    Use the operator type String instead of operator ARN for the condition key kms:EncryptionContext:aws:identitystore:identitystore-arn. AWS docs

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "AllowOpsItemReplication",
          "Effect": "Allow",
          "Action": [
            "ssm:CreateOpsItem"
          ],
          "Resource": [
            "arn:aws:ssm:*:*:opsitem/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}",
              "aws:RequestTag/SystemsManagerJustInTimeNodeAccessManaged": "Replica"
            },
            "ForAllValues:StringEquals": {
              "aws:TagKeys": [
                "SystemsManagerJustInTimeNodeAccessManaged"
              ]
            }
          }
        },
        {
          "Sid": "AllowOpsItemReplicationTagging",
          "Effect": "Allow",
          "Action": [
            "ssm:AddTagsToResource"
          ],
          "Resource": [
            "arn:aws:ssm:*:*:opsitem/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:RequestTag/SystemsManagerJustInTimeNodeAccessManaged": "Replica"
            },
            "ForAllValues:StringEquals": {
              "aws:TagKeys": [
                "SystemsManagerJustInTimeNodeAccessManaged"
              ]
            }
          }
        },
        {
          "Sid": "AllowAutomationExecutionTagging",
          "Effect": "Allow",
          "Action": [
            "ssm:AddTagsToResource"
          ],
          "Resource": [
            "arn:aws:ssm:*:*:automation-execution/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:RequestTag/SystemsManagerJustInTimeNodeAccessManaged": "true"
            },
            "ForAllValues:StringEquals": {
              "aws:TagKeys": [
                "SystemsManagerJustInTimeNodeAccessManaged"
              ]
            }
          }
        },
        {
          "Sid": "AllowOpsItemManagement",
          "Effect": "Allow",
          "Action": [
            "ssm:GetOpsItem",
            "ssm:UpdateOpsItem"
          ],
          "Resource": [
            "arn:aws:ssm:*:*:opsitem/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "AllowRetrieveDocument",
          "Effect": "Allow",
          "Action": [
            "ssm:GetDocument",
            "ssm:DescribeDocument"
          ],
          "Resource": [
            "arn:aws:ssm:*:*:document/*"
          ],
          "Condition": {
            "StringEquals": {
              "ssm:DocumentType": [
                "ManualApprovalPolicy",
                "AutoApprovalPolicy"
              ]
            }
          }
        },
        {
          "Sid": "AllowDescriptions",
          "Effect": "Allow",
          "Action": [
            "ssm:DescribeOpsItems",
            "ssm:DescribeSessions",
            "ssm:ListDocuments"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Sid": "AllowListTagsForManagedInstances",
          "Effect": "Allow",
          "Action": [
            "ssm:ListTagsForResource"
          ],
          "Resource": [
            "arn:aws:ssm:*:*:managed-instance/*"
          ]
        },
        {
          "Sid": "AllowListSSMGUIConnections",
          "Effect": "Allow",
          "Action": [
            "ssm-guiconnect:ListConnections"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Sid": "AllowIdentityStoreActions",
          "Effect": "Allow",
          "Action": [
            "identitystore:ListGroupMembershipsForMember",
            "identitystore:DescribeUser",
            "identitystore:GetGroupId",
            "identitystore:GetUserId"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Sid": "AllowSSODirectoryActions",
          "Effect": "Allow",
          "Action": [
            "sso-directory:DescribeUsers",
            "sso-directory:IsMemberInGroup"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Sid": "AllowSSOInstanceActions",
          "Effect": "Allow",
          "Action": [
            "sso:ListInstances",
            "sso:DescribeRegisteredRegions",
            "sso:ListDirectoryAssociations"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Sid": "AllowDescribingEC2Tags",
          "Effect": "Allow",
          "Action": [
            "ec2:DescribeTags"
          ],
          "Resource": [
            "*"
          ]
        },
        {
          "Sid": "AllowPublishingCloudWatchMetrics",
          "Effect": "Allow",
          "Action": [
            "cloudwatch:PutMetricData"
          ],
          "Resource": [
            "*"
          ],
          "Condition": {
            "StringEquals": {
              "cloudwatch:namespace": "AWS/SSM/JustInTimeAccess"
            }
          }
        },
        {
          "Sid": "AllowKmsAccessViaIdentityCenter",
          "Effect": "Allow",
          "Action": [
            "kms:Decrypt"
          ],
          "Resource": "*",
          "Condition": {
            "ArnLike": {
              "kms:EncryptionContext:aws:sso:instance-arn": "arn:*:sso:::instance/*"
            },
            "StringLike": {
              "kms:ViaService": "sso.*.amazonaws.com"
            }
          }
        },
        {
          "Sid": "AllowKmsAccessViaIdentityStore",
          "Effect": "Allow",
          "Action": [
            "kms:Decrypt"
          ],
          "Resource": "*",
          "Condition": {
            "ArnLike": {
              "kms:EncryptionContext:aws:identitystore:identitystore-arn": "arn:*:identitystore::*:identitystore/*"
            },
            "StringLike": {
              "kms:ViaService": "identitystore.*.amazonaws.com"
            }
          }
        }
      ]
    },
    "VersionId": "v9",
    "IsDefaultVersion": true,
    "CreateDate": "2026-02-12T18:01:49+00:00"
  }
}

Version History (7 recorded)

Raw history

AWSSystemsManagerJustInTimeAccessServicePolicy - Policy Version v9

No recorded action delta - this version predates the change index. View the raw diff.

Mar 12, 2026

9eeffc3

AWSSystemsManagerJustInTimeAccessServicePolicy - Policy Version v9

No recorded action delta - this version predates the change index. View the raw diff.

Feb 12, 2026

b17427b

AWSSystemsManagerJustInTimeAccessServicePolicy - Policy Version v6

No recorded action delta - this version predates the change index. View the raw diff.

Feb 12, 2026

7de859c

AWSSystemsManagerJustInTimeAccessServicePolicy - Policy Version v3

No recorded action delta - this version predates the change index. View the raw diff.

Oct 24, 2025

624ffd8

AWSSystemsManagerJustInTimeAccessServicePolicy - Policy Version v2

No recorded action delta - this version predates the change index. View the raw diff.

Aug 26, 2025

01a413b

AWSSystemsManagerJustInTimeAccessServicePolicy - Policy Version v1

No recorded action delta - this version predates the change index. View the raw diff.

Aug 25, 2025

9612eda

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Apr 21, 2025

c4082ca