Skip to main content
IAM Policy Map

AmazonSageMakerServiceCatalogProductsCodePipelineServiceRolePolicy

OperatorService roleActivePermissions reviewedShow on mapCompare

Summary

Service role policy used by the AWS CodePipeline within the AWS ServiceCatalog provisioned products from Amazon SageMaker portfolio of products. Grants permissions to a subset of related services including CodePipeline, CodeBuild and others.

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

Identity

ARN
arn:aws:iam::aws:policy/service-role/AmazonSageMakerServiceCatalogProductsCodePipelineServiceRolePolicy
Default version
v5
Created
Last edited
Services
cloudformation, codebuild, codecommit, codeconnections, codestar-connections, iam, s3

Control-plane actions (21)

By access level: 1 List, 1 Permissions management, 8 Read, 2 Tagging, 9 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
CloudFormation11 of 1041 List, 1 Permissions management, 1 Read, 2 Tagging, 6 Write; 11 restricted, 2 conditionalcloudformation:CreateChangeSet, cloudformation:CreateStack, cloudformation:DeleteChangeSet, cloudformation:DeleteStack, cloudformation:DescribeChangeSet, cloudformation:DescribeStacks, cloudformation:ExecuteChangeSet, cloudformation:SetStackPolicy, cloudformation:TagResource, cloudformation:UntagResource, cloudformation:UpdateStack
CodeBuild2 of 671 Read, 1 Write; 2 restricted, 0 conditionalcodebuild:BatchGetBuilds, codebuild:StartBuild
CodeCommit5 of 914 Read, 1 Write; 5 restricted, 0 conditionalcodecommit:CancelUploadArchive, codecommit:GetBranch, codecommit:GetCommit, codecommit:GetUploadArchiveStatus, codecommit:UploadArchive
CodeConnections1 of 381 Read; 1 restricted, 1 conditionalcodeconnections:UseConnection
CodeStar Connections1 of 381 Read; 1 restricted, 1 conditionalcodestar-connections:UseConnection
IAM1 of 1901 Write; 1 restricted, 0 conditionaliam:PassRole
CloudFormation: 11 actions
  • cloudformation:CreateChangeSet (Write)
  • cloudformation:CreateStack (Write)
  • cloudformation:DeleteChangeSet (Write)
  • cloudformation:DeleteStack (Write)
  • cloudformation:DescribeChangeSet (Read)
  • cloudformation:DescribeStacks (List)
  • cloudformation:ExecuteChangeSet (Write)
  • cloudformation:SetStackPolicy (Permissions management)
  • cloudformation:TagResource (Tagging)
  • cloudformation:UntagResource (Tagging)
  • cloudformation:UpdateStack (Write)
CodeBuild: 2 actions
  • codebuild:BatchGetBuilds (Read)
  • codebuild:StartBuild (Write)
CodeCommit: 5 actions
  • codecommit:CancelUploadArchive (Read)
  • codecommit:GetBranch (Read)
  • codecommit:GetCommit (Read)
  • codecommit:GetUploadArchiveStatus (Read)
  • codecommit:UploadArchive (Write)
CodeConnections: 1 actions
  • codeconnections:UseConnection (Read)
CodeStar Connections: 1 actions
  • codestar-connections:UseConnection (Read)
IAM: 1 actions
  • iam:PassRole (Write)

Data-plane actions (5)

By access level: 2 Read, 3 Write.

Data-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
S35 of 252 Read, 3 Write; 5 restricted, 0 conditionals3:AbortMultipartUpload, s3:DeleteObject, s3:GetObject, s3:GetObjectVersion, s3:PutObject
S3: 5 actions
  • s3:AbortMultipartUpload (Write)
  • s3:DeleteObject (Write)
  • s3:GetObject (Read)
  • s3:GetObjectVersion (Read)
  • 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: scoped.

Can be attached: Yes, to users, groups and roles.

Why this tier

  • Grants 15 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": "AmazonSageMakerCodePipelineCFnPermission",
      "Effect": "Allow",
      "Action": [
        "cloudformation:CreateChangeSet",
        "cloudformation:CreateStack",
        "cloudformation:DescribeChangeSet",
        "cloudformation:DeleteChangeSet",
        "cloudformation:DeleteStack",
        "cloudformation:DescribeStacks",
        "cloudformation:ExecuteChangeSet",
        "cloudformation:SetStackPolicy",
        "cloudformation:UpdateStack"
      ],
      "Resource": "arn:aws:cloudformation:*:*:stack/sagemaker-*"
    },
    {
      "Sid": "AmazonSageMakerCodePipelineCFnTagPermission",
      "Effect": "Allow",
      "Action": [
        "cloudformation:TagResource",
        "cloudformation:UntagResource"
      ],
      "Resource": "arn:aws:cloudformation:*:*:stack/sagemaker-*",
      "Condition": {
        "ForAnyValue:StringEquals": {
          "aws:TagKeys": [
            "sagemaker:project-name"
          ]
        }
      }
    },
    {
      "Sid": "AmazonSageMakerCodePipelineS3Permission",
      "Effect": "Allow",
      "Action": [
        "s3:AbortMultipartUpload",
        "s3:DeleteObject",
        "s3:GetObject",
        "s3:GetObjectVersion",
        "s3:PutObject"
      ],
      "Resource": [
        "arn:aws:s3:::sagemaker-*"
      ]
    },
    {
      "Sid": "AmazonSageMakerCodePipelinePassRolePermission",
      "Effect": "Allow",
      "Action": [
        "iam:PassRole"
      ],
      "Resource": [
        "arn:aws:iam::*:role/service-role/AmazonSageMakerServiceCatalogProductsCloudformationRole"
      ]
    },
    {
      "Sid": "AmazonSageMakerCodePipelineCodeBuildPermission",
      "Effect": "Allow",
      "Action": [
        "codebuild:BatchGetBuilds",
        "codebuild:StartBuild"
      ],
      "Resource": [
        "arn:aws:codebuild:*:*:project/sagemaker-*",
        "arn:aws:codebuild:*:*:build/sagemaker-*"
      ]
    },
    {
      "Sid": "AmazonSageMakerCodePipelineCodeCommitPermission",
      "Effect": "Allow",
      "Action": [
        "codecommit:CancelUploadArchive",
        "codecommit:GetBranch",
        "codecommit:GetCommit",
        "codecommit:GetUploadArchiveStatus",
        "codecommit:UploadArchive"
      ],
      "Resource": "arn:aws:codecommit:*:*:sagemaker-*"
    },
    {
      "Sid": "AmazonSageMakerCodePipelineCodeStarConnectionPermission",
      "Effect": "Allow",
      "Action": [
        "codestar-connections:UseConnection"
      ],
      "Resource": [
        "arn:aws:codestar-connections:*:*:connection/*",
        "arn:aws:codeconnections:*:*:connection/*"
      ],
      "Condition": {
        "StringEqualsIgnoreCase": {
          "aws:ResourceTag/sagemaker": "true"
        }
      }
    },
    {
      "Sid": "AmazonSageMakerCodePipelineCodeConnectionPermission",
      "Effect": "Allow",
      "Action": [
        "codeconnections:UseConnection"
      ],
      "Resource": [
        "arn:aws:codeconnections:*:*:connection/*",
        "arn:aws:codestar-connections:*:*:connection/*"
      ],
      "Condition": {
        "StringEqualsIgnoreCase": {
          "aws:ResourceTag/sagemaker": "true"
        }
      }
    }
  ]
}

Version history

Current version v5, edited by AWS on 2026-02-12. 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/service-role/AmazonSageMakerServiceCatalogProductsCodePipelineServiceRolePolicy
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AmazonSageMakerServiceCatalogProductsCodePipelineServiceRolePolicy
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AmazonSageMakerServiceCatalogProductsCodePipelineServiceRolePolicy

CloudFormation

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

Terraform

resource "aws_iam_role_policy_attachment" "service_role_amazonsagemakerservicecatalogproductscodepipelineservicerolepolicy" {
  role       = aws_iam_role.example.name
  policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonSageMakerServiceCatalogProductsCodePipelineServiceRolePolicy"
}

CDK (TypeScript)

role.addManagedPolicy(
  iam.ManagedPolicy.fromAwsManagedPolicyName("service-role/AmazonSageMakerServiceCatalogProductsCodePipelineServiceRolePolicy"),
);

Sources

Pending editorial review. No editorial sources are listed yet.