AmazonSageMakerServiceCatalogProductsCodePipelineServiceRolePolicy
Last Modified
Mar 12, 2026
March 12, 2026 at 09:28 PM UTC
Version
v5
Total Versions
3
Created
Feb 12, 2026
Actions
26
Risk
MediumThe same capabilities in a scoped form, resource policy writes, reads across all data, or full access to a whole service. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed
- Medium
Can launch resources that run as a more privileged role
Grants the actions of 2 documented escalation paths, but only on named resources or under a condition. Review that scope before trusting it.
- iam:PassRole: on arn:aws:iam::*:role/service-role/AmazonSageMakerServiceCatalogProductsCloudformationRole
- cloudformation:CreateStack: on arn:aws:cloudformation:*:*:stack/sagemaker-*
- cloudformation:CreateChangeSet: on arn:aws:cloudformation:*:*:stack/sagemaker-*
- cloudformation:ExecuteChangeSet: on arn:aws:cloudformation:*:*:stack/sagemaker-*
Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.
- Medium
Can take over existing resources that run as another role
Grants the actions of 2 documented escalation paths, but only on named resources or under a condition. Review that scope before trusting it.
- cloudformation:UpdateStack: on arn:aws:cloudformation:*:*:stack/sagemaker-*
- codebuild:StartBuild: on arn:aws:codebuild:*:*:project/sagemaker-*, arn:aws:codebuild:*:*:build/sagemaker-*
Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.
Policy Document
View on GitHub{
"PolicyVersion": {
"Document": {
"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"
}
}
}
]
},
"VersionId": "v5",
"IsDefaultVersion": true,
"CreateDate": "2026-02-12T18:00:38+00:00"
}
}Version History (8 recorded)
Raw historyAmazonSageMakerServiceCatalogProductsCodePipelineServiceRolePolicy - Policy Version v5
No recorded action delta - this version predates the change index. View the raw diff.
Mar 12, 2026
e4ee5fbAmazonSageMakerServiceCatalogProductsCodePipelineServiceRolePolicy - Policy Version v5
No recorded action delta - this version predates the change index. View the raw diff.
Feb 12, 2026
cee5715AmazonSageMakerServiceCatalogProductsCodePipelineServiceRolePolicy - Policy Version v4
No recorded action delta - this version predates the change index. View the raw diff.
Feb 12, 2026
56caf32AmazonSageMakerServiceCatalogProductsCodePipelineServiceRolePolicy - Policy Version v3
No recorded action delta - this version predates the change index. View the raw diff.
Sep 29, 2025
de76b5eUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Sep 18, 2024
aafbae9Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Jun 11, 2024
fbbac04Update detected
No recorded action delta - this version predates the change index. View the raw diff.
May 13, 2024
1b36617Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Feb 22, 2022
752955d