https://github.com/tamdilip/build-aws-resources-cdk
Sample project to create aws resources programatically using JavaScript AWS CDK as an easy alternative for cloudformation/terraform way.
https://github.com/tamdilip/build-aws-resources-cdk
aws aws-cdk cloudformation javascript nodejs stack
Last synced: 3 months ago
JSON representation
Sample project to create aws resources programatically using JavaScript AWS CDK as an easy alternative for cloudformation/terraform way.
- Host: GitHub
- URL: https://github.com/tamdilip/build-aws-resources-cdk
- Owner: tamdilip
- Created: 2021-02-16T17:25:21.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-16T17:27:02.000Z (over 5 years ago)
- Last Synced: 2025-02-12T10:43:55.895Z (over 1 year ago)
- Topics: aws, aws-cdk, cloudformation, javascript, nodejs, stack
- Language: JavaScript
- Homepage:
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🔧 AWS CDK project
This is a sample project to create aws resources programatically using JavaScript AWS CDK as an easy alternative for cloudformation/terraform way.
The `cdk.json` file tells the CDK Toolkit how to execute your app. The build step is not required when using JavaScript.
### Useful commands
* `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
### Easy jump start
```sh
$ mkdir build-aws-resources-cdk
$ cd build-aws-resources-cdk
$ cdk init app --language javascript
$ npm i @aws-cdk/aws-codebuild
$ npm i @aws-cdk/aws-events-targets
$ npm i @aws-cdk/aws-lambda
$ cdk ls
$ cdk synth
$ cdk synth > cfn-template-output.yaml
```
### References
- https://docs.aws.amazon.com/cdk/latest/guide/hello_world.html#hello_world_tutorial_create_app
- https://docs.aws.amazon.com/cdk/api/latest/docs/aws-codebuild-readme.html
- https://github.com/aws-samples/aws-cdk-examples/blob/master/typescript/api-cors-lambda-crud-dynamodb/index.ts
- https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html
**Happy coding :) !!**