AmazonSageMakerServiceCatalogProductsCodePipelineServiceRolePolicy
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.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| CloudFormation | 11 of 104 | 1 List, 1 Permissions management, 1 Read, 2 Tagging, 6 Write; 11 restricted, 2 conditional | cloudformation:CreateChangeSet, cloudformation:CreateStack, cloudformation:DeleteChangeSet, cloudformation:DeleteStack, cloudformation:DescribeChangeSet, cloudformation:DescribeStacks, cloudformation:ExecuteChangeSet, cloudformation:SetStackPolicy, cloudformation:TagResource, cloudformation:UntagResource, cloudformation:UpdateStack |
| CodeBuild | 2 of 67 | 1 Read, 1 Write; 2 restricted, 0 conditional | codebuild:BatchGetBuilds, codebuild:StartBuild |
| CodeCommit | 5 of 91 | 4 Read, 1 Write; 5 restricted, 0 conditional | codecommit:CancelUploadArchive, codecommit:GetBranch, codecommit:GetCommit, codecommit:GetUploadArchiveStatus, codecommit:UploadArchive |
| CodeConnections | 1 of 38 | 1 Read; 1 restricted, 1 conditional | codeconnections:UseConnection |
| CodeStar Connections | 1 of 38 | 1 Read; 1 restricted, 1 conditional | codestar-connections:UseConnection |
| IAM | 1 of 190 | 1 Write; 1 restricted, 0 conditional | iam: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.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| S3 | 5 of 25 | 2 Read, 3 Write; 5 restricted, 0 conditional | s3: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.
Related policies
Same service
- AccessAnalyzerServiceRolePolicy
- AdministratorAccess-AWSElasticBeanstalk
- AIDevOpsOrganizationsAccessPolicy
- AmazonAppFlowFullAccess
- AmazonAppStreamServiceAccess
- AmazonBedrockStudioPermissionsBoundary
- AmazonBraketJobsExecutionPolicy
- AmazonBraketServiceRolePolicy
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
{
"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/AmazonSageMakerServiceCatalogProductsCodePipelineServiceRolePolicyCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/service-role/AmazonSageMakerServiceCatalogProductsCodePipelineServiceRolePolicyTerraform
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.