-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sagemaker: The YAML template for the PipelineDefinitionBody property is in Upper Camel Case (Pascal Case) while the template generated by the CDK has this property in Camel Case #25774
Comments
Yes I can reproduce it in python but not in TypeScript. This seems to be a bug. I'll discuss this with the team. |
Hi @JawadAr This is a cfnspec patch issue and we are tracking at #21767 At this moment, you will need to write your CDK in python like this: sagemaker.CfnPipeline(self, "IssueTriagePyPipeline",
pipeline_name="IssueTriagePyPipeline",
role_arn="0000000000000000000000000:role/service-role/AmazonSageMaker-ExecutionRole-20210802T151519",
pipeline_definition={
"PipelineDefinitionBody": "foo"
}
) And you should get the synthed resource like Resources:
IssueTriagePyPipeline:
Type: AWS::SageMaker::Pipeline
Properties:
PipelineDefinition:
PipelineDefinitionBody: foo
PipelineName: IssueTriagePyPipeline
RoleArn: 0000000000000000000000000:role/service-role/AmazonSageMaker-ExecutionRole-20210802T151519 Let me know if it works for you. |
Hi @pahud |
closing this issue in favor of the tracking issue at #21767 |
|
Describe the bug
The YAML template for the
AWS::SageMaker::Pipeline
resource in the docs is as follows:The
PipelineDefinition
property is further defined as follows:Which means that a valid template could be:
Notice that the property
PipelineDefinitionBody
is in Pascal Case. But what the CDK generates is:Notice that the property
pipelineDefinitionBody
is in Camel Case. Which is causing the following error in CloudFormation:The Python stack code for creating the template is as follows:
Any generic code would reproduce the error.
Python CDK version:
2.81.0
CDK ToolKit version:
2.81.0
Machine:
Macbook Pro 2020, 13-inch
OS:
Ventura 13.0.1
IDE:
VSCode
Expected Behavior
I expected the CDK to generate a valid template for the
AWS::SageMaker::Pipeline
resource. Which is as follows:Notice that the property
PipelineDefinitionBody
is in Pascal Case.Current Behavior
What the CDK currently generates is:
Notice that the property
pipelineDefinitionBody
is in Camel Case.Reproduction Steps
Use the following stack in python CDK:
Possible Solution
Possibly a typo error in converting from code to YAML.
Additional Information/Context
Python CDK version:
2.81.0
CDK ToolKit version:
2.81.0
Machine:
Macbook Pro 2020, 13-inch
OS:
Ventura 13.0.1
IDE:
VSCode
CDK CLI Version
2.81.0
Framework Version
2.81.0
Node.js Version
18.16.0
OS
Ventura 13.0.1
Language
Python
Language Version
3.9.7
Other information
No response
The text was updated successfully, but these errors were encountered: