Skip to content

TTS Converter App is a simple AWS app to transform text to speech (Api_gateway, Lambda, Polly, Cloud Watch)

Notifications You must be signed in to change notification settings

mariemssi/TTS-Converter-Challenge-1

Repository files navigation

TTS Converter App - Challenge 1 - Terraform code

image

TTS Converter App is a simple AWS application used to transform text into speech. The first challenge involves writing its corresponding Terraform code.

Steps to run the solution of challenge 1

  1. Clone the project

  2. Zip the lambda code (the .py file must be at the root of your .zip file)

  3. Create an S3 bucket to upload the zip file and update the S3_bucket and S3_key in lambda.tf

  4. Run terraform init

  5. Run terraform apply

  6. Try the app using a curl query using the invokeURL of the API Gateway stage, which you can obtain from the output of the Terraform code or directly from the AWS Management Console (you can use the example in this article )

  7. Once you've finished testing, remember to run terraform destroy to delete all resources if you no longer need them.

Remark

You need to provide the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY credentials to allow Terraform to connect and authenticate successfully to AWS. These credentials can be embedded directly into the Terraform code (although this is not considered best practice), or you can leverage terminal environment variables or use a shared credentials file in the local file system.

You can find more details in article1 and article2

About

TTS Converter App is a simple AWS app to transform text to speech (Api_gateway, Lambda, Polly, Cloud Watch)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published