This project shows you how to build an app that extends a back end created by the Amplify CLI by using AWS CDK
- Clone the repo & change into the directory
git clone https://github.com/dabit3/amplify-with-cdk.git
cd amplify-with-cdk
- Install the dependencies in main directory as well as cdk-backend directory:
npm install
cd cdk-backend
npm install
cd ..
- Build and deploy Amplify project
amplify init
amplify push
- Build and deploy the CDK back end
cd cdk-backend
npm run build && cdk deploy -O ../src/cdk-exports.json
cd ..
- Run the Next app
npm run dev