Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.08 KB

README.md

File metadata and controls

32 lines (25 loc) · 1.08 KB

Welcome to URL Shortener.

Maintainability

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.

Update the following in ckd.json

"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>",
}

Useful commands

  • yarn run build compile typescript to js
  • yarn run watch watch for changes and compile
  • yarn run test perform the jest unit tests
  • ./cdk-deploy.sh deploy this stack to your default AWS account/region
  • ./cdk-test.sh compare deployed stack with current state
  • ./cdk-synth.sh emits the synthesized CloudFormation template