deploy: byte-order-mark (BOM) in existing cf template causes YAMLSyntaxError and fails deployment #29792
Labels
bug
This issue is a bug.
cli
Issues related to the CDK CLI
p2
package/tools
Related to AWS CDK Tools or CLI
Describe the bug
When performing manual tweaks to stacks in the console (eg - migrating resources into nested) users can provide a template that starts with a byte-order-mark and this is accepted by the console.
On subsequent deployments using CDK this causes a deployment failure. Updating the stack in console to remove the BOM fixes the issue.
Expected Behavior
aws-cdk should not have different behaviour to the console upload
Current Behavior
Reproduction Steps
Possible Solution
No response
Additional Information/Context
Important to note that all manual work was done in json, so I assume the yaml error was part of an internal process.
CDK CLI Version
2.136.0 (build 94fd33b)
Framework Version
No response
Node.js Version
v18.20.1
OS
Debian 12
Language
.NET
Language Version
8.0.203
Other information
No response
The text was updated successfully, but these errors were encountered: