Replies: 3 comments 5 replies
-
This is a pretty useful bit of tooling. For a first use case, I am using it to convert some 'vendor' supplied cloudformation templates to cdk. Mostly it did a good job, but it did'nt produce a working cdk app. Some initial observations; (1) This parameter ( and any number type parameters ) did not translate to a number type, they were strings. for example
What I got was a property in the StackProps that looked like this.
(2) The way it creates Propertys for the stack, appears to be by picking out any Outputs it saw in the cloudformation. I guess thats a good starting point. (3) The way it applies the default values, using the spread operator, while 'correct' and functional, might be quite confusing, its not something that you often see. It seems to be the general convention in cdk that the default would be set at the resource.. (4) Conditions are confusing.. 'Native' Cdk doestn really have a special set of parameters called conditions.. Tyically, we'd use an if statement, or if you want to be compact the ? : While it often results in more lines of code if statements are easier to follow than ? : (5) .addDepedency often had the wrong types passed. for example
|
Beta Was this translation helpful? Give feedback.
-
Another quirky one.. with conditonal things... Its adding empty code
|
Beta Was this translation helpful? Give feedback.
-
This template produces some code that has a casing problem. AutoscalingReplacingUpdate shoudl be in camel case, its in Pascal, and again with the property WillReplace. Also noticed that the value for WillReplace is text
this produces
|
Beta Was this translation helpful? Give feedback.
-
This feature enables users to migrate AWS CloudFormation templates, previously deployed CloudFormation stacks, or resources created outside of Infrastructure as Code (IaC) into a CDK application.
https://aws.amazon.com/blogs/devops/announcing-cdk-migrate-a-single-command-to-migrate-to-the-aws-cdk/
Beta Was this translation helpful? Give feedback.
All reactions