AmazonSageMakerAICoreAccess

Last Modified

Nov 29, 2026

November 29, 2026 at 08:03 PM UTC

Version

v1

Total Versions

1

Created

Nov 29, 2026

Actions

89

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "PassExecutionRoleToSageMaker",
          "Effect": "Allow",
          "Action": "iam:PassRole",
          "Resource": [
            "arn:aws:iam::*:role/service-role/*SageMaker*",
            "arn:aws:iam::*:role/service-role/*Sagemaker*",
            "arn:aws:iam::*:role/service-role/*sagemaker*"
          ],
          "Condition": {
            "ArnLike": {
              "iam:AssociatedResourceArn": "arn:aws:sagemaker:*:*:*"
            },
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}",
              "iam:PassedToService": [
                "sagemaker.amazonaws.com",
                "job.sagemaker.amazonaws.com"
              ]
            }
          }
        },
        {
          "Sid": "SandboxEniCreateNetwork",
          "Effect": "Allow",
          "Action": "ec2:CreateNetworkInterface",
          "Resource": [
            "arn:aws:ec2:*:*:subnet/*",
            "arn:aws:ec2:*:*:security-group/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "SandboxEniCreateTagged",
          "Effect": "Allow",
          "Action": "ec2:CreateNetworkInterface",
          "Resource": "arn:aws:ec2:*:*:network-interface/*",
          "Condition": {
            "ForAnyValue:StringEquals": {
              "aws:TagKeys": [
                "ManagedBySageMaker"
              ]
            },
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "SandboxEniDelete",
          "Effect": "Allow",
          "Action": "ec2:DeleteNetworkInterface",
          "Resource": "arn:aws:ec2:*:*:network-interface/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}",
              "aws:ResourceTag/ManagedBySageMaker": ""
            }
          }
        },
        {
          "Sid": "SandboxEniAttachGrant",
          "Effect": "Allow",
          "Action": "ec2:CreateNetworkInterfacePermission",
          "Resource": "arn:aws:ec2:*:*:network-interface/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}",
              "aws:ResourceTag/ManagedBySageMaker": "",
              "ec2:Permission": "INSTANCE-ATTACH"
            }
          }
        },
        {
          "Sid": "SandboxEniTagOnCreate",
          "Effect": "Allow",
          "Action": "ec2:CreateTags",
          "Resource": "arn:aws:ec2:*:*:network-interface/*",
          "Condition": {
            "ForAllValues:StringEquals": {
              "aws:TagKeys": [
                "ManagedBySageMaker"
              ]
            },
            "StringEquals": {
              "aws:RequestTag/ManagedBySageMaker": "",
              "aws:ResourceAccount": "${aws:PrincipalAccount}",
              "ec2:CreateAction": "CreateNetworkInterface"
            }
          }
        },
        {
          "Sid": "SandboxEniModify",
          "Effect": "Allow",
          "Action": "ec2:ModifyNetworkInterfaceAttribute",
          "Resource": "arn:aws:ec2:*:*:network-interface/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}",
              "aws:ResourceTag/ManagedBySageMaker": ""
            }
          }
        },
        {
          "Sid": "SandboxEniDescribe",
          "Effect": "Allow",
          "Action": [
            "ec2:DescribeNetworkInterfaces",
            "ec2:DescribeSubnets",
            "ec2:DescribeSecurityGroups",
            "ec2:DescribeVpcs",
            "ec2:DescribeDhcpOptions",
            "ec2:DescribeAvailabilityZones"
          ],
          "Resource": "*",
          "Condition": {
            "StringEqualsIfExists": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "BedrockModelDiscovery",
          "Effect": "Allow",
          "Action": [
            "bedrock:GetFoundationModel",
            "bedrock:ListFoundationModels",
            "bedrock:ListInferenceProfiles",
            "bedrock:GetModelInvocationLoggingConfiguration"
          ],
          "Resource": "*",
          "Condition": {
            "StringEqualsIfExists": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "LogsInsightsQueries",
          "Effect": "Allow",
          "Action": [
            "logs:StartQuery",
            "logs:GetQueryResults",
            "logs:FilterLogEvents"
          ],
          "Resource": "arn:aws:logs:*:*:log-group:/aws/sagemaker/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "LogsInsightsQueryStop",
          "Effect": "Allow",
          "Action": "logs:StopQuery",
          "Resource": "*",
          "Condition": {
            "StringEqualsIfExists": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "CloudWatchMetricReads",
          "Effect": "Allow",
          "Action": [
            "cloudwatch:GetMetricData",
            "cloudwatch:GetMetricStatistics",
            "cloudwatch:ListMetrics"
          ],
          "Resource": "*",
          "Condition": {
            "StringEqualsIfExists": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "DeploymentLookups",
          "Effect": "Allow",
          "Action": [
            "ec2:DescribeCapacityReservations",
            "ec2:DescribeInstanceTypes",
            "pricing:GetProducts",
            "servicequotas:GetAWSDefaultServiceQuota",
            "servicequotas:ListAWSDefaultServiceQuotas",
            "servicequotas:GetRequestedServiceQuotaChange"
          ],
          "Resource": "*",
          "Condition": {
            "StringEqualsIfExists": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "SageMakerQuotaRead",
          "Effect": "Allow",
          "Action": "servicequotas:GetServiceQuota",
          "Resource": "arn:aws:servicequotas:*:*:sagemaker/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "GitRepoAccess",
          "Effect": "Allow",
          "Action": [
            "codecommit:CreateRepository",
            "codecommit:GetRepository",
            "codecommit:GitPull",
            "codecommit:GitPush"
          ],
          "Resource": "arn:aws:codecommit:*:*:sagemaker-p-*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "RoleInspection",
          "Effect": "Allow",
          "Action": "iam:GetRole",
          "Resource": [
            "arn:aws:iam::*:role/*SageMaker*",
            "arn:aws:iam::*:role/*Sagemaker*",
            "arn:aws:iam::*:role/*sagemaker*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "BedrockModelInvoke",
          "Effect": "Allow",
          "Action": [
            "bedrock:InvokeModel",
            "bedrock:InvokeModelWithResponseStream"
          ],
          "Resource": [
            "arn:aws:bedrock:*:*:inference-profile/*",
            "arn:aws:bedrock:*:*:project/default"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "DataCatalogRead",
          "Effect": "Allow",
          "Action": [
            "glue:GetCatalog",
            "glue:GetCatalogs",
            "glue:GetDatabase",
            "glue:GetDatabases",
            "glue:GetTable",
            "glue:GetTables",
            "glue:GetPartition",
            "glue:GetPartitions",
            "glue:GetTags"
          ],
          "Resource": [
            "arn:aws:glue:*:*:catalog",
            "arn:aws:glue:*:*:catalog/*",
            "arn:aws:glue:*:*:database/*",
            "arn:aws:glue:*:*:table/*/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "DataCatalogAssetRead",
          "Effect": "Allow",
          "Action": [
            "glue:SearchAssets",
            "glue:GetAsset",
            "glue:ListIterableForms",
            "glue:BatchGetIterableForms",
            "glue:GetLineageNode",
            "glue:GetGlossary",
            "glue:ListGlossaries",
            "glue:GetGlossaryTerm",
            "glue:ListGlossaryTerms",
            "glue:GetFormType",
            "glue:ListFormTypes"
          ],
          "Resource": "*",
          "Condition": {
            "StringEqualsIfExists": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "AthenaWorkGroupQuery",
          "Effect": "Allow",
          "Action": [
            "athena:GetWorkGroup",
            "athena:StartQueryExecution",
            "athena:GetQueryExecution",
            "athena:GetQueryResults"
          ],
          "Resource": "arn:aws:athena:*:*:workgroup/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "AthenaListWorkGroups",
          "Effect": "Allow",
          "Action": "athena:ListWorkGroups",
          "Resource": "*",
          "Condition": {
            "StringEqualsIfExists": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "AthenaResultBucketLocation",
          "Effect": "Allow",
          "Action": "s3:GetBucketLocation",
          "Resource": "arn:aws:s3:::*sagemaker*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "AgentConversations",
          "Effect": "Allow",
          "Action": [
            "sagemaker:CreateConversation",
            "sagemaker:GetConversation",
            "sagemaker:UpdateConversation",
            "sagemaker:DeleteConversation",
            "sagemaker:InvokeAgent",
            "sagemaker:SendTurnAction"
          ],
          "Resource": "arn:aws:sagemaker:*:*:user-profile/${sagemaker:DomainId}/${sagemaker:UserProfileName}",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "AgentConversationList",
          "Effect": "Allow",
          "Action": "sagemaker:ListConversations",
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "AgentSession",
          "Effect": "Allow",
          "Action": [
            "sagemaker:StartAgentSession",
            "sagemaker:GetAgentSession",
            "sagemaker:UpdateAgentSession"
          ],
          "Resource": "arn:aws:sagemaker:*:*:user-profile/${sagemaker:DomainId}/${sagemaker:UserProfileName}",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "StudioSpaceReads",
          "Effect": "Allow",
          "Action": [
            "sagemaker:DescribeDomain",
            "sagemaker:DescribeUserProfile",
            "sagemaker:DescribeSpace",
            "sagemaker:DescribeApp"
          ],
          "Resource": [
            "arn:aws:sagemaker:*:*:domain/*",
            "arn:aws:sagemaker:*:*:user-profile/*",
            "arn:aws:sagemaker:*:*:space/*",
            "arn:aws:sagemaker:*:*:app/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "StudioSpaceLists",
          "Effect": "Allow",
          "Action": [
            "sagemaker:ListSpaces",
            "sagemaker:ListApps"
          ],
          "Resource": "*",
          "Condition": {
            "StringEqualsIfExists": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "StudioSpaceTagReads",
          "Effect": "Allow",
          "Action": "sagemaker:ListTags",
          "Resource": "arn:aws:sagemaker:*:*:space/${sagemaker:DomainId}/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "OwnPrivateSpaceWrites",
          "Effect": "Allow",
          "Action": [
            "sagemaker:CreateSpace",
            "sagemaker:UpdateSpace",
            "sagemaker:CreateApp",
            "sagemaker:DeleteApp"
          ],
          "Resource": [
            "arn:aws:sagemaker:*:*:space/${sagemaker:DomainId}/*",
            "arn:aws:sagemaker:*:*:app/${sagemaker:DomainId}/*/*/*"
          ],
          "Condition": {
            "ArnLike": {
              "sagemaker:OwnerUserProfileArn": "arn:aws:sagemaker:*:*:user-profile/${sagemaker:DomainId}/${sagemaker:UserProfileName}"
            },
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}",
              "sagemaker:SpaceSharingType": "Private"
            }
          }
        },
        {
          "Sid": "SpaceProjectTagOnCreate",
          "Effect": "Allow",
          "Action": "sagemaker:AddTags",
          "Resource": "arn:aws:sagemaker:*:*:space/*",
          "Condition": {
            "ForAllValues:StringEquals": {
              "aws:TagKeys": [
                "sagemaker:project-id"
              ]
            },
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}",
              "sagemaker:TaggingAction": "CreateSpace"
            }
          }
        },
        {
          "Sid": "OwnAppTagOnCreate",
          "Effect": "Allow",
          "Action": "sagemaker:AddTags",
          "Resource": "arn:aws:sagemaker:*:*:app/${sagemaker:DomainId}/*/*/*",
          "Condition": {
            "ForAllValues:StringEquals": {
              "aws:TagKeys": [
                "sagemaker:user-profile-arn",
                "sagemaker:domain-arn",
                "sagemaker:space-arn",
                "sagemaker:project-id"
              ]
            },
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}",
              "sagemaker:TaggingAction": "CreateApp"
            }
          }
        },
        {
          "Sid": "ProjectDefaultSpaceTag",
          "Effect": "Allow",
          "Action": "sagemaker:AddTags",
          "Resource": "arn:aws:sagemaker:*:*:project/*",
          "Condition": {
            "ForAllValues:StringLike": {
              "aws:TagKeys": [
                "studio:default-space:*"
              ]
            },
            "ForAnyValue:StringLike": {
              "aws:TagKeys": [
                "studio:default-space:*"
              ]
            },
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "OwnProfilePresignedUrl",
          "Effect": "Allow",
          "Action": "sagemaker:CreatePresignedDomainUrl",
          "Resource": "arn:aws:sagemaker:*:*:user-profile/${sagemaker:DomainId}/${sagemaker:UserProfileName}",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        }
      ]
    },
    "VersionId": "v1",
    "IsDefaultVersion": true,
    "CreateDate": "2026-11-29T19:07:08+00:00"
  }
}