Skip to content

Commit

Permalink
fix(init): Python init template's stack ID doesn't match other langua…
Browse files Browse the repository at this point in the history
…ges (#13480)

In other languages, if you create a directory `hello-cdk`, do `cdk init`, and then `cdk ls`, you get `HelloCdkStack`. In Python you get `hello-cdk`. Change the Python init template to match the other languages.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
Jerry Kindall committed Mar 10, 2021
1 parent 9910f77 commit 3f1c02d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from %name.PythonModule%.%name.PythonModule%_stack import %name.PascalCased%Stack


app = cdk.App()
%name.PascalCased%Stack(app, "%name.StackName%")
app = core.App()
%name.PascalCased%Stack(app, "%name.PascalCased%Stack")

app.synth()
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@


app = core.App()
%name.PascalCased%Stack(app, "%name.StackName%")
%name.PascalCased%Stack(app, "%name.PascalCased%Stack")

app.synth()

0 comments on commit 3f1c02d

Please sign in to comment.