aws-cdk 2.31.2 → 2.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (340) hide show
  1. package/CONTRIBUTING.md +29 -0
  2. package/README.md +7 -6
  3. package/build-info.json +2 -2
  4. package/lib/cli.js +4 -3
  5. package/lib/commands/context.js +67 -7
  6. package/lib/index.js +321 -134
  7. package/lib/init-templates/{v1/app → app}/csharp/.template.gitignore +0 -0
  8. package/lib/init-templates/{v1/app → app}/csharp/README.md +0 -0
  9. package/lib/init-templates/app/csharp/add-project.hook.d.ts +2 -0
  10. package/lib/init-templates/{v2/app → app}/csharp/add-project.hook.js +1 -1
  11. package/lib/init-templates/{v1/app → app}/csharp/cdk.template.json +0 -0
  12. package/lib/init-templates/{v2/app → app}/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +0 -0
  13. package/lib/init-templates/{v2/app → app}/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +0 -0
  14. package/lib/init-templates/{v1/app → app}/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +0 -0
  15. package/lib/init-templates/{v2/app → app}/csharp/src/%name.PascalCased%/Program.template.cs +0 -0
  16. package/lib/init-templates/{v1/app → app}/csharp/src/%name.PascalCased%.template.sln +0 -0
  17. package/lib/init-templates/{v1/app → app}/fsharp/.template.gitignore +0 -0
  18. package/lib/init-templates/{v1/app → app}/fsharp/README.md +0 -0
  19. package/lib/init-templates/app/fsharp/add-project.hook.d.ts +2 -0
  20. package/lib/init-templates/{v1/app → app}/fsharp/add-project.hook.js +1 -1
  21. package/lib/init-templates/{v1/app → app}/fsharp/cdk.template.json +0 -0
  22. package/lib/init-templates/{v2/app → app}/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +0 -0
  23. package/lib/init-templates/{v1/app → app}/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +0 -0
  24. package/lib/init-templates/{v1/app → app}/fsharp/src/%name.PascalCased%/Program.template.fs +0 -0
  25. package/lib/init-templates/{v1/app → app}/fsharp/src/%name.PascalCased%.template.sln +0 -0
  26. package/lib/init-templates/{v2/app → app}/go/%name%.template.go +0 -0
  27. package/lib/init-templates/{v2/app → app}/go/%name%_test.template.go +0 -0
  28. package/lib/init-templates/{v1/app → app}/go/.template.gitignore +0 -0
  29. package/lib/init-templates/{v2/app → app}/go/README.md +1 -3
  30. package/lib/init-templates/{v1/app → app}/go/cdk.template.json +0 -0
  31. package/lib/init-templates/{v2/app → app}/go/go.template.mod +0 -0
  32. package/lib/init-templates/{v1/app → app}/info.json +0 -0
  33. package/lib/init-templates/{v1/app → app}/java/.template.gitignore +0 -0
  34. package/lib/init-templates/{v1/app → app}/java/README.md +0 -0
  35. package/lib/init-templates/{v1/app → app}/java/cdk.json +0 -0
  36. package/lib/init-templates/{v2/app → app}/java/pom.xml +0 -0
  37. package/lib/init-templates/{v2/app → app}/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +0 -0
  38. package/lib/init-templates/{v2/app → app}/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +0 -0
  39. package/lib/init-templates/{v2/app → app}/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java +0 -0
  40. package/lib/init-templates/app/java/sub-placeholders.hook.d.ts +2 -0
  41. package/lib/init-templates/{v1/app → app}/java/sub-placeholders.hook.js +1 -1
  42. package/lib/init-templates/{v1/app → app}/javascript/.template.gitignore +0 -0
  43. package/lib/init-templates/{v1/app → app}/javascript/.template.npmignore +0 -0
  44. package/lib/init-templates/{v1/app → app}/javascript/README.md +0 -0
  45. package/lib/init-templates/{v2/app → app}/javascript/bin/%name%.template.js +0 -0
  46. package/lib/init-templates/{v1/app → app}/javascript/cdk.template.json +0 -0
  47. package/lib/init-templates/{v1/sample-app → app}/javascript/jest.config.js +0 -0
  48. package/lib/init-templates/{v2/app → app}/javascript/lib/%name%-stack.template.js +0 -0
  49. package/lib/init-templates/{v2/app → app}/javascript/package.json +0 -0
  50. package/lib/init-templates/app/javascript/sub-placeholders.hook.d.ts +2 -0
  51. package/lib/init-templates/{v1/sample-app → app}/javascript/sub-placeholders.hook.js +1 -1
  52. package/lib/init-templates/{v2/app → app}/javascript/test/%name%.test.template.js +0 -0
  53. package/lib/init-templates/{v2/app → app}/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +0 -0
  54. package/lib/init-templates/{v1/app → app}/python/%name.PythonModule%/__init__.py +0 -0
  55. package/lib/init-templates/{v2/app → app}/python/.template.gitignore +0 -0
  56. package/lib/init-templates/{v1/app → app}/python/README.template.md +0 -0
  57. package/lib/init-templates/{v2/app → app}/python/app.template.py +0 -0
  58. package/lib/init-templates/{v1/app → app}/python/cdk.template.json +0 -0
  59. package/lib/init-templates/{v1/app → app}/python/requirements-dev.txt +0 -0
  60. package/lib/init-templates/{v2/app → app}/python/requirements.txt +0 -0
  61. package/lib/init-templates/{v1/app → app}/python/source.bat +0 -0
  62. package/lib/init-templates/app/python/sub-placeholders.hook.d.ts +2 -0
  63. package/lib/init-templates/{v1/sample-app → app}/python/sub-placeholders.hook.js +1 -1
  64. package/lib/init-templates/{v1/app → app}/python/tests/__init__.py +0 -0
  65. package/lib/init-templates/{v1/app → app}/python/tests/unit/__init__.py +0 -0
  66. package/lib/init-templates/{v2/app → app}/python/tests/unit/test_%name.PythonModule%_stack.template.py +0 -0
  67. package/lib/init-templates/{v1/app → app}/typescript/.template.gitignore +0 -0
  68. package/lib/init-templates/{v1/app → app}/typescript/.template.npmignore +0 -0
  69. package/lib/init-templates/{v1/app → app}/typescript/README.md +0 -0
  70. package/lib/init-templates/{v2/app → app}/typescript/bin/%name%.template.ts +0 -0
  71. package/lib/init-templates/{v1/app → app}/typescript/cdk.template.json +0 -0
  72. package/lib/init-templates/{v1/app → app}/typescript/jest.config.js +0 -0
  73. package/lib/init-templates/{v2/app → app}/typescript/lib/%name%-stack.template.ts +0 -0
  74. package/lib/init-templates/{v2/app → app}/typescript/package.json +0 -0
  75. package/lib/init-templates/app/typescript/sub-placeholders.hook.d.ts +2 -0
  76. package/lib/init-templates/{v1/app/javascript → app/typescript}/sub-placeholders.hook.js +1 -1
  77. package/lib/init-templates/{v2/app → app}/typescript/test/%name%.test.template.ts +0 -0
  78. package/lib/init-templates/{v1/app → app}/typescript/tsconfig.json +0 -0
  79. package/lib/init-templates/{v1/lib → lib}/info.json +0 -0
  80. package/lib/init-templates/{v1/lib → lib}/typescript/.template.gitignore +0 -0
  81. package/lib/init-templates/{v1/lib → lib}/typescript/.template.npmignore +0 -0
  82. package/lib/init-templates/{v2/lib → lib}/typescript/README.template.md +0 -0
  83. package/lib/init-templates/{v1/lib → lib}/typescript/jest.config.js +0 -0
  84. package/lib/init-templates/{v2/lib → lib}/typescript/lib/index.template.ts +0 -0
  85. package/lib/init-templates/{v2/lib → lib}/typescript/package.json +0 -0
  86. package/lib/init-templates/lib/typescript/sub-placeholders.hook.d.ts +2 -0
  87. package/lib/init-templates/{v1/lib → lib}/typescript/sub-placeholders.hook.js +1 -1
  88. package/lib/init-templates/{v2/lib → lib}/typescript/test/%name%.test.template.ts +0 -0
  89. package/lib/init-templates/{v1/lib → lib}/typescript/tsconfig.json +0 -0
  90. package/lib/init-templates/{v1/sample-app → sample-app}/csharp/.template.gitignore +0 -0
  91. package/lib/init-templates/{v2/sample-app → sample-app}/csharp/README.template.md +0 -0
  92. package/lib/init-templates/sample-app/csharp/add-project.hook.d.ts +2 -0
  93. package/lib/init-templates/{v1/sample-app → sample-app}/csharp/add-project.hook.js +1 -1
  94. package/lib/init-templates/{v1/sample-app → sample-app}/csharp/cdk.template.json +0 -0
  95. package/lib/init-templates/{v2/sample-app → sample-app}/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +0 -0
  96. package/lib/init-templates/{v2/sample-app → sample-app}/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +0 -0
  97. package/lib/init-templates/{v1/sample-app → sample-app}/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +0 -0
  98. package/lib/init-templates/{v1/sample-app → sample-app}/csharp/src/%name.PascalCased%/Program.template.cs +0 -0
  99. package/lib/init-templates/{v1/sample-app → sample-app}/csharp/src/%name.PascalCased%.template.sln +0 -0
  100. package/lib/init-templates/{v1/sample-app → sample-app}/fsharp/.template.gitignore +0 -0
  101. package/lib/init-templates/{v1/sample-app → sample-app}/fsharp/README.template.md +0 -0
  102. package/lib/init-templates/sample-app/fsharp/add-project.hook.d.ts +2 -0
  103. package/lib/init-templates/{v2/app → sample-app}/fsharp/add-project.hook.js +1 -1
  104. package/lib/init-templates/{v1/sample-app → sample-app}/fsharp/cdk.template.json +0 -0
  105. package/lib/init-templates/{v2/sample-app → sample-app}/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +0 -0
  106. package/lib/init-templates/{v2/sample-app → sample-app}/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +1 -1
  107. package/lib/init-templates/{v1/sample-app → sample-app}/fsharp/src/%name.PascalCased%/Program.template.fs +0 -0
  108. package/lib/init-templates/{v1/sample-app → sample-app}/fsharp/src/%name.PascalCased%.template.sln +0 -0
  109. package/lib/init-templates/{v2/sample-app → sample-app}/go/%name%.template.go +0 -0
  110. package/lib/init-templates/{v2/sample-app → sample-app}/go/%name%_test.template.go +0 -0
  111. package/lib/init-templates/{v1/sample-app → sample-app}/go/.template.gitignore +0 -0
  112. package/lib/init-templates/{v2/sample-app → sample-app}/go/README.md +1 -3
  113. package/lib/init-templates/{v1/sample-app → sample-app}/go/cdk.template.json +0 -0
  114. package/lib/init-templates/{v2/sample-app → sample-app}/go/go.template.mod +0 -0
  115. package/lib/init-templates/{v1/sample-app → sample-app}/info.json +0 -0
  116. package/lib/init-templates/{v1/sample-app → sample-app}/java/.template.gitignore +0 -0
  117. package/lib/init-templates/{v2/sample-app → sample-app}/java/README.template.md +0 -0
  118. package/lib/init-templates/{v1/sample-app → sample-app}/java/cdk.json +0 -0
  119. package/lib/init-templates/{v2/sample-app → sample-app}/java/pom.xml +0 -0
  120. package/lib/init-templates/{v2/sample-app → sample-app}/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +0 -0
  121. package/lib/init-templates/{v2/sample-app → sample-app}/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +0 -0
  122. package/lib/init-templates/{v2/sample-app → sample-app}/java/src/test/java/com/myorg/%name.PascalCased%StackTest.template.java +0 -0
  123. package/lib/init-templates/sample-app/java/sub-placeholders.hook.d.ts +2 -0
  124. package/lib/init-templates/{v1/sample-app → sample-app}/java/sub-placeholders.hook.js +1 -1
  125. package/lib/init-templates/{v1/sample-app → sample-app}/javascript/.template.gitignore +0 -0
  126. package/lib/init-templates/{v1/sample-app → sample-app}/javascript/.template.npmignore +0 -0
  127. package/lib/init-templates/{v2/sample-app → sample-app}/javascript/README.template.md +0 -0
  128. package/lib/init-templates/{v2/sample-app → sample-app}/javascript/bin/%name%.template.js +0 -0
  129. package/lib/init-templates/{v1/sample-app → sample-app}/javascript/cdk.template.json +0 -0
  130. package/lib/init-templates/{v2/app → sample-app}/javascript/jest.config.js +0 -0
  131. package/lib/init-templates/{v2/sample-app → sample-app}/javascript/lib/%name%-stack.template.js +0 -0
  132. package/lib/init-templates/{v2/sample-app → sample-app}/javascript/package.json +0 -0
  133. package/lib/init-templates/sample-app/javascript/sub-placeholders.hook.d.ts +2 -0
  134. package/lib/init-templates/{v1/app/typescript → sample-app/javascript}/sub-placeholders.hook.js +1 -1
  135. package/lib/init-templates/{v2/sample-app → sample-app}/javascript/test/%name%.test.template.js +0 -0
  136. package/lib/init-templates/{v1/sample-app → sample-app}/javascript/tsconfig.json +0 -0
  137. package/lib/init-templates/{v2/sample-app → sample-app}/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +0 -0
  138. package/lib/init-templates/{v1/sample-app → sample-app}/python/%name.PythonModule%/__init__.py +0 -0
  139. package/lib/init-templates/{v1/sample-app → sample-app}/python/.template.gitignore +0 -0
  140. package/lib/init-templates/{v2/sample-app → sample-app}/python/README.template.md +0 -0
  141. package/lib/init-templates/{v2/sample-app → sample-app}/python/app.template.py +0 -0
  142. package/lib/init-templates/{v1/sample-app → sample-app}/python/cdk.template.json +0 -0
  143. package/lib/init-templates/{v1/sample-app → sample-app}/python/requirements-dev.txt +0 -0
  144. package/lib/init-templates/{v2/sample-app → sample-app}/python/requirements.txt +0 -0
  145. package/lib/init-templates/{v1/sample-app → sample-app}/python/source.bat +0 -0
  146. package/lib/init-templates/sample-app/python/sub-placeholders.hook.d.ts +2 -0
  147. package/lib/init-templates/{v2/app → sample-app}/python/sub-placeholders.hook.js +1 -1
  148. package/lib/init-templates/{v1/sample-app → sample-app}/python/tests/__init__.py +0 -0
  149. package/lib/init-templates/{v1/sample-app → sample-app}/python/tests/unit/__init__.py +0 -0
  150. package/lib/init-templates/{v2/sample-app → sample-app}/python/tests/unit/test_%name.PythonModule%_stack.template.py +0 -0
  151. package/lib/init-templates/{v1/sample-app → sample-app}/typescript/.template.gitignore +0 -0
  152. package/lib/init-templates/{v1/sample-app → sample-app}/typescript/.template.npmignore +0 -0
  153. package/lib/init-templates/{v2/sample-app → sample-app}/typescript/README.template.md +0 -0
  154. package/lib/init-templates/{v2/sample-app → sample-app}/typescript/bin/%name%.template.ts +0 -0
  155. package/lib/init-templates/{v1/sample-app → sample-app}/typescript/cdk.template.json +0 -0
  156. package/lib/init-templates/{v1/sample-app → sample-app}/typescript/jest.config.js +0 -0
  157. package/lib/init-templates/{v2/sample-app → sample-app}/typescript/lib/%name%-stack.template.ts +0 -0
  158. package/lib/init-templates/{v2/sample-app → sample-app}/typescript/package.json +0 -0
  159. package/lib/init-templates/sample-app/typescript/sub-placeholders.hook.d.ts +2 -0
  160. package/lib/init-templates/sample-app/typescript/sub-placeholders.hook.js +9 -0
  161. package/lib/init-templates/{v2/sample-app → sample-app}/typescript/test/%name%.test.template.ts +0 -0
  162. package/lib/init-templates/{v1/sample-app → sample-app}/typescript/tsconfig.json +0 -0
  163. package/lib/init.js +3 -16
  164. package/lib/util/directories.d.ts +11 -0
  165. package/lib/util/directories.js +19 -2
  166. package/package.json +9 -9
  167. package/test/api/deploy-stack.test.js +2 -2
  168. package/test/commands/context-command.test.js +186 -47
  169. package/test/init.test.js +50 -56
  170. package/test/integ/cli/cli.integtest.js +30 -1
  171. package/lib/init-templates/v1/app/csharp/add-project.hook.d.ts +0 -2
  172. package/lib/init-templates/v1/app/csharp/add-project.hook.js +0 -31
  173. package/lib/init-templates/v1/app/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +0 -19
  174. package/lib/init-templates/v1/app/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +0 -12
  175. package/lib/init-templates/v1/app/csharp/src/%name.PascalCased%/Program.template.cs +0 -45
  176. package/lib/init-templates/v1/app/fsharp/add-project.hook.d.ts +0 -2
  177. package/lib/init-templates/v1/app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +0 -24
  178. package/lib/init-templates/v1/app/go/%name%.template.go +0 -68
  179. package/lib/init-templates/v1/app/go/%name%_test.template.go +0 -26
  180. package/lib/init-templates/v1/app/go/README.md +0 -14
  181. package/lib/init-templates/v1/app/go/go.template.mod +0 -9
  182. package/lib/init-templates/v1/app/java/pom.xml +0 -60
  183. package/lib/init-templates/v1/app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +0 -41
  184. package/lib/init-templates/v1/app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +0 -24
  185. package/lib/init-templates/v1/app/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java +0 -26
  186. package/lib/init-templates/v1/app/java/sub-placeholders.hook.d.ts +0 -2
  187. package/lib/init-templates/v1/app/javascript/bin/%name%.template.js +0 -21
  188. package/lib/init-templates/v1/app/javascript/jest.config.js +0 -3
  189. package/lib/init-templates/v1/app/javascript/lib/%name%-stack.template.js +0 -23
  190. package/lib/init-templates/v1/app/javascript/package.json +0 -20
  191. package/lib/init-templates/v1/app/javascript/sub-placeholders.hook.d.ts +0 -2
  192. package/lib/init-templates/v1/app/javascript/test/%name%.test.template.js +0 -18
  193. package/lib/init-templates/v1/app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +0 -24
  194. package/lib/init-templates/v1/app/python/.template.gitignore +0 -11
  195. package/lib/init-templates/v1/app/python/app.template.py +0 -34
  196. package/lib/init-templates/v1/app/python/requirements.txt +0 -2
  197. package/lib/init-templates/v1/app/python/sub-placeholders.hook.d.ts +0 -2
  198. package/lib/init-templates/v1/app/python/sub-placeholders.hook.js +0 -9
  199. package/lib/init-templates/v1/app/python/tests/unit/test_%name.PythonModule%_stack.template.py +0 -19
  200. package/lib/init-templates/v1/app/typescript/bin/%name%.template.ts +0 -21
  201. package/lib/init-templates/v1/app/typescript/lib/%name%-stack.template.ts +0 -15
  202. package/lib/init-templates/v1/app/typescript/package.json +0 -28
  203. package/lib/init-templates/v1/app/typescript/sub-placeholders.hook.d.ts +0 -2
  204. package/lib/init-templates/v1/app/typescript/test/%name%.test.template.ts +0 -17
  205. package/lib/init-templates/v1/lib/typescript/README.template.md +0 -12
  206. package/lib/init-templates/v1/lib/typescript/lib/index.template.ts +0 -20
  207. package/lib/init-templates/v1/lib/typescript/package.json +0 -26
  208. package/lib/init-templates/v1/lib/typescript/sub-placeholders.hook.d.ts +0 -2
  209. package/lib/init-templates/v1/lib/typescript/test/%name%.test.template.ts +0 -18
  210. package/lib/init-templates/v1/sample-app/csharp/README.template.md +0 -22
  211. package/lib/init-templates/v1/sample-app/csharp/add-project.hook.d.ts +0 -2
  212. package/lib/init-templates/v1/sample-app/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +0 -23
  213. package/lib/init-templates/v1/sample-app/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +0 -23
  214. package/lib/init-templates/v1/sample-app/fsharp/add-project.hook.d.ts +0 -2
  215. package/lib/init-templates/v1/sample-app/fsharp/add-project.hook.js +0 -31
  216. package/lib/init-templates/v1/sample-app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +0 -27
  217. package/lib/init-templates/v1/sample-app/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +0 -14
  218. package/lib/init-templates/v1/sample-app/go/%name%.template.go +0 -71
  219. package/lib/init-templates/v1/sample-app/go/%name%_test.template.go +0 -25
  220. package/lib/init-templates/v1/sample-app/go/README.md +0 -14
  221. package/lib/init-templates/v1/sample-app/go/go.template.mod +0 -9
  222. package/lib/init-templates/v1/sample-app/java/README.template.md +0 -23
  223. package/lib/init-templates/v1/sample-app/java/pom.xml +0 -72
  224. package/lib/init-templates/v1/sample-app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +0 -13
  225. package/lib/init-templates/v1/sample-app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +0 -29
  226. package/lib/init-templates/v1/sample-app/java/src/test/java/com/myorg/%name.PascalCased%StackTest.template.java +0 -26
  227. package/lib/init-templates/v1/sample-app/java/sub-placeholders.hook.d.ts +0 -2
  228. package/lib/init-templates/v1/sample-app/javascript/README.template.md +0 -17
  229. package/lib/init-templates/v1/sample-app/javascript/bin/%name%.template.js +0 -6
  230. package/lib/init-templates/v1/sample-app/javascript/lib/%name%-stack.template.js +0 -25
  231. package/lib/init-templates/v1/sample-app/javascript/package.json +0 -23
  232. package/lib/init-templates/v1/sample-app/javascript/sub-placeholders.hook.d.ts +0 -2
  233. package/lib/init-templates/v1/sample-app/javascript/test/%name%.test.template.js +0 -25
  234. package/lib/init-templates/v1/sample-app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +0 -24
  235. package/lib/init-templates/v1/sample-app/python/README.template.md +0 -68
  236. package/lib/init-templates/v1/sample-app/python/app.template.py +0 -11
  237. package/lib/init-templates/v1/sample-app/python/requirements.txt +0 -7
  238. package/lib/init-templates/v1/sample-app/python/sub-placeholders.hook.d.ts +0 -2
  239. package/lib/init-templates/v1/sample-app/python/tests/unit/test_%name.PythonModule%_stack.template.py +0 -24
  240. package/lib/init-templates/v1/sample-app/typescript/README.template.md +0 -19
  241. package/lib/init-templates/v1/sample-app/typescript/bin/%name%.template.ts +0 -6
  242. package/lib/init-templates/v1/sample-app/typescript/lib/%name%-stack.template.ts +0 -18
  243. package/lib/init-templates/v1/sample-app/typescript/package.json +0 -30
  244. package/lib/init-templates/v1/sample-app/typescript/sub-placeholders.hook.d.ts +0 -2
  245. package/lib/init-templates/v1/sample-app/typescript/sub-placeholders.hook.js +0 -9
  246. package/lib/init-templates/v1/sample-app/typescript/test/%name%.test.template.ts +0 -25
  247. package/lib/init-templates/v2/app/csharp/.template.gitignore +0 -342
  248. package/lib/init-templates/v2/app/csharp/README.md +0 -14
  249. package/lib/init-templates/v2/app/csharp/add-project.hook.d.ts +0 -2
  250. package/lib/init-templates/v2/app/csharp/cdk.template.json +0 -15
  251. package/lib/init-templates/v2/app/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +0 -1
  252. package/lib/init-templates/v2/app/csharp/src/%name.PascalCased%.template.sln +0 -18
  253. package/lib/init-templates/v2/app/fsharp/.template.gitignore +0 -342
  254. package/lib/init-templates/v2/app/fsharp/README.md +0 -18
  255. package/lib/init-templates/v2/app/fsharp/add-project.hook.d.ts +0 -2
  256. package/lib/init-templates/v2/app/fsharp/cdk.template.json +0 -14
  257. package/lib/init-templates/v2/app/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +0 -8
  258. package/lib/init-templates/v2/app/fsharp/src/%name.PascalCased%/Program.template.fs +0 -11
  259. package/lib/init-templates/v2/app/fsharp/src/%name.PascalCased%.template.sln +0 -18
  260. package/lib/init-templates/v2/app/go/.template.gitignore +0 -19
  261. package/lib/init-templates/v2/app/go/cdk.template.json +0 -13
  262. package/lib/init-templates/v2/app/info.json +0 -4
  263. package/lib/init-templates/v2/app/java/.template.gitignore +0 -13
  264. package/lib/init-templates/v2/app/java/README.md +0 -18
  265. package/lib/init-templates/v2/app/java/cdk.json +0 -13
  266. package/lib/init-templates/v2/app/java/sub-placeholders.hook.d.ts +0 -2
  267. package/lib/init-templates/v2/app/java/sub-placeholders.hook.js +0 -9
  268. package/lib/init-templates/v2/app/javascript/.template.gitignore +0 -5
  269. package/lib/init-templates/v2/app/javascript/.template.npmignore +0 -3
  270. package/lib/init-templates/v2/app/javascript/README.md +0 -12
  271. package/lib/init-templates/v2/app/javascript/cdk.template.json +0 -15
  272. package/lib/init-templates/v2/app/javascript/sub-placeholders.hook.d.ts +0 -2
  273. package/lib/init-templates/v2/app/javascript/sub-placeholders.hook.js +0 -9
  274. package/lib/init-templates/v2/app/python/%name.PythonModule%/__init__.py +0 -0
  275. package/lib/init-templates/v2/app/python/README.template.md +0 -58
  276. package/lib/init-templates/v2/app/python/cdk.template.json +0 -15
  277. package/lib/init-templates/v2/app/python/requirements-dev.txt +0 -1
  278. package/lib/init-templates/v2/app/python/source.bat +0 -13
  279. package/lib/init-templates/v2/app/python/sub-placeholders.hook.d.ts +0 -2
  280. package/lib/init-templates/v2/app/python/tests/__init__.py +0 -0
  281. package/lib/init-templates/v2/app/python/tests/unit/__init__.py +0 -0
  282. package/lib/init-templates/v2/app/typescript/.template.gitignore +0 -8
  283. package/lib/init-templates/v2/app/typescript/.template.npmignore +0 -6
  284. package/lib/init-templates/v2/app/typescript/README.md +0 -14
  285. package/lib/init-templates/v2/app/typescript/cdk.template.json +0 -17
  286. package/lib/init-templates/v2/app/typescript/jest.config.js +0 -8
  287. package/lib/init-templates/v2/app/typescript/sub-placeholders.hook.d.ts +0 -2
  288. package/lib/init-templates/v2/app/typescript/sub-placeholders.hook.js +0 -9
  289. package/lib/init-templates/v2/app/typescript/tsconfig.json +0 -30
  290. package/lib/init-templates/v2/lib/info.json +0 -4
  291. package/lib/init-templates/v2/lib/typescript/.template.gitignore +0 -8
  292. package/lib/init-templates/v2/lib/typescript/.template.npmignore +0 -6
  293. package/lib/init-templates/v2/lib/typescript/jest.config.js +0 -8
  294. package/lib/init-templates/v2/lib/typescript/sub-placeholders.hook.d.ts +0 -2
  295. package/lib/init-templates/v2/lib/typescript/sub-placeholders.hook.js +0 -9
  296. package/lib/init-templates/v2/lib/typescript/tsconfig.json +0 -30
  297. package/lib/init-templates/v2/sample-app/csharp/.template.gitignore +0 -342
  298. package/lib/init-templates/v2/sample-app/csharp/add-project.hook.d.ts +0 -2
  299. package/lib/init-templates/v2/sample-app/csharp/add-project.hook.js +0 -31
  300. package/lib/init-templates/v2/sample-app/csharp/cdk.template.json +0 -15
  301. package/lib/init-templates/v2/sample-app/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +0 -1
  302. package/lib/init-templates/v2/sample-app/csharp/src/%name.PascalCased%/Program.template.cs +0 -15
  303. package/lib/init-templates/v2/sample-app/csharp/src/%name.PascalCased%.template.sln +0 -18
  304. package/lib/init-templates/v2/sample-app/fsharp/.template.gitignore +0 -342
  305. package/lib/init-templates/v2/sample-app/fsharp/README.template.md +0 -20
  306. package/lib/init-templates/v2/sample-app/fsharp/add-project.hook.d.ts +0 -2
  307. package/lib/init-templates/v2/sample-app/fsharp/add-project.hook.js +0 -31
  308. package/lib/init-templates/v2/sample-app/fsharp/cdk.template.json +0 -14
  309. package/lib/init-templates/v2/sample-app/fsharp/src/%name.PascalCased%/Program.template.fs +0 -11
  310. package/lib/init-templates/v2/sample-app/fsharp/src/%name.PascalCased%.template.sln +0 -18
  311. package/lib/init-templates/v2/sample-app/go/.template.gitignore +0 -19
  312. package/lib/init-templates/v2/sample-app/go/cdk.template.json +0 -13
  313. package/lib/init-templates/v2/sample-app/info.json +0 -4
  314. package/lib/init-templates/v2/sample-app/java/.template.gitignore +0 -13
  315. package/lib/init-templates/v2/sample-app/java/cdk.json +0 -13
  316. package/lib/init-templates/v2/sample-app/java/sub-placeholders.hook.d.ts +0 -2
  317. package/lib/init-templates/v2/sample-app/java/sub-placeholders.hook.js +0 -9
  318. package/lib/init-templates/v2/sample-app/javascript/.template.gitignore +0 -5
  319. package/lib/init-templates/v2/sample-app/javascript/.template.npmignore +0 -3
  320. package/lib/init-templates/v2/sample-app/javascript/cdk.template.json +0 -15
  321. package/lib/init-templates/v2/sample-app/javascript/jest.config.js +0 -3
  322. package/lib/init-templates/v2/sample-app/javascript/sub-placeholders.hook.d.ts +0 -2
  323. package/lib/init-templates/v2/sample-app/javascript/sub-placeholders.hook.js +0 -9
  324. package/lib/init-templates/v2/sample-app/javascript/tsconfig.json +0 -35
  325. package/lib/init-templates/v2/sample-app/python/%name.PythonModule%/__init__.py +0 -0
  326. package/lib/init-templates/v2/sample-app/python/.template.gitignore +0 -22
  327. package/lib/init-templates/v2/sample-app/python/cdk.template.json +0 -15
  328. package/lib/init-templates/v2/sample-app/python/requirements-dev.txt +0 -1
  329. package/lib/init-templates/v2/sample-app/python/source.bat +0 -13
  330. package/lib/init-templates/v2/sample-app/python/sub-placeholders.hook.d.ts +0 -2
  331. package/lib/init-templates/v2/sample-app/python/sub-placeholders.hook.js +0 -9
  332. package/lib/init-templates/v2/sample-app/python/tests/__init__.py +0 -0
  333. package/lib/init-templates/v2/sample-app/python/tests/unit/__init__.py +0 -0
  334. package/lib/init-templates/v2/sample-app/typescript/.template.gitignore +0 -8
  335. package/lib/init-templates/v2/sample-app/typescript/.template.npmignore +0 -6
  336. package/lib/init-templates/v2/sample-app/typescript/cdk.template.json +0 -17
  337. package/lib/init-templates/v2/sample-app/typescript/jest.config.js +0 -8
  338. package/lib/init-templates/v2/sample-app/typescript/sub-placeholders.hook.d.ts +0 -2
  339. package/lib/init-templates/v2/sample-app/typescript/sub-placeholders.hook.js +0 -9
  340. package/lib/init-templates/v2/sample-app/typescript/tsconfig.json +0 -30
@@ -1,45 +0,0 @@
1
- using Amazon.CDK;
2
- using System;
3
- using System.Collections.Generic;
4
- using System.Linq;
5
-
6
- namespace %name.PascalCased%
7
- {
8
- sealed class Program
9
- {
10
- public static void Main(string[] args)
11
- {
12
- var app = new App();
13
- new %name.PascalCased%Stack(app, "%name.PascalCased%Stack", new StackProps
14
- {
15
- // If you don't specify 'env', this stack will be environment-agnostic.
16
- // Account/Region-dependent features and context lookups will not work,
17
- // but a single synthesized template can be deployed anywhere.
18
-
19
- // Uncomment the next block to specialize this stack for the AWS Account
20
- // and Region that are implied by the current CLI configuration.
21
- /*
22
- Env = new Amazon.CDK.Environment
23
- {
24
- Account = System.Environment.GetEnvironmentVariable("CDK_DEFAULT_ACCOUNT"),
25
- Region = System.Environment.GetEnvironmentVariable("CDK_DEFAULT_REGION"),
26
- }
27
- */
28
-
29
- // Uncomment the next block if you know exactly what Account and Region you
30
- // want to deploy the stack to.
31
- /*
32
- Env = new Amazon.CDK.Environment
33
- {
34
- Account = "123456789012",
35
- Region = "us-east-1",
36
- }
37
- */
38
-
39
- // For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html
40
- });
41
-
42
- app.Synth();
43
- }
44
- }
45
- }
@@ -1,2 +0,0 @@
1
- import { InvokeHook } from '../../../../init';
2
- export declare const invoke: InvokeHook;
@@ -1,24 +0,0 @@
1
- <Project Sdk="Microsoft.NET.Sdk">
2
-
3
- <PropertyGroup>
4
- <OutputType>Exe</OutputType>
5
- <TargetFramework>netcoreapp3.1</TargetFramework>
6
- <!-- Roll forward to future major versions of the netcoreapp as needed -->
7
- <RollForward>Major</RollForward>
8
- </PropertyGroup>
9
-
10
- <ItemGroup>
11
- <Compile Include="%name.PascalCased%Stack.fs" />
12
- <Compile Include="Program.fs" />
13
- </ItemGroup>
14
-
15
- <ItemGroup>
16
- <!-- CDK Construct Library dependencies -->
17
- <PackageReference Include="Amazon.CDK" Version="%cdk-version%" />
18
-
19
- <!-- jsii Roslyn analyzers (un-comment to obtain compile-time checks for missing required props
20
- <PackageReference Include="Amazon.Jsii.Analyzers" Version="*" PrivateAssets="all" />
21
- -->
22
- </ItemGroup>
23
-
24
- </Project>
@@ -1,68 +0,0 @@
1
- package main
2
-
3
- import (
4
- "github.com/aws/aws-cdk-go/awscdk"
5
- // "github.com/aws/aws-cdk-go/awscdk/awssqs"
6
- "github.com/aws/constructs-go/constructs/v3"
7
- // "github.com/aws/jsii-runtime-go"
8
- )
9
-
10
- type %name.PascalCased%StackProps struct {
11
- awscdk.StackProps
12
- }
13
-
14
- func New%name.PascalCased%Stack(scope constructs.Construct, id string, props *%name.PascalCased%StackProps) awscdk.Stack {
15
- var sprops awscdk.StackProps
16
- if props != nil {
17
- sprops = props.StackProps
18
- }
19
- stack := awscdk.NewStack(scope, &id, &sprops)
20
-
21
- // The code that defines your stack goes here
22
-
23
- // example resource
24
- // queue := awssqs.NewQueue(stack, jsii.String("%name.PascalCased%Queue"), &awssqs.QueueProps{
25
- // VisibilityTimeout: awscdk.Duration_Seconds(jsii.Number(300)),
26
- // })
27
-
28
- return stack
29
- }
30
-
31
- func main() {
32
- app := awscdk.NewApp(nil)
33
-
34
- New%name.PascalCased%Stack(app, "%name.PascalCased%Stack", &%name.PascalCased%StackProps{
35
- awscdk.StackProps{
36
- Env: env(),
37
- },
38
- })
39
-
40
- app.Synth(nil)
41
- }
42
-
43
- // env determines the AWS environment (account+region) in which our stack is to
44
- // be deployed. For more information see: https://docs.aws.amazon.com/cdk/latest/guide/environments.html
45
- func env() *awscdk.Environment {
46
- // If unspecified, this stack will be "environment-agnostic".
47
- // Account/Region-dependent features and context lookups will not work, but a
48
- // single synthesized template can be deployed anywhere.
49
- //---------------------------------------------------------------------------
50
- return nil
51
-
52
- // Uncomment if you know exactly what account and region you want to deploy
53
- // the stack to. This is the recommendation for production stacks.
54
- //---------------------------------------------------------------------------
55
- // return &awscdk.Environment{
56
- // Account: jsii.String("123456789012"),
57
- // Region: jsii.String("us-east-1"),
58
- // }
59
-
60
- // Uncomment to specialize this stack for the AWS Account and Region that are
61
- // implied by the current CLI configuration. This is recommended for dev
62
- // stacks.
63
- //---------------------------------------------------------------------------
64
- // return &awscdk.Environment{
65
- // Account: jsii.String(os.Getenv("CDK_DEFAULT_ACCOUNT")),
66
- // Region: jsii.String(os.Getenv("CDK_DEFAULT_REGION")),
67
- // }
68
- }
@@ -1,26 +0,0 @@
1
- package main
2
-
3
- // import (
4
- // "testing"
5
-
6
- // "github.com/aws/aws-cdk-go/awscdk"
7
- // "github.com/aws/aws-cdk-go/awscdk/assertions"
8
- // "github.com/aws/jsii-runtime-go"
9
- // )
10
-
11
- // example tests. To run these tests, uncomment this file along with the
12
- // example resource in %name%_test.go
13
- // func Test%name.PascalCased%Stack(t *testing.T) {
14
- // // GIVEN
15
- // app := awscdk.NewApp(nil)
16
-
17
- // // WHEN
18
- // stack := New%name.PascalCased%Stack(app, "MyStack", nil)
19
-
20
- // // THEN
21
- // template := assertions.Template_FromStack(stack)
22
-
23
- // template.HasResourceProperties(jsii.String("AWS::SQS::Queue"), map[string]interface{}{
24
- // "VisibilityTimeout": 300,
25
- // })
26
- // }
@@ -1,14 +0,0 @@
1
- # Welcome to your CDK Go project!
2
-
3
- This is a blank project for CDK development with Go.
4
-
5
- **NOTICE**: Go support is still in Developer Preview. This implies that APIs may
6
- change while we address early feedback from the community. We would love to hear
7
- about your experience through GitHub issues.
8
-
9
- ## Useful commands
10
-
11
- * `cdk deploy` deploy this stack to your default AWS account/region
12
- * `cdk diff` compare deployed stack with current state
13
- * `cdk synth` emits the synthesized CloudFormation template
14
- * `go test` run unit tests
@@ -1,9 +0,0 @@
1
- module %name%
2
-
3
- go 1.16
4
-
5
- require (
6
- github.com/aws/aws-cdk-go/awscdk v%cdk-version%-devpreview
7
- github.com/aws/constructs-go/constructs/v3 v3.3.71
8
- github.com/aws/jsii-runtime-go v1.26.0
9
- )
@@ -1,60 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
3
- xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
- <modelVersion>4.0.0</modelVersion>
5
-
6
- <groupId>com.myorg</groupId>
7
- <artifactId>%name%</artifactId>
8
- <version>0.1</version>
9
-
10
- <properties>
11
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12
- <cdk.version>%cdk-version%</cdk.version>
13
- <junit.version>5.7.1</junit.version>
14
- </properties>
15
-
16
- <build>
17
- <plugins>
18
- <plugin>
19
- <groupId>org.apache.maven.plugins</groupId>
20
- <artifactId>maven-compiler-plugin</artifactId>
21
- <version>3.8.1</version>
22
- <configuration>
23
- <source>1.8</source>
24
- <target>1.8</target>
25
- </configuration>
26
- </plugin>
27
-
28
- <plugin>
29
- <groupId>org.codehaus.mojo</groupId>
30
- <artifactId>exec-maven-plugin</artifactId>
31
- <version>3.0.0</version>
32
- <configuration>
33
- <mainClass>com.myorg.%name.PascalCased%App</mainClass>
34
- </configuration>
35
- </plugin>
36
- </plugins>
37
- </build>
38
-
39
- <dependencies>
40
- <!-- AWS Cloud Development Kit -->
41
- <dependency>
42
- <groupId>software.amazon.awscdk</groupId>
43
- <artifactId>core</artifactId>
44
- <version>${cdk.version}</version>
45
- </dependency>
46
- <dependency>
47
- <groupId>software.amazon.awscdk</groupId>
48
- <artifactId>assertions</artifactId>
49
- <version>${cdk.version}</version>
50
- <scope>test</scope>
51
- </dependency>
52
-
53
- <dependency>
54
- <groupId>org.junit.jupiter</groupId>
55
- <artifactId>junit-jupiter</artifactId>
56
- <version>${junit.version}</version>
57
- <scope>test</scope>
58
- </dependency>
59
- </dependencies>
60
- </project>
@@ -1,41 +0,0 @@
1
- package com.myorg;
2
-
3
- import software.amazon.awscdk.core.App;
4
- import software.amazon.awscdk.core.Environment;
5
- import software.amazon.awscdk.core.StackProps;
6
-
7
- import java.util.Arrays;
8
-
9
- public class %name.PascalCased%App {
10
- public static void main(final String[] args) {
11
- App app = new App();
12
-
13
- new %name.PascalCased%Stack(app, "%name.PascalCased%Stack", StackProps.builder()
14
- // If you don't specify 'env', this stack will be environment-agnostic.
15
- // Account/Region-dependent features and context lookups will not work,
16
- // but a single synthesized template can be deployed anywhere.
17
-
18
- // Uncomment the next block to specialize this stack for the AWS Account
19
- // and Region that are implied by the current CLI configuration.
20
- /*
21
- .env(Environment.builder()
22
- .account(System.getenv("CDK_DEFAULT_ACCOUNT"))
23
- .region(System.getenv("CDK_DEFAULT_REGION"))
24
- .build())
25
- */
26
-
27
- // Uncomment the next block if you know exactly what Account and Region you
28
- // want to deploy the stack to.
29
- /*
30
- .env(Environment.builder()
31
- .account("123456789012")
32
- .region("us-east-1")
33
- .build())
34
- */
35
-
36
- // For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html
37
- .build());
38
-
39
- app.synth();
40
- }
41
- }
@@ -1,24 +0,0 @@
1
- package com.myorg;
2
-
3
- import software.amazon.awscdk.core.Construct;
4
- import software.amazon.awscdk.core.Stack;
5
- import software.amazon.awscdk.core.StackProps;
6
- // import software.amazon.awscdk.services.sqs.Queue;
7
- // import software.amazon.awscdk.core.Duration;
8
-
9
- public class %name.PascalCased%Stack extends Stack {
10
- public %name.PascalCased%Stack(final Construct scope, final String id) {
11
- this(scope, id, null);
12
- }
13
-
14
- public %name.PascalCased%Stack(final Construct scope, final String id, final StackProps props) {
15
- super(scope, id, props);
16
-
17
- // The code that defines your stack goes here
18
-
19
- // example resource
20
- // final Queue queue = Queue.Builder.create(this, "%name.PascalCased%Queue")
21
- // .visibilityTimeout(Duration.seconds(300))
22
- // .build();
23
- }
24
- }
@@ -1,26 +0,0 @@
1
- // package com.myorg;
2
-
3
- // import software.amazon.awscdk.core.App;
4
- // import software.amazon.awscdk.assertions.Template;
5
- // import java.io.IOException;
6
-
7
- // import java.util.HashMap;
8
-
9
- // import org.junit.jupiter.api.Test;
10
-
11
- // example test. To run these tests, uncomment this file, along with the
12
- // example resource in java/src/main/java/com/myorg/%name.PascalCased%Stack.java
13
- // public class %name.PascalCased%Test {
14
-
15
- // @Test
16
- // public void testStack() throws IOException {
17
- // App app = new App();
18
- // %name.PascalCased%Stack stack = new %name.PascalCased%Stack(app, "test");
19
-
20
- // Template template = Template.fromStack(stack);
21
-
22
- // template.hasResourceProperties("AWS::SQS::Queue", new HashMap<String, Number>() {{
23
- // put("VisibilityTimeout", 300);
24
- // }});
25
- // }
26
- // }
@@ -1,2 +0,0 @@
1
- import { InvokeHook } from '../../../../init';
2
- export declare const invoke: InvokeHook;
@@ -1,21 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const cdk = require('@aws-cdk/core');
4
- const { %name.PascalCased%Stack } = require('../lib/%name%-stack');
5
-
6
- const app = new cdk.App();
7
- new %name.PascalCased%Stack(app, '%name.PascalCased%Stack', {
8
- /* If you don't specify 'env', this stack will be environment-agnostic.
9
- * Account/Region-dependent features and context lookups will not work,
10
- * but a single synthesized template can be deployed anywhere. */
11
-
12
- /* Uncomment the next line to specialize this stack for the AWS Account
13
- * and Region that are implied by the current CLI configuration. */
14
- // env: { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION },
15
-
16
- /* Uncomment the next line if you know exactly what Account and Region you
17
- * want to deploy the stack to. */
18
- // env: { account: '123456789012', region: 'us-east-1' },
19
-
20
- /* For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html */
21
- });
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- testEnvironment: "node"
3
- }
@@ -1,23 +0,0 @@
1
- const cdk = require('@aws-cdk/core');
2
- // const sqs = require('@aws-cdk/aws-sqs');
3
-
4
- class %name.PascalCased%Stack extends cdk.Stack {
5
- /**
6
- *
7
- * @param {cdk.Construct} scope
8
- * @param {string} id
9
- * @param {cdk.StackProps=} props
10
- */
11
- constructor(scope, id, props) {
12
- super(scope, id, props);
13
-
14
- // The code that defines your stack goes here
15
-
16
- // example resource
17
- // const queue = new sqs.Queue(this, '%name.PascalCased%Queue', {
18
- // visibilityTimeout: cdk.Duration.seconds(300)
19
- // });
20
- }
21
- }
22
-
23
- module.exports = { %name.PascalCased%Stack }
@@ -1,20 +0,0 @@
1
- {
2
- "name": "%name%",
3
- "version": "0.1.0",
4
- "bin": {
5
- "%name%": "bin/%name%.js"
6
- },
7
- "scripts": {
8
- "build": "echo \"The build step is not required when using JavaScript!\" && exit 0",
9
- "cdk": "cdk",
10
- "test": "jest"
11
- },
12
- "devDependencies": {
13
- "@aws-cdk/assertions": "%cdk-version%",
14
- "aws-cdk": "%cdk-version%",
15
- "jest": "^27.5.1"
16
- },
17
- "dependencies": {
18
- "@aws-cdk/core": "%cdk-version%"
19
- }
20
- }
@@ -1,2 +0,0 @@
1
- import { InvokeHook } from '../../../../init';
2
- export declare const invoke: InvokeHook;
@@ -1,18 +0,0 @@
1
- // const { Template } = require('@aws-cdk/assertions');
2
- // const cdk = require('@aws-cdk/core');
3
- // const %name.PascalCased% = require('../lib/%name%-stack');
4
-
5
- // example test. To run these tests, uncomment this file along with the
6
- // example resource in lib/%name%-stack.js
7
- test('SQS Queue Created', () => {
8
- // const app = new cdk.App();
9
- // // WHEN
10
- // const stack = new %name.PascalCased%.%name.PascalCased%Stack(app, 'MyTestStack');
11
- // // THEN
12
- // const template = Template.fromStack(stack);
13
-
14
- // template.hasResourceProperties('AWS::SQS::Queue', {
15
- // VisibilityTimeout: 300
16
- // });
17
- });
18
-
@@ -1,24 +0,0 @@
1
- from aws_cdk import (
2
- core as cdk
3
- # aws_sqs as sqs,
4
- )
5
-
6
- # For consistency with other languages, `cdk` is the preferred import name for
7
- # the CDK's core module. The following line also imports it as `core` for use
8
- # with examples from the CDK Developer's Guide, which are in the process of
9
- # being updated to use `cdk`. You may delete this import if you don't need it.
10
- from aws_cdk import core
11
-
12
-
13
- class %name.PascalCased%Stack(cdk.Stack):
14
-
15
- def __init__(self, scope: cdk.Construct, construct_id: str, **kwargs) -> None:
16
- super().__init__(scope, construct_id, **kwargs)
17
-
18
- # The code that defines your stack goes here
19
-
20
- # example resource
21
- # queue = sqs.Queue(
22
- # self, "%name.PascalCased%Queue",
23
- # visibility_timeout=cdk.Duration.seconds(300),
24
- # )
@@ -1,11 +0,0 @@
1
- *.swp
2
- package-lock.json
3
- __pycache__
4
- .pytest_cache
5
- .env
6
- .venv
7
- *.egg-info
8
-
9
- # CDK asset staging directory
10
- .cdk.staging
11
- cdk.out
@@ -1,34 +0,0 @@
1
- #!/usr/bin/env python3
2
- import os
3
-
4
- from aws_cdk import core as cdk
5
-
6
- # For consistency with TypeScript code, `cdk` is the preferred import name for
7
- # the CDK's core module. The following line also imports it as `core` for use
8
- # with examples from the CDK Developer's Guide, which are in the process of
9
- # being updated to use `cdk`. You may delete this import if you don't need it.
10
- from aws_cdk import core
11
-
12
- from %name.PythonModule%.%name.PythonModule%_stack import %name.PascalCased%Stack
13
-
14
-
15
- app = core.App()
16
- %name.PascalCased%Stack(app, "%name.PascalCased%Stack",
17
- # If you don't specify 'env', this stack will be environment-agnostic.
18
- # Account/Region-dependent features and context lookups will not work,
19
- # but a single synthesized template can be deployed anywhere.
20
-
21
- # Uncomment the next line to specialize this stack for the AWS Account
22
- # and Region that are implied by the current CLI configuration.
23
-
24
- #env=core.Environment(account=os.getenv('CDK_DEFAULT_ACCOUNT'), region=os.getenv('CDK_DEFAULT_REGION')),
25
-
26
- # Uncomment the next line if you know exactly what Account and Region you
27
- # want to deploy the stack to. */
28
-
29
- #env=core.Environment(account='123456789012', region='us-east-1'),
30
-
31
- # For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html
32
- )
33
-
34
- app.synth()
@@ -1,2 +0,0 @@
1
- aws-cdk.core>=%cdk-version%
2
- aws-cdk.assertions>=%cdk-version%
@@ -1,2 +0,0 @@
1
- import { InvokeHook } from '../../../../init';
2
- export declare const invoke: InvokeHook;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.invoke = void 0;
4
- exports.invoke = async (_, context) => {
5
- // File cannot be named like regular template because it needs to be
6
- // processed by dependency updaters.
7
- await context.substitutePlaceholdersIn('requirements.txt');
8
- };
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ViLXBsYWNlaG9sZGVycy5ob29rLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsic3ViLXBsYWNlaG9sZGVycy5ob29rLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVhLFFBQUEsTUFBTSxHQUFlLEtBQUssRUFBRSxDQUFDLEVBQUUsT0FBTyxFQUFFLEVBQUU7SUFDckQsb0VBQW9FO0lBQ3BFLG9DQUFvQztJQUNwQyxNQUFNLE9BQU8sQ0FBQyx3QkFBd0IsQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDO0FBQzdELENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEludm9rZUhvb2sgfSBmcm9tICcuLi8uLi8uLi8uLi9pbml0JztcblxuZXhwb3J0IGNvbnN0IGludm9rZTogSW52b2tlSG9vayA9IGFzeW5jIChfLCBjb250ZXh0KSA9PiB7XG4gIC8vIEZpbGUgY2Fubm90IGJlIG5hbWVkIGxpa2UgcmVndWxhciB0ZW1wbGF0ZSBiZWNhdXNlIGl0IG5lZWRzIHRvIGJlXG4gIC8vIHByb2Nlc3NlZCBieSBkZXBlbmRlbmN5IHVwZGF0ZXJzLlxuICBhd2FpdCBjb250ZXh0LnN1YnN0aXR1dGVQbGFjZWhvbGRlcnNJbigncmVxdWlyZW1lbnRzLnR4dCcpO1xufTtcbiJdfQ==
@@ -1,19 +0,0 @@
1
- # from aws_cdk import (
2
- # core,
3
- # assertions
4
- # )
5
-
6
- # from %name.PythonModule%.%name.PythonModule%_stack import %name.PascalCased%Stack
7
-
8
-
9
- # example tests. To run these tests, uncomment this file along with the example
10
- # resource in %name.PythonModule%/%name.PythonModule%_stack.py
11
- def test_sqs_queue_created():
12
- # app = core.App()
13
- # stack = %name.PascalCased%Stack(app, "%name.StackName%")
14
- # template = assertions.Template.from_stack(stack)
15
-
16
- # template.has_resource_properties("AWS::SQS::Queue", {
17
- # "VisibilityTimeout": 300
18
- # })
19
- pass
@@ -1,21 +0,0 @@
1
- #!/usr/bin/env node
2
- import 'source-map-support/register';
3
- import * as cdk from '@aws-cdk/core';
4
- import { %name.PascalCased%Stack } from '../lib/%name%-stack';
5
-
6
- const app = new cdk.App();
7
- new %name.PascalCased%Stack(app, '%name.PascalCased%Stack', {
8
- /* If you don't specify 'env', this stack will be environment-agnostic.
9
- * Account/Region-dependent features and context lookups will not work,
10
- * but a single synthesized template can be deployed anywhere. */
11
-
12
- /* Uncomment the next line to specialize this stack for the AWS Account
13
- * and Region that are implied by the current CLI configuration. */
14
- // env: { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION },
15
-
16
- /* Uncomment the next line if you know exactly what Account and Region you
17
- * want to deploy the stack to. */
18
- // env: { account: '123456789012', region: 'us-east-1' },
19
-
20
- /* For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html */
21
- });
@@ -1,15 +0,0 @@
1
- import * as cdk from '@aws-cdk/core';
2
- // import * as sqs from '@aws-cdk/aws-sqs';
3
-
4
- export class %name.PascalCased%Stack extends cdk.Stack {
5
- constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
6
- super(scope, id, props);
7
-
8
- // The code that defines your stack goes here
9
-
10
- // example resource
11
- // const queue = new sqs.Queue(this, '%name.PascalCased%Queue', {
12
- // visibilityTimeout: cdk.Duration.seconds(300)
13
- // });
14
- }
15
- }
@@ -1,28 +0,0 @@
1
- {
2
- "name": "%name%",
3
- "version": "0.1.0",
4
- "bin": {
5
- "%name%": "bin/%name%.js"
6
- },
7
- "scripts": {
8
- "build": "tsc",
9
- "watch": "tsc -w",
10
- "test": "jest",
11
- "cdk": "cdk"
12
- },
13
- "devDependencies": {
14
- "@aws-cdk/assertions": "%cdk-version%",
15
- "@types/prettier": "2.6.0",
16
- "@types/jest": "^27.5.2",
17
- "@types/node": "10.17.27",
18
- "jest": "^27.5.1",
19
- "ts-jest": "^27.1.4",
20
- "aws-cdk": "%cdk-version%",
21
- "ts-node": "^10.8.1",
22
- "typescript": "~3.9.7"
23
- },
24
- "dependencies": {
25
- "@aws-cdk/core": "%cdk-version%",
26
- "source-map-support": "^0.5.21"
27
- }
28
- }
@@ -1,2 +0,0 @@
1
- import { InvokeHook } from '../../../../init';
2
- export declare const invoke: InvokeHook;
@@ -1,17 +0,0 @@
1
- // import { Template } from '@aws-cdk/assertions';
2
- // import * as cdk from '@aws-cdk/core';
3
- // import * as %name.PascalCased% from '../lib/%name%-stack';
4
-
5
- // example test. To run these tests, uncomment this file along with the
6
- // example resource in lib/%name%-stack.ts
7
- test('SQS Queue Created', () => {
8
- // const app = new cdk.App();
9
- // // WHEN
10
- // const stack = new %name.PascalCased%.%name.PascalCased%Stack(app, 'MyTestStack');
11
- // // THEN
12
- // const template = Template.fromStack(stack);
13
-
14
- // template.hasResourceProperties('AWS::SQS::Queue', {
15
- // VisibilityTimeout: 300
16
- // });
17
- });