Infrastructure as code framework used: AWS CDK AWS Services used: AWS Amplify, AWS Lambda, Amazon Cognito, Amazon API Gateway, Amazon DynamoDB
In this demo you will see:
- How to create WebApps with AWS CDK
- How to host WebApps with AWS Amplify
- How to secure APIs and WebApps using Amazon Cognito
- How to create backends with Amazon Api Gateway, AWS Lambda and Amazon DynamoDB
Important: this application uses various AWS services and there are costs associated with these services after the Free Tier usage - please see the AWS Pricing page for details. You are responsible for any AWS costs incurred. No warranty is implied in this example.
- AWS CLI already configured with Administrator permission
- AWS CDK - v2
- NodeJS 20.x installed
- CDK bootstrapped in your account
Deploy the project to the cloud:
cdk deploy
When asked about functions that may not have authorization defined, answer (y)es. The access to those functions will be open to anyone, so keep the app deployed only for the time you need this demo running.
To delete the app:
cdk destroy
npm run buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testscdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation template