Skip to main content
IAM Policy Map

AmazonSageMakerGroundTruthExecution

OperatorAWS managedActivePermissions reviewedShow on mapCompare

Summary

Provides access to AWS services that are required to run SageMaker GroundTruth Labeling job

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

Identity

ARN
arn:aws:iam::aws:policy/AmazonSageMakerGroundTruthExecution
Default version
v3
Created
Last edited
Services
cloudwatch, ec2, lambda, logs, s3, sns, sqs

Control-plane actions (17)

By access level: 2 List, 1 Permissions management, 4 Read, 10 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
EC23 of 8341 List, 2 Write; 3 restricted, 3 conditionalec2:CreateVpcEndpoint, ec2:DeleteVpcEndpoints, ec2:DescribeVpcEndpoints
CloudWatch Logs4 of 1331 List, 3 Write; 0 restricted, 0 conditionallogs:CreateLogGroup, logs:CreateLogStream, logs:DescribeLogStreams, logs:PutLogEvents
S31 of 1551 Read; 0 restricted, 0 conditionals3:GetBucketLocation
SNS2 of 402 Write; 1 restricted, 1 conditionalsns:Subscribe, sns:Unsubscribe
SQS7 of 201 Permissions management, 3 Read, 3 Write; 7 restricted, 0 conditionalsqs:CreateQueue, sqs:DeleteMessage, sqs:GetQueueAttributes, sqs:GetQueueUrl, sqs:ReceiveMessage, sqs:SendMessage, sqs:SetQueueAttributes
EC2: 3 actions
  • ec2:CreateVpcEndpoint (Write)
  • ec2:DeleteVpcEndpoints (Write)
  • ec2:DescribeVpcEndpoints (List)
CloudWatch Logs: 4 actions
  • logs:CreateLogGroup (Write)
  • logs:CreateLogStream (Write)
  • logs:DescribeLogStreams (List)
  • logs:PutLogEvents (Write)
S3: 1 actions
  • s3:GetBucketLocation (Read)
SNS: 2 actions
  • sns:Subscribe (Write)
  • sns:Unsubscribe (Write)
SQS: 7 actions
  • sqs:CreateQueue (Write)
  • sqs:DeleteMessage (Write)
  • sqs:GetQueueAttributes (Read)
  • sqs:GetQueueUrl (Read)
  • sqs:ReceiveMessage (Read)
  • sqs:SendMessage (Write)
  • sqs:SetQueueAttributes (Permissions management)

Data-plane actions (7)

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

Data-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
CloudWatch1 of 51 Write; 0 restricted, 0 conditionalcloudwatch:PutMetricData
Lambda1 of 141 Write; 1 restricted, 0 conditionallambda:InvokeFunction
S34 of 251 List, 1 Read, 2 Write; 3 restricted, 0 conditionals3:AbortMultipartUpload, s3:GetObject, s3:ListBucket, s3:PutObject
SNSAll 1 actions (see the SNS page)1 Write; 1 restricted, 0 conditionalsns:Publish
CloudWatch: 1 actions
  • cloudwatch:PutMetricData (Write)
Lambda: 1 actions
  • lambda:InvokeFunction (Write)
S3: 4 actions
  • s3:AbortMultipartUpload (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 16 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.

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": "CustomLabelingJobs",
      "Effect": "Allow",
      "Action": [
        "lambda:InvokeFunction"
      ],
      "Resource": [
        "arn:aws:lambda:*:*:function:*GtRecipe*",
        "arn:aws:lambda:*:*:function:*LabelingFunction*",
        "arn:aws:lambda:*:*:function:*SageMaker*",
        "arn:aws:lambda:*:*:function:*sagemaker*",
        "arn:aws:lambda:*:*:function:*Sagemaker*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "s3:AbortMultipartUpload",
        "s3:GetObject",
        "s3:PutObject"
      ],
      "Resource": [
        "arn:aws:s3:::*GroundTruth*",
        "arn:aws:s3:::*Groundtruth*",
        "arn:aws:s3:::*groundtruth*",
        "arn:aws:s3:::*SageMaker*",
        "arn:aws:s3:::*Sagemaker*",
        "arn:aws:s3:::*sagemaker*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "s3:GetObject"
      ],
      "Resource": "*",
      "Condition": {
        "StringEqualsIgnoreCase": {
          "s3:ExistingObjectTag/SageMaker": "true"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "s3:GetBucketLocation",
        "s3:ListBucket"
      ],
      "Resource": "*"
    },
    {
      "Sid": "CloudWatch",
      "Effect": "Allow",
      "Action": [
        "cloudwatch:PutMetricData",
        "logs:CreateLogStream",
        "logs:CreateLogGroup",
        "logs:DescribeLogStreams",
        "logs:PutLogEvents"
      ],
      "Resource": "*"
    },
    {
      "Sid": "StreamingQueue",
      "Effect": "Allow",
      "Action": [
        "sqs:CreateQueue",
        "sqs:DeleteMessage",
        "sqs:GetQueueAttributes",
        "sqs:GetQueueUrl",
        "sqs:ReceiveMessage",
        "sqs:SendMessage",
        "sqs:SetQueueAttributes"
      ],
      "Resource": "arn:aws:sqs:*:*:*GroundTruth*"
    },
    {
      "Sid": "StreamingTopicSubscribe",
      "Effect": "Allow",
      "Action": "sns:Subscribe",
      "Resource": [
        "arn:aws:sns:*:*:*GroundTruth*",
        "arn:aws:sns:*:*:*Groundtruth*",
        "arn:aws:sns:*:*:*groundTruth*",
        "arn:aws:sns:*:*:*groundtruth*",
        "arn:aws:sns:*:*:*SageMaker*",
        "arn:aws:sns:*:*:*Sagemaker*",
        "arn:aws:sns:*:*:*sageMaker*",
        "arn:aws:sns:*:*:*sagemaker*"
      ],
      "Condition": {
        "StringEquals": {
          "sns:Protocol": "sqs"
        },
        "StringLike": {
          "sns:Endpoint": "arn:aws:sqs:*:*:*GroundTruth*"
        }
      }
    },
    {
      "Sid": "StreamingTopic",
      "Effect": "Allow",
      "Action": [
        "sns:Publish"
      ],
      "Resource": [
        "arn:aws:sns:*:*:*GroundTruth*",
        "arn:aws:sns:*:*:*Groundtruth*",
        "arn:aws:sns:*:*:*groundTruth*",
        "arn:aws:sns:*:*:*groundtruth*",
        "arn:aws:sns:*:*:*SageMaker*",
        "arn:aws:sns:*:*:*Sagemaker*",
        "arn:aws:sns:*:*:*sageMaker*",
        "arn:aws:sns:*:*:*sagemaker*"
      ]
    },
    {
      "Sid": "StreamingTopicUnsubscribe",
      "Effect": "Allow",
      "Action": [
        "sns:Unsubscribe"
      ],
      "Resource": "*"
    },
    {
      "Sid": "WorkforceVPC",
      "Effect": "Allow",
      "Action": [
        "ec2:CreateVpcEndpoint",
        "ec2:DescribeVpcEndpoints",
        "ec2:DeleteVpcEndpoints"
      ],
      "Resource": "*",
      "Condition": {
        "StringLikeIfExists": {
          "ec2:VpceServiceName": [
            "*sagemaker-task-resources*",
            "aws.sagemaker*labeling*"
          ]
        }
      }
    }
  ]
}

Version history

Current version v3, edited by AWS on 2022-04-29. 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/AmazonSageMakerGroundTruthExecution
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AmazonSageMakerGroundTruthExecution
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AmazonSageMakerGroundTruthExecution

CloudFormation

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

Terraform

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

CDK (TypeScript)

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

Sources

Pending editorial review. No editorial sources are listed yet.