AmazonSageMakerNotebooksServiceRolePolicy

Last Modified

Apr 16, 2026

April 16, 2026 at 07:04 PM UTC

Version

v12

Total Versions

14

Created

Apr 16, 2026

Actions

42

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 (9)

  • Suggestion / EQUIVALENT_TO_NULL_FALSE

    We recommend replacing the key aws:ResourceTag/ManagedByAmazonSageMakerResource in the condition block of StringLike with {aws:ResourceTag/ManagedByAmazonSageMakerResource: false} to ensure better enforcement of the condition. AWS docs

  • Suggestion / EQUIVALENT_TO_NULL_FALSE

    We recommend replacing the key aws:RequestTag/ManagedByAmazonSageMakerResource in the condition block of StringLike with {aws:RequestTag/ManagedByAmazonSageMakerResource: false} to ensure better enforcement of the condition. AWS docs

  • Suggestion / EQUIVALENT_TO_NULL_FALSE

    We recommend replacing the key aws:ResourceTag/ManagedByAmazonSageMakerResource in the condition block of StringLike with {aws:ResourceTag/ManagedByAmazonSageMakerResource: false} to ensure better enforcement of the condition. AWS docs

  • Suggestion / EQUIVALENT_TO_NULL_FALSE

    We recommend replacing the key aws:RequestTag/ManagedByAmazonSageMakerResource in the condition block of StringLike with {aws:RequestTag/ManagedByAmazonSageMakerResource: false} to ensure better enforcement of the condition. AWS docs

  • Suggestion / EQUIVALENT_TO_NULL_FALSE

    We recommend replacing the key aws:ResourceTag/ManagedByAmazonSageMakerResource in the condition block of StringLike with {aws:ResourceTag/ManagedByAmazonSageMakerResource: false} to ensure better enforcement of the condition. AWS docs

  • Suggestion / EQUIVALENT_TO_NULL_FALSE

    We recommend replacing the key aws:ResourceTag/ManagedByAmazonSageMakerResource in the condition block of StringLike with {aws:ResourceTag/ManagedByAmazonSageMakerResource: false} to ensure better enforcement of the condition. AWS docs

  • Suggestion / EQUIVALENT_TO_NULL_FALSE

    We recommend replacing the key ec2:ResourceTag/ManagedByAmazonSageMakerResource in the condition block of StringLike with {ec2:ResourceTag/ManagedByAmazonSageMakerResource: false} to ensure better enforcement of the condition. AWS docs

  • 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": "AllowFSxDescribe",
          "Effect": "Allow",
          "Action": [
            "fsx:DescribeFileSystems"
          ],
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "AllowSageMakerDeleteApp",
          "Effect": "Allow",
          "Action": [
            "sagemaker:DeleteApp"
          ],
          "Resource": "arn:aws:sagemaker:*:*:app/*"
        },
        {
          "Sid": "AllowEFSAccessPointCreation",
          "Effect": "Allow",
          "Action": "elasticfilesystem:CreateAccessPoint",
          "Resource": "arn:aws:elasticfilesystem:*:*:file-system/*",
          "Condition": {
            "StringLike": {
              "aws:ResourceTag/ManagedByAmazonSageMakerResource": "*",
              "aws:RequestTag/ManagedByAmazonSageMakerResource": "*"
            }
          }
        },
        {
          "Sid": "AllowEFSAccessPointDeletion",
          "Effect": "Allow",
          "Action": [
            "elasticfilesystem:DeleteAccessPoint"
          ],
          "Resource": "arn:aws:elasticfilesystem:*:*:access-point/*",
          "Condition": {
            "StringLike": {
              "aws:ResourceTag/ManagedByAmazonSageMakerResource": "*"
            }
          }
        },
        {
          "Sid": "AllowEFSCreation",
          "Effect": "Allow",
          "Action": "elasticfilesystem:CreateFileSystem",
          "Resource": "*",
          "Condition": {
            "StringLike": {
              "aws:RequestTag/ManagedByAmazonSageMakerResource": "*"
            }
          }
        },
        {
          "Sid": "AllowEFSMountWithDeletion",
          "Effect": "Allow",
          "Action": [
            "elasticfilesystem:CreateMountTarget",
            "elasticfilesystem:DeleteFileSystem",
            "elasticfilesystem:DeleteMountTarget"
          ],
          "Resource": "*",
          "Condition": {
            "StringLike": {
              "aws:ResourceTag/ManagedByAmazonSageMakerResource": "*"
            }
          }
        },
        {
          "Sid": "AllowEFSDescribe",
          "Effect": "Allow",
          "Action": [
            "elasticfilesystem:DescribeAccessPoints",
            "elasticfilesystem:DescribeFileSystems",
            "elasticfilesystem:DescribeMountTargets"
          ],
          "Resource": "*"
        },
        {
          "Sid": "AllowEFSTagging",
          "Effect": "Allow",
          "Action": "elasticfilesystem:TagResource",
          "Resource": [
            "arn:aws:elasticfilesystem:*:*:access-point/*",
            "arn:aws:elasticfilesystem:*:*:file-system/*"
          ],
          "Condition": {
            "StringLike": {
              "aws:ResourceTag/ManagedByAmazonSageMakerResource": "*"
            }
          }
        },
        {
          "Sid": "AllowEC2Tagging",
          "Effect": "Allow",
          "Action": "ec2:CreateTags",
          "Resource": [
            "arn:aws:ec2:*:*:network-interface/*",
            "arn:aws:ec2:*:*:security-group/*"
          ]
        },
        {
          "Sid": "AllowEC2Operations",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateNetworkInterface",
            "ec2:CreateSecurityGroup",
            "ec2:DeleteNetworkInterface",
            "ec2:DescribeDhcpOptions",
            "ec2:DescribeNetworkInterfaces",
            "ec2:DescribeRouteTables",
            "ec2:DescribeSecurityGroups",
            "ec2:DescribeSubnets",
            "ec2:DescribeVpcs",
            "ec2:ModifyNetworkInterfaceAttribute"
          ],
          "Resource": "*"
        },
        {
          "Sid": "AllowEC2AuthZ",
          "Effect": "Allow",
          "Action": [
            "ec2:AuthorizeSecurityGroupEgress",
            "ec2:AuthorizeSecurityGroupIngress",
            "ec2:CreateNetworkInterfacePermission",
            "ec2:DeleteNetworkInterfacePermission",
            "ec2:DeleteSecurityGroup",
            "ec2:RevokeSecurityGroupEgress",
            "ec2:RevokeSecurityGroupIngress"
          ],
          "Resource": "*",
          "Condition": {
            "StringLike": {
              "ec2:ResourceTag/ManagedByAmazonSageMakerResource": "*"
            }
          }
        },
        {
          "Sid": "AllowIdcOperations",
          "Effect": "Allow",
          "Action": [
            "sso:CreateManagedApplicationInstance",
            "sso:DeleteManagedApplicationInstance",
            "sso:GetManagedApplicationInstance"
          ],
          "Resource": "*"
        },
        {
          "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"
            }
          }
        },
        {
          "Sid": "AllowSagemakerProfileCreation",
          "Effect": "Allow",
          "Action": [
            "sagemaker:CreateUserProfile",
            "sagemaker:DescribeUserProfile"
          ],
          "Resource": "*"
        },
        {
          "Sid": "AllowSagemakerSpaceOperationsForCanvasManagedSpaces",
          "Effect": "Allow",
          "Action": [
            "sagemaker:CreateSpace",
            "sagemaker:DescribeSpace",
            "sagemaker:DeleteSpace",
            "sagemaker:ListTags"
          ],
          "Resource": "arn:aws:sagemaker:*:*:space/*/CanvasManagedSpace-*"
        },
        {
          "Sid": "AllowSagemakerAddTagsForAppManagedSpaces",
          "Effect": "Allow",
          "Action": [
            "sagemaker:AddTags"
          ],
          "Resource": "arn:aws:sagemaker:*:*:space/*/CanvasManagedSpace-*",
          "Condition": {
            "StringEquals": {
              "sagemaker:TaggingAction": "CreateSpace"
            }
          }
        }
      ]
    },
    "VersionId": "v12",
    "IsDefaultVersion": true,
    "CreateDate": "2026-04-16T18:12:19+00:00"
  }
}

Version History (17 recorded)

Raw history
v12updated

1 action added

8668756
v11updated

scope changed, no action added or removed

395268b

AmazonSageMakerNotebooksServiceRolePolicy - Policy Version v11

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

Dec 10, 2025

6c71774

Update detected

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

Nov 14, 2024

34b98d8

Update detected

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

Sep 18, 2024

aafbae9

Update detected

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

Jul 24, 2024

18f48e4

Update detected

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

Jul 24, 2024

41c497c

Update detected

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

May 22, 2024

2bc986f

Update detected

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

May 13, 2024

1b36617

Update detected

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

Mar 9, 2023

3e7c9e8

Update detected

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

Jan 12, 2023

81897ea

Update detected

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

Jan 12, 2023

213c730

Update detected

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

Aug 29, 2020

24e2ad2

Update detected

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

Apr 3, 2020

bcb7d7c

Update detected

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

Nov 26, 2019

0bbec2a

Update detected

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

Nov 15, 2019

0736cd0

Update detected

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

Oct 19, 2019

d1e0130