How To: Lambda Function In AWS (2 Min)

Publié le: 15 juillet 2022
sur la chaîne: Gokce DB
709
16

In this tutorial, you'll learn how to create a lambda function in AWS.


Facebook:   / gokcedbsql  

Video Transcript:

Hi guys, this is Abi from Gokcedb. In this video, you're going to learn How to Create a Lambda Function on AWS. Let’s start by searching for Lambda on AWS Console and then click on the first search result. Next, click on create function and give it a name. For runtime, I’m going to select Python and then hit create function.

Now, in the Code Source Section, you can start writing your Lambda function code. 
Here, I’m going to return the current time using the DateTime module. Next, hit deploy and then click on the test button.

Give a test event a name and then hit save. Click on the test button again and this time you should see a response. Next, click on the configuration tab and hit Create Function URL.

For Authentication, I’m going to select none and then hit save. Now you can invoke your Lambda function by going to this function URL. Every time, I hit refresh, I get the current time which means my function is working as expected.

You can also use the Curl Command from the terminal to call this URL and get the current time. 
Next, let’s click on add trigger and select event bridge from the drop-down. Here I’m going to create a new rule and call it MyRule.

For schedule expression, I’m going to type the rate one minute in parentheses which means I want to fire this trigger every minute. To check the status of the trigger, click on My Rule and make sure the status says enabled. We can also confirm that the event schedule has a fixed rate of one minute.

Next, to check the logs for our Lambda function, click on the Monitor tab and hit logs. 
You can also look at the Metrics by going to the Metrics tab but they do take some time to update. Finally, to delete a Lamba function, go back to the function page and select the function you would like to delete.

Now, choose to delete from the actions drop-down. 
There you have it. Make sure you like, subscribe, and turn on the notification bell. Until next time.


Sur cette page du site, vous pouvez voir la vidéo en ligne How To: Lambda Function In AWS (2 Min) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Gokce DB 15 juillet 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 709 fois et il a aimé 16 téléspectateurs. Bon visionnage!