Setup infrastructure meant for the user-posts-lambda repo.
Manages stacks for API Gateway, Cognito, DynamoDB and the Lambda function.
Notes:
- all routes are secured with an API key that is generated in the API Gateway
- posts routes are also secured with a Cognito-based authorizer
A Postman collection is included for easier testing.
Since it's a CDK project, the standard commands apply:
mvn package
compile and run testscdk ls
list all stacks in the appcdk synth
emits the synthesized CloudFormation templatecdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk docs
open CDK documentation
You should run cdk bootstrap
if this is your first CDK project.