Skip to main content
IAM Policy Map

AmazonSageMakerCanvasDataPrepFullAccess

OperatorAWS managedActivePermissions reviewedShow on mapCompare

Summary

Provides full access to Amazon SageMaker resources and operations for data preparation in Canvas. The policy also provides select access to related services (e.g., S3, IAM, KMS, RDS, CloudWatch Logs, Redshift, Athena, Glue, EventBridge, Secrets Manager). This policy should be attached to the Amazon SageMaker Domain/User Profile execution role.

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

Identity

ARN
arn:aws:iam::aws:policy/AmazonSageMakerCanvasDataPrepFullAccess
Default version
v4
Created
Last edited
Services
athena, elasticmapreduce, emr-serverless, events, glue, iam, kms, logs, rds, redshift, redshift-data, s3, sagemaker, secretsmanager

Control-plane actions (64)

By access level: 14 List, 25 Read, 3 Tagging, 22 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
Athena7 of 862 List, 3 Read, 2 Write; 6 restricted, 0 conditionalathena:GetQueryExecution, athena:GetQueryResults, athena:ListDataCatalogs, athena:ListDatabases, athena:ListTableMetadata, athena:StartQueryExecution, athena:StopQueryExecution
EMR3 of 881 List, 2 Read; 2 restricted, 0 conditionalelasticmapreduce:DescribeCluster, elasticmapreduce:ListClusters, elasticmapreduce:ListInstanceGroups
EMR Serverless9 of 252 List, 2 Read, 1 Tagging, 4 Write; 9 restricted, 9 conditionalemr-serverless:CancelJobRun, emr-serverless:CreateApplication, emr-serverless:GetApplication, emr-serverless:GetJobRun, emr-serverless:ListApplications, emr-serverless:ListJobRuns, emr-serverless:StartJobRun, emr-serverless:TagResource, emr-serverless:UpdateApplication
EventBridge5 of 711 List, 1 Read, 1 Tagging, 2 Write; 4 restricted, 4 conditionalevents:DescribeRule, events:ListTagsForResource, events:PutRule, events:PutTargets, events:TagResource
Glue4 of 3064 Read; 4 restricted, 0 conditionalglue:GetDatabases, glue:GetTable, glue:GetTables, glue:SearchTables
IAM3 of 1901 List, 1 Read, 1 Write; 2 restricted, 1 conditionaliam:GetRole, iam:ListRoles, iam:PassRole
KMS2 of 581 List, 1 Read; 1 restricted, 0 conditionalkms:DescribeKey, kms:ListAliases
CloudWatch Logs3 of 1333 Write; 3 restricted, 0 conditionallogs:CreateLogGroup, logs:CreateLogStream, logs:PutLogEvents
RDS1 of 1731 List; 0 restricted, 0 conditionalrds:DescribeDBInstances
Redshift1 of 1671 Write; 1 restricted, 0 conditionalredshift:GetClusterCredentials
Redshift Data API6 of 121 List, 3 Read, 2 Write; 3 restricted, 0 conditionalredshift-data:CancelStatement, redshift-data:DescribeStatement, redshift-data:ExecuteStatement, redshift-data:GetStatementResult, redshift-data:ListSchemas, redshift-data:ListTables
S33 of 1551 List, 2 Read; 2 restricted, 2 conditionals3:GetBucketCors, s3:GetBucketLocation, s3:ListAllMyBuckets
SageMaker14 of 4413 List, 4 Read, 1 Tagging, 6 Write; 12 restricted, 0 conditionalsagemaker:AddTags, sagemaker:CreateFeatureGroup, sagemaker:CreatePipeline, sagemaker:CreateProcessingJob, sagemaker:DeletePipeline, sagemaker:DescribeFeatureGroup, sagemaker:DescribePipeline, sagemaker:DescribePipelineExecution, sagemaker:DescribeProcessingJob, sagemaker:ListFeatureGroups, sagemaker:ListPipelineExecutionSteps, sagemaker:ListProcessingJobs and 2 more
Secrets Manager3 of 272 Read, 1 Write; 3 restricted, 2 conditionalsecretsmanager:CreateSecret, secretsmanager:DescribeSecret, secretsmanager:GetSecretValue
Athena: 7 actions
  • athena:GetQueryExecution (Read)
  • athena:GetQueryResults (Read)
  • athena:ListDataCatalogs (List)
  • athena:ListDatabases (List)
  • athena:ListTableMetadata (Read)
  • athena:StartQueryExecution (Write)
  • athena:StopQueryExecution (Write)
EMR: 3 actions
  • elasticmapreduce:DescribeCluster (Read)
  • elasticmapreduce:ListClusters (List)
  • elasticmapreduce:ListInstanceGroups (Read)
EMR Serverless: 9 actions
  • emr-serverless:CancelJobRun (Write)
  • emr-serverless:CreateApplication (Write)
  • emr-serverless:GetApplication (Read)
  • emr-serverless:GetJobRun (Read)
  • emr-serverless:ListApplications (List)
  • emr-serverless:ListJobRuns (List)
  • emr-serverless:StartJobRun (Write)
  • emr-serverless:TagResource (Tagging)
  • emr-serverless:UpdateApplication (Write)
EventBridge: 5 actions
  • events:DescribeRule (Read)
  • events:ListTagsForResource (List)
  • events:PutRule (Write)
  • events:PutTargets (Write)
  • events:TagResource (Tagging)
Glue: 4 actions
  • glue:GetDatabases (Read)
  • glue:GetTable (Read)
  • glue:GetTables (Read)
  • glue:SearchTables (Read)
IAM: 3 actions
  • iam:GetRole (Read)
  • iam:ListRoles (List)
  • iam:PassRole (Write)
KMS: 2 actions
  • kms:DescribeKey (Read)
  • kms:ListAliases (List)
CloudWatch Logs: 3 actions
  • logs:CreateLogGroup (Write)
  • logs:CreateLogStream (Write)
  • logs:PutLogEvents (Write)
RDS: 1 actions
  • rds:DescribeDBInstances (List)
Redshift: 1 actions
  • redshift:GetClusterCredentials (Write)
Redshift Data API: 6 actions
  • redshift-data:CancelStatement (Write)
  • redshift-data:DescribeStatement (Read)
  • redshift-data:ExecuteStatement (Write)
  • redshift-data:GetStatementResult (Read)
  • redshift-data:ListSchemas (Read)
  • redshift-data:ListTables (List)
S3: 3 actions
  • s3:GetBucketCORS (Read)
  • s3:GetBucketLocation (Read)
  • s3:ListAllMyBuckets (List)
SageMaker: 14 actions
  • sagemaker:AddTags (Tagging)
  • sagemaker:CreateFeatureGroup (Write)
  • sagemaker:CreatePipeline (Write)
  • sagemaker:CreateProcessingJob (Write)
  • sagemaker:DeletePipeline (Write)
  • sagemaker:DescribeFeatureGroup (Read)
  • sagemaker:DescribePipeline (Read)
  • sagemaker:DescribePipelineExecution (Read)
  • sagemaker:DescribeProcessingJob (Read)
  • sagemaker:ListFeatureGroups (List)
  • sagemaker:ListPipelineExecutionSteps (List)
  • sagemaker:ListProcessingJobs (List)
  • sagemaker:StartPipelineExecution (Write)
  • sagemaker:UpdatePipeline (Write)
Secrets Manager: 3 actions
  • secretsmanager:CreateSecret (Write)
  • secretsmanager:DescribeSecret (Read)
  • secretsmanager:GetSecretValue (Read)

Data-plane actions (5)

By access level: 1 List, 1 Read, 3 Write.

Data-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
S35 of 251 List, 1 Read, 3 Write; 4 restricted, 4 conditionals3:AbortMultipartUpload, s3:DeleteObject, s3:GetObject, s3:ListBucket, s3:PutObject
S3: 5 actions
  • s3:AbortMultipartUpload (Write)
  • s3:DeleteObject (Write)
  • s3:GetObject (Read)
  • s3:ListBucket (List)
  • s3:PutObject (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 27 write, tagging or permissions-management actions, short of full control of any service.
  • Grants data-plane write actions on a data store, but only for scoped resources or under conditions.
  • Grants iam:PassRole, but only for scoped roles or under conditions (for example iam:PassedToService).

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": "SageMakerListFeatureGroupOperation",
      "Effect": "Allow",
      "Action": "sagemaker:ListFeatureGroups",
      "Resource": "*"
    },
    {
      "Sid": "SageMakerFeatureGroupOperations",
      "Effect": "Allow",
      "Action": [
        "sagemaker:CreateFeatureGroup",
        "sagemaker:DescribeFeatureGroup"
      ],
      "Resource": "arn:aws:sagemaker:*:*:feature-group/*"
    },
    {
      "Sid": "SageMakerProcessingJobOperations",
      "Effect": "Allow",
      "Action": [
        "sagemaker:CreateProcessingJob",
        "sagemaker:DescribeProcessingJob",
        "sagemaker:AddTags"
      ],
      "Resource": "arn:aws:sagemaker:*:*:processing-job/*canvas-data-prep*"
    },
    {
      "Sid": "SageMakerProcessingJobListOperation",
      "Effect": "Allow",
      "Action": "sagemaker:ListProcessingJobs",
      "Resource": "*"
    },
    {
      "Sid": "SageMakerPipelineOperations",
      "Effect": "Allow",
      "Action": [
        "sagemaker:DescribePipeline",
        "sagemaker:CreatePipeline",
        "sagemaker:UpdatePipeline",
        "sagemaker:DeletePipeline",
        "sagemaker:StartPipelineExecution",
        "sagemaker:ListPipelineExecutionSteps",
        "sagemaker:DescribePipelineExecution"
      ],
      "Resource": "arn:aws:sagemaker:*:*:pipeline/*canvas-data-prep*"
    },
    {
      "Sid": "KMSListOperations",
      "Effect": "Allow",
      "Action": "kms:ListAliases",
      "Resource": "*"
    },
    {
      "Sid": "KMSOperations",
      "Effect": "Allow",
      "Action": "kms:DescribeKey",
      "Resource": "arn:aws:kms:*:*:key/*"
    },
    {
      "Sid": "S3Operations",
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
        "s3:PutObject",
        "s3:DeleteObject",
        "s3:GetBucketCors",
        "s3:GetBucketLocation",
        "s3:AbortMultipartUpload"
      ],
      "Resource": [
        "arn:aws:s3:::*SageMaker*",
        "arn:aws:s3:::*Sagemaker*",
        "arn:aws:s3:::*sagemaker*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        }
      }
    },
    {
      "Sid": "S3GetObjectOperation",
      "Effect": "Allow",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::*",
      "Condition": {
        "StringEqualsIgnoreCase": {
          "s3:ExistingObjectTag/SageMaker": "true"
        },
        "StringEquals": {
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        }
      }
    },
    {
      "Sid": "S3ListOperations",
      "Effect": "Allow",
      "Action": [
        "s3:ListBucket",
        "s3:ListAllMyBuckets"
      ],
      "Resource": "*"
    },
    {
      "Sid": "IAMListOperations",
      "Effect": "Allow",
      "Action": "iam:ListRoles",
      "Resource": "*"
    },
    {
      "Sid": "IAMGetOperations",
      "Effect": "Allow",
      "Action": "iam:GetRole",
      "Resource": "arn:aws:iam::*:role/*"
    },
    {
      "Sid": "IAMPassOperation",
      "Effect": "Allow",
      "Action": "iam:PassRole",
      "Resource": "arn:aws:iam::*:role/*",
      "Condition": {
        "StringEquals": {
          "iam:PassedToService": [
            "sagemaker.amazonaws.com",
            "events.amazonaws.com"
          ]
        }
      }
    },
    {
      "Sid": "EventBridgePutOperation",
      "Effect": "Allow",
      "Action": [
        "events:PutRule"
      ],
      "Resource": "arn:aws:events:*:*:rule/*",
      "Condition": {
        "StringEquals": {
          "aws:RequestTag/sagemaker:is-canvas-data-prep-job": "true"
        }
      }
    },
    {
      "Sid": "EventBridgeOperations",
      "Effect": "Allow",
      "Action": [
        "events:DescribeRule",
        "events:PutTargets"
      ],
      "Resource": "arn:aws:events:*:*:rule/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/sagemaker:is-canvas-data-prep-job": "true"
        }
      }
    },
    {
      "Sid": "EventBridgeTagBasedOperations",
      "Effect": "Allow",
      "Action": [
        "events:TagResource"
      ],
      "Resource": "arn:aws:events:*:*:rule/*",
      "Condition": {
        "StringEquals": {
          "aws:RequestTag/sagemaker:is-canvas-data-prep-job": "true",
          "aws:ResourceTag/sagemaker:is-canvas-data-prep-job": "true"
        }
      }
    },
    {
      "Sid": "EventBridgeListTagOperation",
      "Effect": "Allow",
      "Action": "events:ListTagsForResource",
      "Resource": "*"
    },
    {
      "Sid": "GlueOperations",
      "Effect": "Allow",
      "Action": [
        "glue:GetDatabases",
        "glue:GetTable",
        "glue:GetTables",
        "glue:SearchTables"
      ],
      "Resource": [
        "arn:aws:glue:*:*:table/*",
        "arn:aws:glue:*:*:catalog",
        "arn:aws:glue:*:*:database/*"
      ]
    },
    {
      "Sid": "EMROperations",
      "Effect": "Allow",
      "Action": [
        "elasticmapreduce:DescribeCluster",
        "elasticmapreduce:ListInstanceGroups"
      ],
      "Resource": "arn:aws:elasticmapreduce:*:*:cluster/*"
    },
    {
      "Sid": "EMRListOperation",
      "Effect": "Allow",
      "Action": "elasticmapreduce:ListClusters",
      "Resource": "*"
    },
    {
      "Sid": "AthenaListDataCatalogOperation",
      "Effect": "Allow",
      "Action": "athena:ListDataCatalogs",
      "Resource": "*"
    },
    {
      "Sid": "AthenaQueryExecutionOperations",
      "Effect": "Allow",
      "Action": [
        "athena:GetQueryExecution",
        "athena:GetQueryResults",
        "athena:StartQueryExecution",
        "athena:StopQueryExecution"
      ],
      "Resource": "arn:aws:athena:*:*:workgroup/*"
    },
    {
      "Sid": "AthenaDataCatalogOperations",
      "Effect": "Allow",
      "Action": [
        "athena:ListDatabases",
        "athena:ListTableMetadata"
      ],
      "Resource": "arn:aws:athena:*:*:datacatalog/*"
    },
    {
      "Sid": "RedshiftOperations",
      "Effect": "Allow",
      "Action": [
        "redshift-data:DescribeStatement",
        "redshift-data:CancelStatement",
        "redshift-data:GetStatementResult"
      ],
      "Resource": "*"
    },
    {
      "Sid": "RedshiftArnBasedOperations",
      "Effect": "Allow",
      "Action": [
        "redshift-data:ExecuteStatement",
        "redshift-data:ListSchemas",
        "redshift-data:ListTables"
      ],
      "Resource": "arn:aws:redshift:*:*:cluster:*"
    },
    {
      "Sid": "RedshiftGetCredentialsOperation",
      "Effect": "Allow",
      "Action": "redshift:GetClusterCredentials",
      "Resource": [
        "arn:aws:redshift:*:*:dbuser:*/sagemaker_access*",
        "arn:aws:redshift:*:*:dbname:*"
      ]
    },
    {
      "Sid": "SecretsManagerARNBasedOperation",
      "Effect": "Allow",
      "Action": "secretsmanager:CreateSecret",
      "Resource": "arn:aws:secretsmanager:*:*:secret:AmazonSageMaker-*"
    },
    {
      "Sid": "SecretManagerTagBasedOperation",
      "Effect": "Allow",
      "Action": [
        "secretsmanager:DescribeSecret",
        "secretsmanager:GetSecretValue"
      ],
      "Resource": "arn:aws:secretsmanager:*:*:secret:AmazonSageMaker-*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/SageMaker": "true",
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        }
      }
    },
    {
      "Sid": "RDSOperation",
      "Effect": "Allow",
      "Action": "rds:DescribeDBInstances",
      "Resource": "*"
    },
    {
      "Sid": "LoggingOperation",
      "Effect": "Allow",
      "Action": [
        "logs:CreateLogGroup",
        "logs:CreateLogStream",
        "logs:PutLogEvents"
      ],
      "Resource": "arn:aws:logs:*:*:log-group:/aws/sagemaker/studio:*"
    },
    {
      "Sid": "EMRServerlessCreateApplicationOperation",
      "Effect": "Allow",
      "Action": "emr-serverless:CreateApplication",
      "Resource": "arn:aws:emr-serverless:*:*:/*",
      "Condition": {
        "StringEquals": {
          "aws:RequestTag/sagemaker:is-canvas-resource": "True",
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        }
      }
    },
    {
      "Sid": "EMRServerlessListApplicationOperation",
      "Effect": "Allow",
      "Action": "emr-serverless:ListApplications",
      "Resource": "arn:aws:emr-serverless:*:*:/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        }
      }
    },
    {
      "Sid": "EMRServerlessApplicationOperations",
      "Effect": "Allow",
      "Action": [
        "emr-serverless:UpdateApplication",
        "emr-serverless:GetApplication"
      ],
      "Resource": "arn:aws:emr-serverless:*:*:/applications/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/sagemaker:is-canvas-resource": "True",
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        }
      }
    },
    {
      "Sid": "EMRServerlessStartJobRunOperation",
      "Effect": "Allow",
      "Action": "emr-serverless:StartJobRun",
      "Resource": "arn:aws:emr-serverless:*:*:/applications/*",
      "Condition": {
        "StringEquals": {
          "aws:RequestTag/sagemaker:is-canvas-resource": "True",
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        }
      }
    },
    {
      "Sid": "EMRServerlessListJobRunOperation",
      "Effect": "Allow",
      "Action": "emr-serverless:ListJobRuns",
      "Resource": "arn:aws:emr-serverless:*:*:/applications/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/sagemaker:is-canvas-resource": "True",
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        }
      }
    },
    {
      "Sid": "EMRServerlessJobRunOperations",
      "Effect": "Allow",
      "Action": [
        "emr-serverless:GetJobRun",
        "emr-serverless:CancelJobRun"
      ],
      "Resource": "arn:aws:emr-serverless:*:*:/applications/*/jobruns/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/sagemaker:is-canvas-resource": "True",
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        }
      }
    },
    {
      "Sid": "EMRServerlessTagResourceOperation",
      "Effect": "Allow",
      "Action": "emr-serverless:TagResource",
      "Resource": "arn:aws:emr-serverless:*:*:/*",
      "Condition": {
        "StringEquals": {
          "aws:RequestTag/sagemaker:is-canvas-resource": "True",
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        }
      }
    },
    {
      "Sid": "IAMPassOperationForEMRServerless",
      "Effect": "Allow",
      "Action": "iam:PassRole",
      "Resource": [
        "arn:aws:iam::*:role/service-role/AmazonSageMakerCanvasEMRSExecutionAccess-*",
        "arn:aws:iam::*:role/AmazonSageMakerCanvasEMRSExecutionAccess-*"
      ],
      "Condition": {
        "StringEquals": {
          "iam:PassedToService": "emr-serverless.amazonaws.com",
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        }
      }
    }
  ]
}

Version history

Current version v4, edited by AWS on 2024-08-16. 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/AmazonSageMakerCanvasDataPrepFullAccess
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AmazonSageMakerCanvasDataPrepFullAccess
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AmazonSageMakerCanvasDataPrepFullAccess

CloudFormation

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

Terraform

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

CDK (TypeScript)

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

Sources

Pending editorial review. No editorial sources are listed yet.