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.
- package/CONTRIBUTING.md +29 -0
- package/README.md +7 -6
- package/build-info.json +2 -2
- package/lib/cli.js +4 -3
- package/lib/commands/context.js +67 -7
- package/lib/index.js +321 -134
- package/lib/init-templates/{v1/app → app}/csharp/.template.gitignore +0 -0
- package/lib/init-templates/{v1/app → app}/csharp/README.md +0 -0
- package/lib/init-templates/app/csharp/add-project.hook.d.ts +2 -0
- package/lib/init-templates/{v2/app → app}/csharp/add-project.hook.js +1 -1
- package/lib/init-templates/{v1/app → app}/csharp/cdk.template.json +0 -0
- package/lib/init-templates/{v2/app → app}/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +0 -0
- package/lib/init-templates/{v2/app → app}/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +0 -0
- package/lib/init-templates/{v1/app → app}/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +0 -0
- package/lib/init-templates/{v2/app → app}/csharp/src/%name.PascalCased%/Program.template.cs +0 -0
- package/lib/init-templates/{v1/app → app}/csharp/src/%name.PascalCased%.template.sln +0 -0
- package/lib/init-templates/{v1/app → app}/fsharp/.template.gitignore +0 -0
- package/lib/init-templates/{v1/app → app}/fsharp/README.md +0 -0
- package/lib/init-templates/app/fsharp/add-project.hook.d.ts +2 -0
- package/lib/init-templates/{v1/app → app}/fsharp/add-project.hook.js +1 -1
- package/lib/init-templates/{v1/app → app}/fsharp/cdk.template.json +0 -0
- package/lib/init-templates/{v2/app → app}/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +0 -0
- package/lib/init-templates/{v1/app → app}/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +0 -0
- package/lib/init-templates/{v1/app → app}/fsharp/src/%name.PascalCased%/Program.template.fs +0 -0
- package/lib/init-templates/{v1/app → app}/fsharp/src/%name.PascalCased%.template.sln +0 -0
- package/lib/init-templates/{v2/app → app}/go/%name%.template.go +0 -0
- package/lib/init-templates/{v2/app → app}/go/%name%_test.template.go +0 -0
- package/lib/init-templates/{v1/app → app}/go/.template.gitignore +0 -0
- package/lib/init-templates/{v2/app → app}/go/README.md +1 -3
- package/lib/init-templates/{v1/app → app}/go/cdk.template.json +0 -0
- package/lib/init-templates/{v2/app → app}/go/go.template.mod +0 -0
- package/lib/init-templates/{v1/app → app}/info.json +0 -0
- package/lib/init-templates/{v1/app → app}/java/.template.gitignore +0 -0
- package/lib/init-templates/{v1/app → app}/java/README.md +0 -0
- package/lib/init-templates/{v1/app → app}/java/cdk.json +0 -0
- package/lib/init-templates/{v2/app → app}/java/pom.xml +0 -0
- package/lib/init-templates/{v2/app → app}/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +0 -0
- package/lib/init-templates/{v2/app → app}/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +0 -0
- package/lib/init-templates/{v2/app → app}/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java +0 -0
- package/lib/init-templates/app/java/sub-placeholders.hook.d.ts +2 -0
- package/lib/init-templates/{v1/app → app}/java/sub-placeholders.hook.js +1 -1
- package/lib/init-templates/{v1/app → app}/javascript/.template.gitignore +0 -0
- package/lib/init-templates/{v1/app → app}/javascript/.template.npmignore +0 -0
- package/lib/init-templates/{v1/app → app}/javascript/README.md +0 -0
- package/lib/init-templates/{v2/app → app}/javascript/bin/%name%.template.js +0 -0
- package/lib/init-templates/{v1/app → app}/javascript/cdk.template.json +0 -0
- package/lib/init-templates/{v1/sample-app → app}/javascript/jest.config.js +0 -0
- package/lib/init-templates/{v2/app → app}/javascript/lib/%name%-stack.template.js +0 -0
- package/lib/init-templates/{v2/app → app}/javascript/package.json +0 -0
- package/lib/init-templates/app/javascript/sub-placeholders.hook.d.ts +2 -0
- package/lib/init-templates/{v1/sample-app → app}/javascript/sub-placeholders.hook.js +1 -1
- package/lib/init-templates/{v2/app → app}/javascript/test/%name%.test.template.js +0 -0
- package/lib/init-templates/{v2/app → app}/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +0 -0
- package/lib/init-templates/{v1/app → app}/python/%name.PythonModule%/__init__.py +0 -0
- package/lib/init-templates/{v2/app → app}/python/.template.gitignore +0 -0
- package/lib/init-templates/{v1/app → app}/python/README.template.md +0 -0
- package/lib/init-templates/{v2/app → app}/python/app.template.py +0 -0
- package/lib/init-templates/{v1/app → app}/python/cdk.template.json +0 -0
- package/lib/init-templates/{v1/app → app}/python/requirements-dev.txt +0 -0
- package/lib/init-templates/{v2/app → app}/python/requirements.txt +0 -0
- package/lib/init-templates/{v1/app → app}/python/source.bat +0 -0
- package/lib/init-templates/app/python/sub-placeholders.hook.d.ts +2 -0
- package/lib/init-templates/{v1/sample-app → app}/python/sub-placeholders.hook.js +1 -1
- package/lib/init-templates/{v1/app → app}/python/tests/__init__.py +0 -0
- package/lib/init-templates/{v1/app → app}/python/tests/unit/__init__.py +0 -0
- package/lib/init-templates/{v2/app → app}/python/tests/unit/test_%name.PythonModule%_stack.template.py +0 -0
- package/lib/init-templates/{v1/app → app}/typescript/.template.gitignore +0 -0
- package/lib/init-templates/{v1/app → app}/typescript/.template.npmignore +0 -0
- package/lib/init-templates/{v1/app → app}/typescript/README.md +0 -0
- package/lib/init-templates/{v2/app → app}/typescript/bin/%name%.template.ts +0 -0
- package/lib/init-templates/{v1/app → app}/typescript/cdk.template.json +0 -0
- package/lib/init-templates/{v1/app → app}/typescript/jest.config.js +0 -0
- package/lib/init-templates/{v2/app → app}/typescript/lib/%name%-stack.template.ts +0 -0
- package/lib/init-templates/{v2/app → app}/typescript/package.json +0 -0
- package/lib/init-templates/app/typescript/sub-placeholders.hook.d.ts +2 -0
- package/lib/init-templates/{v1/app/javascript → app/typescript}/sub-placeholders.hook.js +1 -1
- package/lib/init-templates/{v2/app → app}/typescript/test/%name%.test.template.ts +0 -0
- package/lib/init-templates/{v1/app → app}/typescript/tsconfig.json +0 -0
- package/lib/init-templates/{v1/lib → lib}/info.json +0 -0
- package/lib/init-templates/{v1/lib → lib}/typescript/.template.gitignore +0 -0
- package/lib/init-templates/{v1/lib → lib}/typescript/.template.npmignore +0 -0
- package/lib/init-templates/{v2/lib → lib}/typescript/README.template.md +0 -0
- package/lib/init-templates/{v1/lib → lib}/typescript/jest.config.js +0 -0
- package/lib/init-templates/{v2/lib → lib}/typescript/lib/index.template.ts +0 -0
- package/lib/init-templates/{v2/lib → lib}/typescript/package.json +0 -0
- package/lib/init-templates/lib/typescript/sub-placeholders.hook.d.ts +2 -0
- package/lib/init-templates/{v1/lib → lib}/typescript/sub-placeholders.hook.js +1 -1
- package/lib/init-templates/{v2/lib → lib}/typescript/test/%name%.test.template.ts +0 -0
- package/lib/init-templates/{v1/lib → lib}/typescript/tsconfig.json +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/csharp/.template.gitignore +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/csharp/README.template.md +0 -0
- package/lib/init-templates/sample-app/csharp/add-project.hook.d.ts +2 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/csharp/add-project.hook.js +1 -1
- package/lib/init-templates/{v1/sample-app → sample-app}/csharp/cdk.template.json +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/csharp/src/%name.PascalCased%/Program.template.cs +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/csharp/src/%name.PascalCased%.template.sln +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/fsharp/.template.gitignore +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/fsharp/README.template.md +0 -0
- package/lib/init-templates/sample-app/fsharp/add-project.hook.d.ts +2 -0
- package/lib/init-templates/{v2/app → sample-app}/fsharp/add-project.hook.js +1 -1
- package/lib/init-templates/{v1/sample-app → sample-app}/fsharp/cdk.template.json +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +1 -1
- package/lib/init-templates/{v1/sample-app → sample-app}/fsharp/src/%name.PascalCased%/Program.template.fs +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/fsharp/src/%name.PascalCased%.template.sln +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/go/%name%.template.go +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/go/%name%_test.template.go +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/go/.template.gitignore +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/go/README.md +1 -3
- package/lib/init-templates/{v1/sample-app → sample-app}/go/cdk.template.json +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/go/go.template.mod +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/info.json +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/java/.template.gitignore +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/java/README.template.md +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/java/cdk.json +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/java/pom.xml +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/java/src/test/java/com/myorg/%name.PascalCased%StackTest.template.java +0 -0
- package/lib/init-templates/sample-app/java/sub-placeholders.hook.d.ts +2 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/java/sub-placeholders.hook.js +1 -1
- package/lib/init-templates/{v1/sample-app → sample-app}/javascript/.template.gitignore +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/javascript/.template.npmignore +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/javascript/README.template.md +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/javascript/bin/%name%.template.js +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/javascript/cdk.template.json +0 -0
- package/lib/init-templates/{v2/app → sample-app}/javascript/jest.config.js +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/javascript/lib/%name%-stack.template.js +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/javascript/package.json +0 -0
- package/lib/init-templates/sample-app/javascript/sub-placeholders.hook.d.ts +2 -0
- package/lib/init-templates/{v1/app/typescript → sample-app/javascript}/sub-placeholders.hook.js +1 -1
- package/lib/init-templates/{v2/sample-app → sample-app}/javascript/test/%name%.test.template.js +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/javascript/tsconfig.json +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/python/%name.PythonModule%/__init__.py +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/python/.template.gitignore +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/python/README.template.md +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/python/app.template.py +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/python/cdk.template.json +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/python/requirements-dev.txt +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/python/requirements.txt +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/python/source.bat +0 -0
- package/lib/init-templates/sample-app/python/sub-placeholders.hook.d.ts +2 -0
- package/lib/init-templates/{v2/app → sample-app}/python/sub-placeholders.hook.js +1 -1
- package/lib/init-templates/{v1/sample-app → sample-app}/python/tests/__init__.py +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/python/tests/unit/__init__.py +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/python/tests/unit/test_%name.PythonModule%_stack.template.py +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/typescript/.template.gitignore +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/typescript/.template.npmignore +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/typescript/README.template.md +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/typescript/bin/%name%.template.ts +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/typescript/cdk.template.json +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/typescript/jest.config.js +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/typescript/lib/%name%-stack.template.ts +0 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/typescript/package.json +0 -0
- package/lib/init-templates/sample-app/typescript/sub-placeholders.hook.d.ts +2 -0
- package/lib/init-templates/sample-app/typescript/sub-placeholders.hook.js +9 -0
- package/lib/init-templates/{v2/sample-app → sample-app}/typescript/test/%name%.test.template.ts +0 -0
- package/lib/init-templates/{v1/sample-app → sample-app}/typescript/tsconfig.json +0 -0
- package/lib/init.js +3 -16
- package/lib/util/directories.d.ts +11 -0
- package/lib/util/directories.js +19 -2
- package/package.json +9 -9
- package/test/api/deploy-stack.test.js +2 -2
- package/test/commands/context-command.test.js +186 -47
- package/test/init.test.js +50 -56
- package/test/integ/cli/cli.integtest.js +30 -1
- package/lib/init-templates/v1/app/csharp/add-project.hook.d.ts +0 -2
- package/lib/init-templates/v1/app/csharp/add-project.hook.js +0 -31
- package/lib/init-templates/v1/app/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +0 -19
- package/lib/init-templates/v1/app/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +0 -12
- package/lib/init-templates/v1/app/csharp/src/%name.PascalCased%/Program.template.cs +0 -45
- package/lib/init-templates/v1/app/fsharp/add-project.hook.d.ts +0 -2
- package/lib/init-templates/v1/app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +0 -24
- package/lib/init-templates/v1/app/go/%name%.template.go +0 -68
- package/lib/init-templates/v1/app/go/%name%_test.template.go +0 -26
- package/lib/init-templates/v1/app/go/README.md +0 -14
- package/lib/init-templates/v1/app/go/go.template.mod +0 -9
- package/lib/init-templates/v1/app/java/pom.xml +0 -60
- package/lib/init-templates/v1/app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +0 -41
- package/lib/init-templates/v1/app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +0 -24
- package/lib/init-templates/v1/app/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java +0 -26
- package/lib/init-templates/v1/app/java/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v1/app/javascript/bin/%name%.template.js +0 -21
- package/lib/init-templates/v1/app/javascript/jest.config.js +0 -3
- package/lib/init-templates/v1/app/javascript/lib/%name%-stack.template.js +0 -23
- package/lib/init-templates/v1/app/javascript/package.json +0 -20
- package/lib/init-templates/v1/app/javascript/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v1/app/javascript/test/%name%.test.template.js +0 -18
- package/lib/init-templates/v1/app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +0 -24
- package/lib/init-templates/v1/app/python/.template.gitignore +0 -11
- package/lib/init-templates/v1/app/python/app.template.py +0 -34
- package/lib/init-templates/v1/app/python/requirements.txt +0 -2
- package/lib/init-templates/v1/app/python/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v1/app/python/sub-placeholders.hook.js +0 -9
- package/lib/init-templates/v1/app/python/tests/unit/test_%name.PythonModule%_stack.template.py +0 -19
- package/lib/init-templates/v1/app/typescript/bin/%name%.template.ts +0 -21
- package/lib/init-templates/v1/app/typescript/lib/%name%-stack.template.ts +0 -15
- package/lib/init-templates/v1/app/typescript/package.json +0 -28
- package/lib/init-templates/v1/app/typescript/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v1/app/typescript/test/%name%.test.template.ts +0 -17
- package/lib/init-templates/v1/lib/typescript/README.template.md +0 -12
- package/lib/init-templates/v1/lib/typescript/lib/index.template.ts +0 -20
- package/lib/init-templates/v1/lib/typescript/package.json +0 -26
- package/lib/init-templates/v1/lib/typescript/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v1/lib/typescript/test/%name%.test.template.ts +0 -18
- package/lib/init-templates/v1/sample-app/csharp/README.template.md +0 -22
- package/lib/init-templates/v1/sample-app/csharp/add-project.hook.d.ts +0 -2
- package/lib/init-templates/v1/sample-app/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +0 -23
- package/lib/init-templates/v1/sample-app/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +0 -23
- package/lib/init-templates/v1/sample-app/fsharp/add-project.hook.d.ts +0 -2
- package/lib/init-templates/v1/sample-app/fsharp/add-project.hook.js +0 -31
- package/lib/init-templates/v1/sample-app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +0 -27
- package/lib/init-templates/v1/sample-app/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +0 -14
- package/lib/init-templates/v1/sample-app/go/%name%.template.go +0 -71
- package/lib/init-templates/v1/sample-app/go/%name%_test.template.go +0 -25
- package/lib/init-templates/v1/sample-app/go/README.md +0 -14
- package/lib/init-templates/v1/sample-app/go/go.template.mod +0 -9
- package/lib/init-templates/v1/sample-app/java/README.template.md +0 -23
- package/lib/init-templates/v1/sample-app/java/pom.xml +0 -72
- package/lib/init-templates/v1/sample-app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +0 -13
- package/lib/init-templates/v1/sample-app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +0 -29
- package/lib/init-templates/v1/sample-app/java/src/test/java/com/myorg/%name.PascalCased%StackTest.template.java +0 -26
- package/lib/init-templates/v1/sample-app/java/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v1/sample-app/javascript/README.template.md +0 -17
- package/lib/init-templates/v1/sample-app/javascript/bin/%name%.template.js +0 -6
- package/lib/init-templates/v1/sample-app/javascript/lib/%name%-stack.template.js +0 -25
- package/lib/init-templates/v1/sample-app/javascript/package.json +0 -23
- package/lib/init-templates/v1/sample-app/javascript/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v1/sample-app/javascript/test/%name%.test.template.js +0 -25
- package/lib/init-templates/v1/sample-app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +0 -24
- package/lib/init-templates/v1/sample-app/python/README.template.md +0 -68
- package/lib/init-templates/v1/sample-app/python/app.template.py +0 -11
- package/lib/init-templates/v1/sample-app/python/requirements.txt +0 -7
- package/lib/init-templates/v1/sample-app/python/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v1/sample-app/python/tests/unit/test_%name.PythonModule%_stack.template.py +0 -24
- package/lib/init-templates/v1/sample-app/typescript/README.template.md +0 -19
- package/lib/init-templates/v1/sample-app/typescript/bin/%name%.template.ts +0 -6
- package/lib/init-templates/v1/sample-app/typescript/lib/%name%-stack.template.ts +0 -18
- package/lib/init-templates/v1/sample-app/typescript/package.json +0 -30
- package/lib/init-templates/v1/sample-app/typescript/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v1/sample-app/typescript/sub-placeholders.hook.js +0 -9
- package/lib/init-templates/v1/sample-app/typescript/test/%name%.test.template.ts +0 -25
- package/lib/init-templates/v2/app/csharp/.template.gitignore +0 -342
- package/lib/init-templates/v2/app/csharp/README.md +0 -14
- package/lib/init-templates/v2/app/csharp/add-project.hook.d.ts +0 -2
- package/lib/init-templates/v2/app/csharp/cdk.template.json +0 -15
- package/lib/init-templates/v2/app/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +0 -1
- package/lib/init-templates/v2/app/csharp/src/%name.PascalCased%.template.sln +0 -18
- package/lib/init-templates/v2/app/fsharp/.template.gitignore +0 -342
- package/lib/init-templates/v2/app/fsharp/README.md +0 -18
- package/lib/init-templates/v2/app/fsharp/add-project.hook.d.ts +0 -2
- package/lib/init-templates/v2/app/fsharp/cdk.template.json +0 -14
- package/lib/init-templates/v2/app/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +0 -8
- package/lib/init-templates/v2/app/fsharp/src/%name.PascalCased%/Program.template.fs +0 -11
- package/lib/init-templates/v2/app/fsharp/src/%name.PascalCased%.template.sln +0 -18
- package/lib/init-templates/v2/app/go/.template.gitignore +0 -19
- package/lib/init-templates/v2/app/go/cdk.template.json +0 -13
- package/lib/init-templates/v2/app/info.json +0 -4
- package/lib/init-templates/v2/app/java/.template.gitignore +0 -13
- package/lib/init-templates/v2/app/java/README.md +0 -18
- package/lib/init-templates/v2/app/java/cdk.json +0 -13
- package/lib/init-templates/v2/app/java/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v2/app/java/sub-placeholders.hook.js +0 -9
- package/lib/init-templates/v2/app/javascript/.template.gitignore +0 -5
- package/lib/init-templates/v2/app/javascript/.template.npmignore +0 -3
- package/lib/init-templates/v2/app/javascript/README.md +0 -12
- package/lib/init-templates/v2/app/javascript/cdk.template.json +0 -15
- package/lib/init-templates/v2/app/javascript/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v2/app/javascript/sub-placeholders.hook.js +0 -9
- package/lib/init-templates/v2/app/python/%name.PythonModule%/__init__.py +0 -0
- package/lib/init-templates/v2/app/python/README.template.md +0 -58
- package/lib/init-templates/v2/app/python/cdk.template.json +0 -15
- package/lib/init-templates/v2/app/python/requirements-dev.txt +0 -1
- package/lib/init-templates/v2/app/python/source.bat +0 -13
- package/lib/init-templates/v2/app/python/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v2/app/python/tests/__init__.py +0 -0
- package/lib/init-templates/v2/app/python/tests/unit/__init__.py +0 -0
- package/lib/init-templates/v2/app/typescript/.template.gitignore +0 -8
- package/lib/init-templates/v2/app/typescript/.template.npmignore +0 -6
- package/lib/init-templates/v2/app/typescript/README.md +0 -14
- package/lib/init-templates/v2/app/typescript/cdk.template.json +0 -17
- package/lib/init-templates/v2/app/typescript/jest.config.js +0 -8
- package/lib/init-templates/v2/app/typescript/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v2/app/typescript/sub-placeholders.hook.js +0 -9
- package/lib/init-templates/v2/app/typescript/tsconfig.json +0 -30
- package/lib/init-templates/v2/lib/info.json +0 -4
- package/lib/init-templates/v2/lib/typescript/.template.gitignore +0 -8
- package/lib/init-templates/v2/lib/typescript/.template.npmignore +0 -6
- package/lib/init-templates/v2/lib/typescript/jest.config.js +0 -8
- package/lib/init-templates/v2/lib/typescript/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v2/lib/typescript/sub-placeholders.hook.js +0 -9
- package/lib/init-templates/v2/lib/typescript/tsconfig.json +0 -30
- package/lib/init-templates/v2/sample-app/csharp/.template.gitignore +0 -342
- package/lib/init-templates/v2/sample-app/csharp/add-project.hook.d.ts +0 -2
- package/lib/init-templates/v2/sample-app/csharp/add-project.hook.js +0 -31
- package/lib/init-templates/v2/sample-app/csharp/cdk.template.json +0 -15
- package/lib/init-templates/v2/sample-app/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +0 -1
- package/lib/init-templates/v2/sample-app/csharp/src/%name.PascalCased%/Program.template.cs +0 -15
- package/lib/init-templates/v2/sample-app/csharp/src/%name.PascalCased%.template.sln +0 -18
- package/lib/init-templates/v2/sample-app/fsharp/.template.gitignore +0 -342
- package/lib/init-templates/v2/sample-app/fsharp/README.template.md +0 -20
- package/lib/init-templates/v2/sample-app/fsharp/add-project.hook.d.ts +0 -2
- package/lib/init-templates/v2/sample-app/fsharp/add-project.hook.js +0 -31
- package/lib/init-templates/v2/sample-app/fsharp/cdk.template.json +0 -14
- package/lib/init-templates/v2/sample-app/fsharp/src/%name.PascalCased%/Program.template.fs +0 -11
- package/lib/init-templates/v2/sample-app/fsharp/src/%name.PascalCased%.template.sln +0 -18
- package/lib/init-templates/v2/sample-app/go/.template.gitignore +0 -19
- package/lib/init-templates/v2/sample-app/go/cdk.template.json +0 -13
- package/lib/init-templates/v2/sample-app/info.json +0 -4
- package/lib/init-templates/v2/sample-app/java/.template.gitignore +0 -13
- package/lib/init-templates/v2/sample-app/java/cdk.json +0 -13
- package/lib/init-templates/v2/sample-app/java/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v2/sample-app/java/sub-placeholders.hook.js +0 -9
- package/lib/init-templates/v2/sample-app/javascript/.template.gitignore +0 -5
- package/lib/init-templates/v2/sample-app/javascript/.template.npmignore +0 -3
- package/lib/init-templates/v2/sample-app/javascript/cdk.template.json +0 -15
- package/lib/init-templates/v2/sample-app/javascript/jest.config.js +0 -3
- package/lib/init-templates/v2/sample-app/javascript/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v2/sample-app/javascript/sub-placeholders.hook.js +0 -9
- package/lib/init-templates/v2/sample-app/javascript/tsconfig.json +0 -35
- package/lib/init-templates/v2/sample-app/python/%name.PythonModule%/__init__.py +0 -0
- package/lib/init-templates/v2/sample-app/python/.template.gitignore +0 -22
- package/lib/init-templates/v2/sample-app/python/cdk.template.json +0 -15
- package/lib/init-templates/v2/sample-app/python/requirements-dev.txt +0 -1
- package/lib/init-templates/v2/sample-app/python/source.bat +0 -13
- package/lib/init-templates/v2/sample-app/python/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v2/sample-app/python/sub-placeholders.hook.js +0 -9
- package/lib/init-templates/v2/sample-app/python/tests/__init__.py +0 -0
- package/lib/init-templates/v2/sample-app/python/tests/unit/__init__.py +0 -0
- package/lib/init-templates/v2/sample-app/typescript/.template.gitignore +0 -8
- package/lib/init-templates/v2/sample-app/typescript/.template.npmignore +0 -6
- package/lib/init-templates/v2/sample-app/typescript/cdk.template.json +0 -17
- package/lib/init-templates/v2/sample-app/typescript/jest.config.js +0 -8
- package/lib/init-templates/v2/sample-app/typescript/sub-placeholders.hook.d.ts +0 -2
- package/lib/init-templates/v2/sample-app/typescript/sub-placeholders.hook.js +0 -9
- 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
|
-
}
|
package/lib/init-templates/v1/app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj
DELETED
|
@@ -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,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>
|
package/lib/init-templates/v1/app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java
DELETED
|
@@ -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
|
-
}
|
package/lib/init-templates/v1/app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java
DELETED
|
@@ -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
|
-
}
|
package/lib/init-templates/v1/app/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java
DELETED
|
@@ -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,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,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,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
|
-
|
package/lib/init-templates/v1/app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py
DELETED
|
@@ -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,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,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==
|
package/lib/init-templates/v1/app/python/tests/unit/test_%name.PythonModule%_stack.template.py
DELETED
|
@@ -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,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
|
-
});
|