This builds a custom serverless private URL shortener based on Amazon S3, AWS Lambda, Amazon CloudFront and API Gateway.
The cdk.json file tells the CDK Toolkit how to execute the app.
"aws_env_details": {
"account": "<Your aws account number>",
"region": "<region you want to deploy>"
},
"stack_params": {
"dnsZoneName": "<domain name>",
"subjectAlternativeNames": [
"*.<domain name>"
],
"meRedirect": "<permanent redirect url>",
}
yarn run buildcompile typescript to jsyarn run watchwatch for changes and compileyarn run testperform the jest unit tests./cdk-deploy.shdeploy this stack to your default AWS account/region./cdk-test.shcompare deployed stack with current state./cdk-synth.shemits the synthesized CloudFormation template