Skip to content

nashtech-garage/nodejs_aws-cdk

Repository files navigation

Welcome to IAC with CDK - code by Node.js 👋

Version License: MIT

We will use Node.js and CDK to build AWS resources. The cdk.json file tells the CDK Toolkit how to execute your app.

Prerequisites

  • node >=14.15.0
  • npm >=6.14.8

Build

npm run build

Run tests

npm run test

Steps by Steps

  • (Optional) Build code to check error
npm run build
  • Login to AWS Account
aws sso login

OR

aws sso login --profile <profile_name>
  • Deploy to AWS
cdk deploy

OR

cdk deploy --profile <profile_name>

Useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

Author

👤 Tran Minh

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About

This project demo how to use node.js to work with cdk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published