AWS_Session_11_27-06-2023
AWS_Session_11_27-06-2023
AWS Session
Summary 27-06-2023
● AWS Lambda is a serverless computing service that lets you run code
without provisioning or managing servers. You can think of it as a way to
execute code in response to events or triggers. Lambda functions are event-
driven and can be used to perform various tasks.
● Create a bucket in the S3 service. The bucket name should be unique. And
upload a file to the bucket.
● Create a Lambda function, give the name of the function, select runtime as
python3.10
● Select event types PUT, select the created Lambda function, and save it.
● Now you can see Lambda service is an integrated S3 service. Run the
lambda function. The first time it asks to create an event so, create an event.
Give the name of the event and save it.
● Now go to Transcribe service click on Create jobs, and give the name of the
job.
● In the transcribe while creating jobs we have to give the source URL that
you will get from the S3 bucket go inside the uploaded file there you will get
this URL.
● Here you have to give the Resource URL, click on next and create a job.
● Write this code in the lambda function and give your job name and
OutputBucket name also. first, deploy and run this code.
● Now again run the lambda function this time lambda will run successfully.
● Now go to the S3 bucket and upload an audio file. As soon as this file
upload lambda function will automatically trigger.
● In the cloud watch, you can see the logs of the file, our code is successfully
run. Here you can see the result.
● Go to Transcribe service there you can see the status complete click on that.
● Inside that job, you can see the “output data location”, click on that.
● It will redirect you to the S3 bucket. This is the output file where our audio
file is converted into text. Click on download.
● After downloading, open this file here you can see the script of a song that I
have uploaded in S3 and it is converted into text.