aws_sagemaker: Stack level tags get added to SageMaker CfnModelPackage causing deployment failure #33699
Labels
@aws-cdk/aws-sagemaker
Related to AWS SageMaker
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
When deploying a stack with tags set at the stack level, cdk tries to apply the tag to sagemaker model package which results in deployment error
Tags are not supported in Model Package versions. Please add them to the Model Package Group
.The same code deployed without errors before this; the last successful deployment tested was in February 2025.
Regression Issue
Last Known Working CDK Version
2.175.1 (same version no longer works now)
Expected Behavior
Tags should not be applied to untaggable resources as stated in the
Stack
class docstring:Current Behavior
CDK attempts to apply stack-level tags to sagemaker model package.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.175.1
Framework Version
No response
Node.js Version
2.175.1
OS
Linux
Language
Python
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: