Skip to content

aws-samples/subtitle-generator-cdk-app

Repository files navigation

Subtitle Generator - Cloud Application with AWS CDK

With this project, you can provision the infrastructure, backend, and frontend required for a subtitle generator with a AWS CDK.

Demo

demo videos editor

Serverless Architecture

Architecture

Prerequisites

  1. AWS Account
  2. A user with AdministratorAccess to your account to provision AWS resources for you like S3 Bucket, ApiGateway, Cloudfront, DynamoDB, Cognito, ETC.
  3. Configuration and credential file settings - Please refer to the link to set the credentials on your computer.
  4. Install AWS Cloud Development Kit (CDK) v2

Quick Start

  1. $ git clone https://github.com/aws-samples/subtitle-generator-cdk-app
    $ cd subtitle-generator-cdk-app
    $ npm install
    $ npm run build
    $ cdk bootstrap
    $ cdk deploy --all --outputs-file ./cdk-outputs.json --require-approval never
    Please check for each stack provisioned through the terminal and type y to the question.
    Through this task, provision the architecture shown in the figure above. It takes approximately 15-30 minutes.
  2. After the entire stack is deployed, check the cdk-outputs.json file and access the StaticWebDistributionUrl in StaticWebStack through your browser.
    (Ex: "StaticWebDistributionUrl": "xxxxxxxxx.cloudfront.net")
  3. And copy the entire contents of cdk-outputs.json to the clipboard. cdk-outputs
  4. Paste the copied cdk-outputs.json into your browser and click the Submit button. Environment Setting
  5. It's done! Now, sign up with a valid email account and try creating and editing multilingual subtitle files(.srt, .vtt) for your videos.

AWS Services and Pricing

Useful commands

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

Clean-up

cdk destroy

If you don't need the subtitle generator anymore and want to remove all of its stack and resources, do this command.

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages