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.
- AWS Account
- A user with AdministratorAccess to your account to provision AWS resources for you like S3 Bucket, ApiGateway, Cloudfront, DynamoDB, Cognito, ETC.
- Configuration and credential file settings - Please refer to the link to set the credentials on your computer.
- Install AWS Cloud Development Kit (CDK) v2
-
Please check for each stack provisioned through the terminal and type
$ 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
y
to the question.
Through this task, provision the architecture shown in the figure above. It takes approximately 15-30 minutes. - After the entire stack is deployed, check the
cdk-outputs.json
file and access theStaticWebDistributionUrl
inStaticWebStack
through your browser.
(Ex:"StaticWebDistributionUrl": "xxxxxxxxx.cloudfront.net"
) - And copy the entire contents of
cdk-outputs.json
to the clipboard. - Paste the copied
cdk-outputs.json
into your browser and click theSubmit
button. - It's done! Now, sign up with a valid email account and try creating and editing multilingual subtitle files(.srt, .vtt) for your videos.
- Amazon Transcribe
- Amazon Translate
- Amazon S3
- Amazon CloudFront
- Amazon Cognito
- Amazon API Gateway
- Amazon DynamoDB
- AWS Lambda
- AWS Step Functions
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template
cdk destroy
If you don't need the subtitle generator anymore and want to remove all of its stack and resources, do this command.