aws-cdk 0.0.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 +276 -0
- package/LICENSE +202 -0
- package/NOTICE +16 -0
- package/README.md +1274 -0
- package/THIRD_PARTY_LICENSES +26821 -0
- package/bin/cdk +6 -0
- package/build-info.json +4 -0
- package/db.json.gz +0 -0
- package/generate.sh +25 -0
- package/images/garbage-collection.png +0 -0
- package/lib/api/aws-auth/account-cache.d.ts +39 -0
- package/lib/api/aws-auth/account-cache.js +102 -0
- package/lib/api/aws-auth/awscli-compatible.d.ts +42 -0
- package/lib/api/aws-auth/awscli-compatible.js +264 -0
- package/lib/api/aws-auth/cached.d.ts +11 -0
- package/lib/api/aws-auth/cached.js +26 -0
- package/lib/api/aws-auth/credential-plugins.d.ts +36 -0
- package/lib/api/aws-auth/credential-plugins.js +153 -0
- package/lib/api/aws-auth/index.d.ts +3 -0
- package/lib/api/aws-auth/index.js +20 -0
- package/lib/api/aws-auth/provider-caching.d.ts +13 -0
- package/lib/api/aws-auth/provider-caching.js +24 -0
- package/lib/api/aws-auth/sdk-logger.d.ts +69 -0
- package/lib/api/aws-auth/sdk-logger.js +130 -0
- package/lib/api/aws-auth/sdk-provider.d.ts +207 -0
- package/lib/api/aws-auth/sdk-provider.js +359 -0
- package/lib/api/aws-auth/sdk.d.ts +223 -0
- package/lib/api/aws-auth/sdk.js +366 -0
- package/lib/api/aws-auth/tracing.d.ts +11 -0
- package/lib/api/aws-auth/tracing.js +61 -0
- package/lib/api/aws-auth/user-agent.d.ts +7 -0
- package/lib/api/aws-auth/user-agent.js +21 -0
- package/lib/api/aws-auth/util.d.ts +6 -0
- package/lib/api/aws-auth/util.js +23 -0
- package/lib/api/bootstrap/bootstrap-environment.d.ts +33 -0
- package/lib/api/bootstrap/bootstrap-environment.js +322 -0
- package/lib/api/bootstrap/bootstrap-props.d.ts +130 -0
- package/lib/api/bootstrap/bootstrap-props.js +14 -0
- package/lib/api/bootstrap/bootstrap-template.yaml +692 -0
- package/lib/api/bootstrap/deploy-bootstrap.d.ts +37 -0
- package/lib/api/bootstrap/deploy-bootstrap.js +143 -0
- package/lib/api/bootstrap/index.d.ts +2 -0
- package/lib/api/bootstrap/index.js +19 -0
- package/lib/api/bootstrap/legacy-template.d.ts +2 -0
- package/lib/api/bootstrap/legacy-template.js +82 -0
- package/lib/api/context.d.ts +40 -0
- package/lib/api/context.js +82 -0
- package/lib/api/cxapp/cloud-assembly.d.ts +150 -0
- package/lib/api/cxapp/cloud-assembly.js +305 -0
- package/lib/api/cxapp/cloud-executable.d.ts +44 -0
- package/lib/api/cxapp/cloud-executable.js +90 -0
- package/lib/api/cxapp/environments.d.ts +9 -0
- package/lib/api/cxapp/environments.js +66 -0
- package/lib/api/cxapp/exec.d.ts +56 -0
- package/lib/api/cxapp/exec.js +275 -0
- package/lib/api/deployments/asset-manifest-builder.d.ts +8 -0
- package/lib/api/deployments/asset-manifest-builder.js +35 -0
- package/lib/api/deployments/asset-publishing.d.ts +77 -0
- package/lib/api/deployments/asset-publishing.js +163 -0
- package/lib/api/deployments/assets.d.ts +10 -0
- package/lib/api/deployments/assets.js +111 -0
- package/lib/api/deployments/checks.d.ts +8 -0
- package/lib/api/deployments/checks.js +73 -0
- package/lib/api/deployments/cloudformation.d.ts +235 -0
- package/lib/api/deployments/cloudformation.js +598 -0
- package/lib/api/deployments/deploy-stack.d.ts +177 -0
- package/lib/api/deployments/deploy-stack.js +484 -0
- package/lib/api/deployments/deployment-method.d.ts +24 -0
- package/lib/api/deployments/deployment-method.js +3 -0
- package/lib/api/deployments/deployment-result.d.ts +21 -0
- package/lib/api/deployments/deployment-result.js +10 -0
- package/lib/api/deployments/deployments.d.ts +340 -0
- package/lib/api/deployments/deployments.js +369 -0
- package/lib/api/deployments/hotswap-deployments.d.ts +14 -0
- package/lib/api/deployments/hotswap-deployments.js +357 -0
- package/lib/api/deployments/index.d.ts +6 -0
- package/lib/api/deployments/index.js +23 -0
- package/lib/api/deployments/nested-stack-helpers.d.ts +25 -0
- package/lib/api/deployments/nested-stack-helpers.js +88 -0
- package/lib/api/environment-access.d.ts +138 -0
- package/lib/api/environment-access.js +203 -0
- package/lib/api/environment-resources.d.ts +73 -0
- package/lib/api/environment-resources.js +208 -0
- package/lib/api/evaluate-cloudformation-template.d.ts +84 -0
- package/lib/api/evaluate-cloudformation-template.js +443 -0
- package/lib/api/garbage-collection/garbage-collector.d.ts +152 -0
- package/lib/api/garbage-collection/garbage-collector.js +607 -0
- package/lib/api/garbage-collection/progress-printer.d.ts +21 -0
- package/lib/api/garbage-collection/progress-printer.js +69 -0
- package/lib/api/garbage-collection/stack-refresh.d.ts +44 -0
- package/lib/api/garbage-collection/stack-refresh.js +154 -0
- package/lib/api/hotswap/appsync-mapping-templates.d.ts +3 -0
- package/lib/api/hotswap/appsync-mapping-templates.js +157 -0
- package/lib/api/hotswap/code-build-projects.d.ts +3 -0
- package/lib/api/hotswap/code-build-projects.js +55 -0
- package/lib/api/hotswap/common.d.ts +126 -0
- package/lib/api/hotswap/common.js +170 -0
- package/lib/api/hotswap/ecs-services.d.ts +3 -0
- package/lib/api/hotswap/ecs-services.js +140 -0
- package/lib/api/hotswap/lambda-functions.d.ts +3 -0
- package/lib/api/hotswap/lambda-functions.js +309 -0
- package/lib/api/hotswap/s3-bucket-deployments.d.ts +9 -0
- package/lib/api/hotswap/s3-bucket-deployments.js +112 -0
- package/lib/api/hotswap/stepfunctions-state-machines.d.ts +3 -0
- package/lib/api/hotswap/stepfunctions-state-machines.js +42 -0
- package/lib/api/index.d.ts +5 -0
- package/lib/api/index.js +22 -0
- package/lib/api/logs/find-cloudwatch-logs.d.ts +24 -0
- package/lib/api/logs/find-cloudwatch-logs.js +97 -0
- package/lib/api/logs/logs-monitor.d.ts +53 -0
- package/lib/api/logs/logs-monitor.js +169 -0
- package/lib/api/plugin/context-provider-plugin.d.ts +6 -0
- package/lib/api/plugin/context-provider-plugin.js +7 -0
- package/lib/api/plugin/index.d.ts +3 -0
- package/lib/api/plugin/index.js +20 -0
- package/lib/api/plugin/mode.d.ts +4 -0
- package/lib/api/plugin/mode.js +9 -0
- package/lib/api/plugin/plugin.d.ts +63 -0
- package/lib/api/plugin/plugin.js +106 -0
- package/lib/api/settings.d.ts +29 -0
- package/lib/api/settings.js +141 -0
- package/lib/api/tags.d.ts +9 -0
- package/lib/api/tags.js +10 -0
- package/lib/api/toolkit-info.d.ts +51 -0
- package/lib/api/toolkit-info.js +156 -0
- package/lib/api/util/cloudformation/stack-activity-monitor.d.ts +237 -0
- package/lib/api/util/cloudformation/stack-activity-monitor.js +550 -0
- package/lib/api/util/cloudformation/stack-event-poller.d.ts +63 -0
- package/lib/api/util/cloudformation/stack-event-poller.js +129 -0
- package/lib/api/util/cloudformation/stack-status.d.ts +42 -0
- package/lib/api/util/cloudformation/stack-status.js +88 -0
- package/lib/api/util/display.d.ts +13 -0
- package/lib/api/util/display.js +80 -0
- package/lib/api/util/placeholders.d.ts +10 -0
- package/lib/api/util/placeholders.js +24 -0
- package/lib/api/util/rwlock.d.ts +65 -0
- package/lib/api/util/rwlock.js +179 -0
- package/lib/api/util/string-manipulation.d.ts +10 -0
- package/lib/api/util/string-manipulation.js +33 -0
- package/lib/api/util/template-body-parameter.d.ts +21 -0
- package/lib/api/util/template-body-parameter.js +104 -0
- package/lib/cli/cdk-toolkit.d.ts +594 -0
- package/lib/cli/cdk-toolkit.js +1019 -0
- package/lib/cli/cli-config.d.ts +10 -0
- package/lib/cli/cli-config.js +406 -0
- package/lib/cli/cli.d.ts +4 -0
- package/lib/cli/cli.js +538 -0
- package/lib/cli/convert-to-user-input.d.ts +3 -0
- package/lib/cli/convert-to-user-input.js +434 -0
- package/lib/cli/parse-command-line-arguments.d.ts +1 -0
- package/lib/cli/parse-command-line-arguments.js +806 -0
- package/lib/cli/platform-warnings.d.ts +2 -0
- package/lib/cli/platform-warnings.js +45 -0
- package/lib/cli/user-configuration.d.ts +90 -0
- package/lib/cli/user-configuration.js +272 -0
- package/lib/cli/user-input.d.ts +1163 -0
- package/lib/cli/user-input.js +3 -0
- package/lib/cli/util/console-formatters.d.ts +18 -0
- package/lib/cli/util/console-formatters.js +42 -0
- package/lib/cli/util/npm.d.ts +1 -0
- package/lib/cli/util/npm.js +22 -0
- package/lib/cli/util/yargs-helpers.d.ts +22 -0
- package/lib/cli/util/yargs-helpers.js +49 -0
- package/lib/cli/version.d.ts +13 -0
- package/lib/cli/version.js +120 -0
- package/lib/commands/context.d.ts +35 -0
- package/lib/commands/context.js +156 -0
- package/lib/commands/docs.d.ts +13 -0
- package/lib/commands/docs.js +32 -0
- package/lib/commands/doctor.d.ts +1 -0
- package/lib/commands/doctor.js +69 -0
- package/lib/commands/migrate.d.ts +327 -0
- package/lib/commands/migrate.js +804 -0
- package/lib/context-providers/ami.d.ts +11 -0
- package/lib/context-providers/ami.js +50 -0
- package/lib/context-providers/availability-zones.d.ts +11 -0
- package/lib/context-providers/availability-zones.js +27 -0
- package/lib/context-providers/endpoint-service-availability-zones.d.ts +11 -0
- package/lib/context-providers/endpoint-service-availability-zones.js +33 -0
- package/lib/context-providers/hosted-zones.d.ts +10 -0
- package/lib/context-providers/hosted-zones.js +67 -0
- package/lib/context-providers/index.d.ts +30 -0
- package/lib/context-providers/index.js +109 -0
- package/lib/context-providers/keys.d.ts +11 -0
- package/lib/context-providers/keys.js +52 -0
- package/lib/context-providers/load-balancers.d.ts +20 -0
- package/lib/context-providers/load-balancers.js +159 -0
- package/lib/context-providers/security-groups.d.ts +9 -0
- package/lib/context-providers/security-groups.js +70 -0
- package/lib/context-providers/ssm-parameters.d.ts +23 -0
- package/lib/context-providers/ssm-parameters.js +59 -0
- package/lib/context-providers/vpcs.d.ts +11 -0
- package/lib/context-providers/vpcs.js +288 -0
- package/lib/diff.d.ts +28 -0
- package/lib/diff.js +165 -0
- package/lib/import.d.ts +182 -0
- package/lib/import.js +335 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +348304 -0
- package/lib/index_bg.wasm +0 -0
- package/lib/init-hooks.d.ts +40 -0
- package/lib/init-hooks.js +64 -0
- package/lib/init-templates/.init-version.json +1 -0
- package/lib/init-templates/.no-packagejson-validator +0 -0
- package/lib/init-templates/.recommended-feature-flags.json +68 -0
- package/lib/init-templates/LICENSE +16 -0
- package/lib/init-templates/app/csharp/.template.gitignore +342 -0
- package/lib/init-templates/app/csharp/README.md +14 -0
- package/lib/init-templates/app/csharp/cdk.template.json +15 -0
- package/lib/init-templates/app/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +20 -0
- package/lib/init-templates/app/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +13 -0
- package/lib/init-templates/app/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +1 -0
- package/lib/init-templates/app/csharp/src/%name.PascalCased%/Program.template.cs +44 -0
- package/lib/init-templates/app/csharp/src/%name.PascalCased%.template.sln +18 -0
- package/lib/init-templates/app/fsharp/.template.gitignore +342 -0
- package/lib/init-templates/app/fsharp/README.md +18 -0
- package/lib/init-templates/app/fsharp/cdk.template.json +14 -0
- package/lib/init-templates/app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +25 -0
- package/lib/init-templates/app/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +8 -0
- package/lib/init-templates/app/fsharp/src/%name.PascalCased%/Program.template.fs +11 -0
- package/lib/init-templates/app/fsharp/src/%name.PascalCased%.template.sln +18 -0
- package/lib/init-templates/app/go/%name%.template.go +70 -0
- package/lib/init-templates/app/go/%name%_test.template.go +26 -0
- package/lib/init-templates/app/go/.template.gitignore +19 -0
- package/lib/init-templates/app/go/README.md +12 -0
- package/lib/init-templates/app/go/cdk.template.json +13 -0
- package/lib/init-templates/app/go/go.template.mod +9 -0
- package/lib/init-templates/app/info.json +4 -0
- package/lib/init-templates/app/java/.template.gitignore +13 -0
- package/lib/init-templates/app/java/README.md +18 -0
- package/lib/init-templates/app/java/cdk.json +13 -0
- package/lib/init-templates/app/java/pom.xml +60 -0
- package/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +42 -0
- package/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +24 -0
- package/lib/init-templates/app/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java +26 -0
- package/lib/init-templates/app/javascript/.template.gitignore +5 -0
- package/lib/init-templates/app/javascript/.template.npmignore +3 -0
- package/lib/init-templates/app/javascript/README.md +12 -0
- package/lib/init-templates/app/javascript/bin/%name%.template.js +21 -0
- package/lib/init-templates/app/javascript/cdk.template.json +15 -0
- package/lib/init-templates/app/javascript/jest.config.js +3 -0
- package/lib/init-templates/app/javascript/lib/%name%-stack.template.js +23 -0
- package/lib/init-templates/app/javascript/package.json +20 -0
- package/lib/init-templates/app/javascript/test/%name%.test.template.js +17 -0
- package/lib/init-templates/app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +19 -0
- package/lib/init-templates/app/python/%name.PythonModule%/__init__.py +0 -0
- package/lib/init-templates/app/python/.template.gitignore +10 -0
- package/lib/init-templates/app/python/README.template.md +58 -0
- package/lib/init-templates/app/python/app.template.py +28 -0
- package/lib/init-templates/app/python/cdk.template.json +15 -0
- package/lib/init-templates/app/python/requirements-dev.txt +1 -0
- package/lib/init-templates/app/python/requirements.txt +2 -0
- package/lib/init-templates/app/python/source.bat +13 -0
- package/lib/init-templates/app/python/tests/__init__.py +0 -0
- package/lib/init-templates/app/python/tests/unit/__init__.py +0 -0
- package/lib/init-templates/app/python/tests/unit/test_%name.PythonModule%_stack.template.py +15 -0
- package/lib/init-templates/app/typescript/.template.gitignore +8 -0
- package/lib/init-templates/app/typescript/.template.npmignore +6 -0
- package/lib/init-templates/app/typescript/README.md +14 -0
- package/lib/init-templates/app/typescript/bin/%name%.template.ts +20 -0
- package/lib/init-templates/app/typescript/cdk.template.json +17 -0
- package/lib/init-templates/app/typescript/jest.config.js +8 -0
- package/lib/init-templates/app/typescript/lib/%name%-stack.template.ts +16 -0
- package/lib/init-templates/app/typescript/package.json +26 -0
- package/lib/init-templates/app/typescript/test/%name%.test.template.ts +17 -0
- package/lib/init-templates/app/typescript/tsconfig.json +31 -0
- package/lib/init-templates/lib/info.json +4 -0
- package/lib/init-templates/lib/typescript/.template.gitignore +8 -0
- package/lib/init-templates/lib/typescript/.template.npmignore +6 -0
- package/lib/init-templates/lib/typescript/README.template.md +12 -0
- package/lib/init-templates/lib/typescript/jest.config.js +8 -0
- package/lib/init-templates/lib/typescript/lib/index.template.ts +21 -0
- package/lib/init-templates/lib/typescript/package.json +24 -0
- package/lib/init-templates/lib/typescript/test/%name%.test.template.ts +18 -0
- package/lib/init-templates/lib/typescript/tsconfig.json +31 -0
- package/lib/init-templates/sample-app/csharp/.template.gitignore +342 -0
- package/lib/init-templates/sample-app/csharp/README.template.md +19 -0
- package/lib/init-templates/sample-app/csharp/cdk.template.json +15 -0
- package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +20 -0
- package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +24 -0
- package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +1 -0
- package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/Program.template.cs +15 -0
- package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%.template.sln +18 -0
- package/lib/init-templates/sample-app/fsharp/.template.gitignore +342 -0
- package/lib/init-templates/sample-app/fsharp/README.template.md +20 -0
- package/lib/init-templates/sample-app/fsharp/cdk.template.json +14 -0
- package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +25 -0
- package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +14 -0
- package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%/Program.template.fs +11 -0
- package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%.template.sln +18 -0
- package/lib/init-templates/sample-app/go/%name%.template.go +73 -0
- package/lib/init-templates/sample-app/go/%name%_test.template.go +25 -0
- package/lib/init-templates/sample-app/go/.template.gitignore +19 -0
- package/lib/init-templates/sample-app/go/README.md +12 -0
- package/lib/init-templates/sample-app/go/cdk.template.json +13 -0
- package/lib/init-templates/sample-app/go/go.template.mod +9 -0
- package/lib/init-templates/sample-app/info.json +4 -0
- package/lib/init-templates/sample-app/java/.template.gitignore +13 -0
- package/lib/init-templates/sample-app/java/README.template.md +19 -0
- package/lib/init-templates/sample-app/java/cdk.json +13 -0
- package/lib/init-templates/sample-app/java/pom.xml +55 -0
- package/lib/init-templates/sample-app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +13 -0
- package/lib/init-templates/sample-app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +29 -0
- package/lib/init-templates/sample-app/java/src/test/java/com/myorg/%name.PascalCased%StackTest.template.java +27 -0
- package/lib/init-templates/sample-app/javascript/.template.gitignore +5 -0
- package/lib/init-templates/sample-app/javascript/.template.npmignore +3 -0
- package/lib/init-templates/sample-app/javascript/README.template.md +13 -0
- package/lib/init-templates/sample-app/javascript/bin/%name%.template.js +6 -0
- package/lib/init-templates/sample-app/javascript/cdk.template.json +15 -0
- package/lib/init-templates/sample-app/javascript/jest.config.js +3 -0
- package/lib/init-templates/sample-app/javascript/lib/%name%-stack.template.js +25 -0
- package/lib/init-templates/sample-app/javascript/package.json +20 -0
- package/lib/init-templates/sample-app/javascript/test/%name%.test.template.js +16 -0
- package/lib/init-templates/sample-app/javascript/tsconfig.json +34 -0
- package/lib/init-templates/sample-app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +26 -0
- package/lib/init-templates/sample-app/python/%name.PythonModule%/__init__.py +0 -0
- package/lib/init-templates/sample-app/python/.template.gitignore +22 -0
- package/lib/init-templates/sample-app/python/README.template.md +65 -0
- package/lib/init-templates/sample-app/python/app.template.py +11 -0
- package/lib/init-templates/sample-app/python/cdk.template.json +15 -0
- package/lib/init-templates/sample-app/python/requirements-dev.txt +1 -0
- package/lib/init-templates/sample-app/python/requirements.txt +2 -0
- package/lib/init-templates/sample-app/python/source.bat +13 -0
- package/lib/init-templates/sample-app/python/tests/__init__.py +0 -0
- package/lib/init-templates/sample-app/python/tests/unit/__init__.py +0 -0
- package/lib/init-templates/sample-app/python/tests/unit/test_%name.PythonModule%_stack.template.py +21 -0
- package/lib/init-templates/sample-app/typescript/.template.gitignore +8 -0
- package/lib/init-templates/sample-app/typescript/.template.npmignore +6 -0
- package/lib/init-templates/sample-app/typescript/README.template.md +15 -0
- package/lib/init-templates/sample-app/typescript/bin/%name%.template.ts +6 -0
- package/lib/init-templates/sample-app/typescript/cdk.template.json +17 -0
- package/lib/init-templates/sample-app/typescript/jest.config.js +8 -0
- package/lib/init-templates/sample-app/typescript/lib/%name%-stack.template.ts +19 -0
- package/lib/init-templates/sample-app/typescript/package.json +26 -0
- package/lib/init-templates/sample-app/typescript/test/%name%.test.template.ts +17 -0
- package/lib/init-templates/sample-app/typescript/tsconfig.json +31 -0
- package/lib/init.d.ts +52 -0
- package/lib/init.js +430 -0
- package/lib/legacy-exports-source.d.ts +27 -0
- package/lib/legacy-exports-source.js +88 -0
- package/lib/legacy-exports.d.ts +10 -0
- package/lib/legacy-exports.js +28 -0
- package/lib/legacy-logging-source.d.ts +32 -0
- package/lib/legacy-logging-source.js +107 -0
- package/lib/list-stacks.d.ts +22 -0
- package/lib/list-stacks.js +23 -0
- package/lib/logging.d.ts +109 -0
- package/lib/logging.js +159 -0
- package/lib/migrator.d.ts +25 -0
- package/lib/migrator.js +67 -0
- package/lib/notices.d.ts +156 -0
- package/lib/notices.js +373 -0
- package/lib/os.d.ts +7 -0
- package/lib/os.js +92 -0
- package/lib/serialize.d.ts +27 -0
- package/lib/serialize.js +86 -0
- package/lib/toolkit/cli-io-host.d.ts +208 -0
- package/lib/toolkit/cli-io-host.js +282 -0
- package/lib/toolkit/error.d.ts +44 -0
- package/lib/toolkit/error.js +78 -0
- package/lib/tree.d.ts +31 -0
- package/lib/tree.js +40 -0
- package/lib/util/archive.d.ts +1 -0
- package/lib/util/archive.js +86 -0
- package/lib/util/arrays.d.ts +14 -0
- package/lib/util/arrays.js +36 -0
- package/lib/util/bool.d.ts +7 -0
- package/lib/util/bool.js +13 -0
- package/lib/util/bytes.d.ts +8 -0
- package/lib/util/bytes.js +21 -0
- package/lib/util/content-hash.d.ts +5 -0
- package/lib/util/content-hash.js +43 -0
- package/lib/util/directories.d.ts +23 -0
- package/lib/util/directories.js +57 -0
- package/lib/util/error.d.ts +9 -0
- package/lib/util/error.js +22 -0
- package/lib/util/index.d.ts +5 -0
- package/lib/util/index.js +22 -0
- package/lib/util/objects.d.ts +52 -0
- package/lib/util/objects.js +183 -0
- package/lib/util/parallel.d.ts +6 -0
- package/lib/util/parallel.js +44 -0
- package/lib/util/tables.d.ts +1 -0
- package/lib/util/tables.js +10 -0
- package/lib/util/type-brands.d.ts +39 -0
- package/lib/util/type-brands.js +38 -0
- package/lib/util/types.d.ts +27 -0
- package/lib/util/types.js +25 -0
- package/lib/util/validate-notification-arn.d.ts +4 -0
- package/lib/util/validate-notification-arn.js +10 -0
- package/lib/util/version-range.d.ts +2 -0
- package/lib/util/version-range.js +36 -0
- package/lib/util/work-graph-builder.d.ts +32 -0
- package/lib/util/work-graph-builder.js +167 -0
- package/lib/util/work-graph-types.d.ts +50 -0
- package/lib/util/work-graph-types.js +14 -0
- package/lib/util/work-graph.d.ts +70 -0
- package/lib/util/work-graph.js +344 -0
- package/lib/util/yaml-cfn.d.ts +15 -0
- package/lib/util/yaml-cfn.js +56 -0
- package/package.json +197 -0
- package/scripts/user-input-gen +2 -0
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
<constructs.version>%constructs-version%</constructs.version>
|
|
14
|
+
<junit.version>5.7.1</junit.version>
|
|
15
|
+
</properties>
|
|
16
|
+
|
|
17
|
+
<build>
|
|
18
|
+
<plugins>
|
|
19
|
+
<plugin>
|
|
20
|
+
<groupId>org.apache.maven.plugins</groupId>
|
|
21
|
+
<artifactId>maven-compiler-plugin</artifactId>
|
|
22
|
+
<version>3.11.0</version>
|
|
23
|
+
<configuration>
|
|
24
|
+
<release>17</release>
|
|
25
|
+
</configuration>
|
|
26
|
+
</plugin>
|
|
27
|
+
|
|
28
|
+
<plugin>
|
|
29
|
+
<groupId>org.codehaus.mojo</groupId>
|
|
30
|
+
<artifactId>exec-maven-plugin</artifactId>
|
|
31
|
+
<version>3.1.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>aws-cdk-lib</artifactId>
|
|
44
|
+
<version>${cdk.version}</version>
|
|
45
|
+
</dependency>
|
|
46
|
+
|
|
47
|
+
<dependency>
|
|
48
|
+
<groupId>software.constructs</groupId>
|
|
49
|
+
<artifactId>constructs</artifactId>
|
|
50
|
+
<version>${constructs.version}</version>
|
|
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/app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
package com.myorg;
|
|
2
|
+
|
|
3
|
+
import software.amazon.awscdk.App;
|
|
4
|
+
import software.amazon.awscdk.Environment;
|
|
5
|
+
import software.amazon.awscdk.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, "%stackname%", 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
|
+
}
|
|
42
|
+
|
package/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
package com.myorg;
|
|
2
|
+
|
|
3
|
+
import software.constructs.Construct;
|
|
4
|
+
import software.amazon.awscdk.Stack;
|
|
5
|
+
import software.amazon.awscdk.StackProps;
|
|
6
|
+
// import software.amazon.awscdk.Duration;
|
|
7
|
+
// import software.amazon.awscdk.services.sqs.Queue;
|
|
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/app/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// package com.myorg;
|
|
2
|
+
|
|
3
|
+
// import software.amazon.awscdk.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
|
+
// }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Welcome to your CDK JavaScript project
|
|
2
|
+
|
|
3
|
+
This is a blank project for CDK development with JavaScript.
|
|
4
|
+
|
|
5
|
+
The `cdk.json` file tells the CDK Toolkit how to execute your app. The build step is not required when using JavaScript.
|
|
6
|
+
|
|
7
|
+
## Useful commands
|
|
8
|
+
|
|
9
|
+
* `npm run test` perform the jest unit tests
|
|
10
|
+
* `npx cdk deploy` deploy this stack to your default AWS account/region
|
|
11
|
+
* `npx cdk diff` compare deployed stack with current state
|
|
12
|
+
* `npx cdk synth` emits the synthesized CloudFormation template
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const cdk = require('aws-cdk-lib');
|
|
4
|
+
const { %name.PascalCased%Stack } = require('../lib/%name%-stack');
|
|
5
|
+
|
|
6
|
+
const app = new cdk.App();
|
|
7
|
+
new %name.PascalCased%Stack(app, '%stackname%', {
|
|
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
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const { Stack, Duration } = require('aws-cdk-lib');
|
|
2
|
+
// const sqs = require('aws-cdk-lib/aws-sqs');
|
|
3
|
+
|
|
4
|
+
class %name.PascalCased%Stack extends Stack {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @param {Construct} scope
|
|
8
|
+
* @param {string} id
|
|
9
|
+
* @param {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: Duration.seconds(300)
|
|
19
|
+
// });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
module.exports = { %name.PascalCased%Stack }
|
|
@@ -0,0 +1,20 @@
|
|
|
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": "%cdk-version%",
|
|
14
|
+
"jest": "^29.7.0"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"aws-cdk-lib": "%cdk-version%",
|
|
18
|
+
"constructs": "%constructs-version%"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// const cdk = require('aws-cdk-lib');
|
|
2
|
+
// const { Template } = require('aws-cdk-lib/assertions');
|
|
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
|
+
});
|
package/lib/init-templates/app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from aws_cdk import (
|
|
2
|
+
# Duration,
|
|
3
|
+
Stack,
|
|
4
|
+
# aws_sqs as sqs,
|
|
5
|
+
)
|
|
6
|
+
from constructs import Construct
|
|
7
|
+
|
|
8
|
+
class %name.PascalCased%Stack(Stack):
|
|
9
|
+
|
|
10
|
+
def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
|
|
11
|
+
super().__init__(scope, construct_id, **kwargs)
|
|
12
|
+
|
|
13
|
+
# The code that defines your stack goes here
|
|
14
|
+
|
|
15
|
+
# example resource
|
|
16
|
+
# queue = sqs.Queue(
|
|
17
|
+
# self, "%name.PascalCased%Queue",
|
|
18
|
+
# visibility_timeout=Duration.seconds(300),
|
|
19
|
+
# )
|
|
File without changes
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
|
|
2
|
+
# Welcome to your CDK Python project!
|
|
3
|
+
|
|
4
|
+
This is a blank project for CDK development with Python.
|
|
5
|
+
|
|
6
|
+
The `cdk.json` file tells the CDK Toolkit how to execute your app.
|
|
7
|
+
|
|
8
|
+
This project is set up like a standard Python project. The initialization
|
|
9
|
+
process also creates a virtualenv within this project, stored under the `.venv`
|
|
10
|
+
directory. To create the virtualenv it assumes that there is a `python3`
|
|
11
|
+
(or `python` for Windows) executable in your path with access to the `venv`
|
|
12
|
+
package. If for any reason the automatic creation of the virtualenv fails,
|
|
13
|
+
you can create the virtualenv manually.
|
|
14
|
+
|
|
15
|
+
To manually create a virtualenv on MacOS and Linux:
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
$ %python-executable% -m venv .venv
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
After the init process completes and the virtualenv is created, you can use the following
|
|
22
|
+
step to activate your virtualenv.
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
$ source .venv/bin/activate
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
If you are a Windows platform, you would activate the virtualenv like this:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
% .venv\Scripts\activate.bat
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Once the virtualenv is activated, you can install the required dependencies.
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
$ pip install -r requirements.txt
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
At this point you can now synthesize the CloudFormation template for this code.
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
$ cdk synth
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
To add additional dependencies, for example other CDK libraries, just add
|
|
47
|
+
them to your `setup.py` file and rerun the `pip install -r requirements.txt`
|
|
48
|
+
command.
|
|
49
|
+
|
|
50
|
+
## Useful commands
|
|
51
|
+
|
|
52
|
+
* `cdk ls` list all stacks in the app
|
|
53
|
+
* `cdk synth` emits the synthesized CloudFormation template
|
|
54
|
+
* `cdk deploy` deploy this stack to your default AWS account/region
|
|
55
|
+
* `cdk diff` compare deployed stack with current state
|
|
56
|
+
* `cdk docs` open CDK documentation
|
|
57
|
+
|
|
58
|
+
Enjoy!
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
import os
|
|
3
|
+
|
|
4
|
+
import aws_cdk as cdk
|
|
5
|
+
|
|
6
|
+
from %name.PythonModule%.%name.PythonModule%_stack import %name.PascalCased%Stack
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
app = cdk.App()
|
|
10
|
+
%name.PascalCased%Stack(app, "%stackname%",
|
|
11
|
+
# If you don't specify 'env', this stack will be environment-agnostic.
|
|
12
|
+
# Account/Region-dependent features and context lookups will not work,
|
|
13
|
+
# but a single synthesized template can be deployed anywhere.
|
|
14
|
+
|
|
15
|
+
# Uncomment the next line to specialize this stack for the AWS Account
|
|
16
|
+
# and Region that are implied by the current CLI configuration.
|
|
17
|
+
|
|
18
|
+
#env=cdk.Environment(account=os.getenv('CDK_DEFAULT_ACCOUNT'), region=os.getenv('CDK_DEFAULT_REGION')),
|
|
19
|
+
|
|
20
|
+
# Uncomment the next line if you know exactly what Account and Region you
|
|
21
|
+
# want to deploy the stack to. */
|
|
22
|
+
|
|
23
|
+
#env=cdk.Environment(account='123456789012', region='us-east-1'),
|
|
24
|
+
|
|
25
|
+
# For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
app.synth()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pytest==6.2.5
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@echo off
|
|
2
|
+
|
|
3
|
+
rem The sole purpose of this script is to make the command
|
|
4
|
+
rem
|
|
5
|
+
rem source .venv/bin/activate
|
|
6
|
+
rem
|
|
7
|
+
rem (which activates a Python virtualenv on Linux or Mac OS X) work on Windows.
|
|
8
|
+
rem On Windows, this command just runs this batch file (the argument is ignored).
|
|
9
|
+
rem
|
|
10
|
+
rem Now we don't need to document a Windows command for activating a virtualenv.
|
|
11
|
+
|
|
12
|
+
echo Executing .venv\Scripts\activate.bat for you
|
|
13
|
+
.venv\Scripts\activate.bat
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import aws_cdk as core
|
|
2
|
+
import aws_cdk.assertions as assertions
|
|
3
|
+
|
|
4
|
+
from %name.PythonModule%.%name.PythonModule%_stack import %name.PascalCased%Stack
|
|
5
|
+
|
|
6
|
+
# example tests. To run these tests, uncomment this file along with the example
|
|
7
|
+
# resource in %name.PythonModule%/%name.PythonModule%_stack.py
|
|
8
|
+
def test_sqs_queue_created():
|
|
9
|
+
app = core.App()
|
|
10
|
+
stack = %name.PascalCased%Stack(app, "%name.StackName%")
|
|
11
|
+
template = assertions.Template.from_stack(stack)
|
|
12
|
+
|
|
13
|
+
# template.has_resource_properties("AWS::SQS::Queue", {
|
|
14
|
+
# "VisibilityTimeout": 300
|
|
15
|
+
# })
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Welcome to your CDK TypeScript project
|
|
2
|
+
|
|
3
|
+
This is a blank project for CDK development with TypeScript.
|
|
4
|
+
|
|
5
|
+
The `cdk.json` file tells the CDK Toolkit how to execute your app.
|
|
6
|
+
|
|
7
|
+
## Useful commands
|
|
8
|
+
|
|
9
|
+
* `npm run build` compile typescript to js
|
|
10
|
+
* `npm run watch` watch for changes and compile
|
|
11
|
+
* `npm run test` perform the jest unit tests
|
|
12
|
+
* `npx cdk deploy` deploy this stack to your default AWS account/region
|
|
13
|
+
* `npx cdk diff` compare deployed stack with current state
|
|
14
|
+
* `npx cdk synth` emits the synthesized CloudFormation template
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import * as cdk from 'aws-cdk-lib';
|
|
3
|
+
import { %name.PascalCased%Stack } from '../lib/%name%-stack';
|
|
4
|
+
|
|
5
|
+
const app = new cdk.App();
|
|
6
|
+
new %name.PascalCased%Stack(app, '%stackname%', {
|
|
7
|
+
/* If you don't specify 'env', this stack will be environment-agnostic.
|
|
8
|
+
* Account/Region-dependent features and context lookups will not work,
|
|
9
|
+
* but a single synthesized template can be deployed anywhere. */
|
|
10
|
+
|
|
11
|
+
/* Uncomment the next line to specialize this stack for the AWS Account
|
|
12
|
+
* and Region that are implied by the current CLI configuration. */
|
|
13
|
+
// env: { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION },
|
|
14
|
+
|
|
15
|
+
/* Uncomment the next line if you know exactly what Account and Region you
|
|
16
|
+
* want to deploy the stack to. */
|
|
17
|
+
// env: { account: '123456789012', region: 'us-east-1' },
|
|
18
|
+
|
|
19
|
+
/* For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html */
|
|
20
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"app": "npx ts-node --prefer-ts-exts bin/%name%.ts",
|
|
3
|
+
"watch": {
|
|
4
|
+
"include": ["**"],
|
|
5
|
+
"exclude": [
|
|
6
|
+
"README.md",
|
|
7
|
+
"cdk*.json",
|
|
8
|
+
"**/*.d.ts",
|
|
9
|
+
"**/*.js",
|
|
10
|
+
"tsconfig.json",
|
|
11
|
+
"package*.json",
|
|
12
|
+
"yarn.lock",
|
|
13
|
+
"node_modules",
|
|
14
|
+
"test"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as cdk from 'aws-cdk-lib';
|
|
2
|
+
import { Construct } from 'constructs';
|
|
3
|
+
// import * as sqs from 'aws-cdk-lib/aws-sqs';
|
|
4
|
+
|
|
5
|
+
export class %name.PascalCased%Stack extends cdk.Stack {
|
|
6
|
+
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
|
|
7
|
+
super(scope, id, props);
|
|
8
|
+
|
|
9
|
+
// The code that defines your stack goes here
|
|
10
|
+
|
|
11
|
+
// example resource
|
|
12
|
+
// const queue = new sqs.Queue(this, '%name.PascalCased%Queue', {
|
|
13
|
+
// visibilityTimeout: cdk.Duration.seconds(300)
|
|
14
|
+
// });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
"@types/jest": "^29.5.14",
|
|
15
|
+
"@types/node": "22.7.9",
|
|
16
|
+
"jest": "^29.7.0",
|
|
17
|
+
"ts-jest": "^29.2.5",
|
|
18
|
+
"aws-cdk": "%cdk-version%",
|
|
19
|
+
"ts-node": "^10.9.2",
|
|
20
|
+
"typescript": "~5.6.3"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"aws-cdk-lib": "%cdk-version%",
|
|
24
|
+
"constructs": "%constructs-version%"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// import * as cdk from 'aws-cdk-lib';
|
|
2
|
+
// import { Template } from 'aws-cdk-lib/assertions';
|
|
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
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"lib": [
|
|
6
|
+
"es2020",
|
|
7
|
+
"dom"
|
|
8
|
+
],
|
|
9
|
+
"declaration": true,
|
|
10
|
+
"strict": true,
|
|
11
|
+
"noImplicitAny": true,
|
|
12
|
+
"strictNullChecks": true,
|
|
13
|
+
"noImplicitThis": true,
|
|
14
|
+
"alwaysStrict": true,
|
|
15
|
+
"noUnusedLocals": false,
|
|
16
|
+
"noUnusedParameters": false,
|
|
17
|
+
"noImplicitReturns": true,
|
|
18
|
+
"noFallthroughCasesInSwitch": false,
|
|
19
|
+
"inlineSourceMap": true,
|
|
20
|
+
"inlineSources": true,
|
|
21
|
+
"experimentalDecorators": true,
|
|
22
|
+
"strictPropertyInitialization": false,
|
|
23
|
+
"typeRoots": [
|
|
24
|
+
"./node_modules/@types"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"exclude": [
|
|
28
|
+
"node_modules",
|
|
29
|
+
"cdk.out"
|
|
30
|
+
]
|
|
31
|
+
}
|