https://github.com/localstack-samples/aurora-serverless-v2
Simple Aurora Serverless V2 with Lambda and APIGW deployed on LocalStack
https://github.com/localstack-samples/aurora-serverless-v2
Last synced: 8 months ago
JSON representation
Simple Aurora Serverless V2 with Lambda and APIGW deployed on LocalStack
- Host: GitHub
- URL: https://github.com/localstack-samples/aurora-serverless-v2
- Owner: localstack-samples
- License: other
- Created: 2023-09-13T23:21:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-21T08:43:05.000Z (11 months ago)
- Last Synced: 2025-01-21T09:29:28.996Z (11 months ago)
- Language: TypeScript
- Size: 58.6 KB
- Stars: 0
- Watchers: 15
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Welcome to your CDK TypeScript project
The `cdk.json` file tells the CDK Toolkit how to execute your app.
# Setup
1. Install Node Version Manager (NVM)
https://github.com/nvm-sh/nvm#installing-and-updating
2. Select Node version 18
```shell
nvm install 18
```
# Build and Deploy
1. Install packages in this repo. Use `npm`, having issues with `yarn` and CDK.
```shell
npm install
```
2. Install `aws-cdk` and `aws-cdk-local` CLI
```shell
npm install -g aws-cdk
npm install -g aws-cdk-local
npm install aws-cdk-lib constructs
```
3. Bootstrap the CDK project for LocalStack
```shell
cdklocal bootstrap aws://000000000000/us-east-1
```
4. Deploy CDK project to LocalStack
```shell
cdklocal deploy
```
## 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