@wolsok/nx-aws-cdk-v2
v2.0.0
Published
[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme) [![@wolsok/nx-aws-cdk-v2](https://img.shields.io/badge/%40adrian--goe-nx--aws--cdk-green)](https:
Downloads
7,286
Readme
@wolsok/nx-aws-cdk-v2
An Nx plugin for developing aws-cdk
Table of Contents
Install
# npm
npm install --save-dev @wolsok/nx-aws-cdk-v2
# yarn
yarn add --dev @wolsok/nx-aws-cdk-v2
Usage
Generate Application
Create AWS CDK v2 Application
More details on AWS CDK v2 can be found on https://docs.aws.amazon.com/cdk/v2/guide/home.html
nx generate @wolsok/nx-aws-cdk-v2:application myApp
you can customize it further by passing these options:
nx generate @wolsok/nx-aws-cdk-v2:application [name] [options,...]
Options:
--name
--tags Add tags to the project (used for linting)
--directory A directory where the project is placed
--skipFormat Skip formatting files
--unitTestRunner Adds the specified unit test runner (default: jest)
--setParserOptionsProject Whether or not to configure the ESLint "parserOptions.project" option. We do not do this by default for lint performance reasons.
--dryRun Runs through and reports activity without writing to disk.
--skip-nx-cache Skip the use of Nx cache.
--help Show available options for project target.
Targets
Generated applications expose several functions to the CLI that allow users to deploy, destroy and bootstrap.
nx deploy myApp
nx destroy myApp
nx bootstrap myApp --profile=profile
#see how to use aws environments https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping.html#bootstrapping-howto-cli
nx bootstrap myApp aws://123456789012/us-east-1
Maintainers
Contributing
PRs accepted.
If editing the README, please conform to the standard-readme specification.
License
This project is MIT licensed 2022 Wolfram Sokollek
Special thanks
This Project is based on @tienne's nx-plugins.
Also thanks to @therk for his work on migrating to cdk v2.