From the course: Hands-On Development in AWS

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Deploying a Lambda function

Deploying a Lambda function

- I mentioned in the lesson that Lambda is often used with API gateway. So I'm going to give a quick demonstration of deploying a Lambda function that is triggered by an API gateway API. Here in the web console, we are going to go to the Lambda service. Here in Northern Virginia, I have no functions created. I'm going to go ahead and create a function and I will use a blueprint. This is just as an example. Let's search in here for hello world. We have a hello world function for nodejs as well as for Python. We're going to use the nodejs hello world blueprint and hit configure. We're going to call this square root or sqrt. Create a new role with basic Lambda permissions. So recall that Lambda requires an execution role. That execution role is going to have permissions associated with it that allows Lambda to do what you're asking it to do. If you were asking Lambda to write into a Dynamo DB table, your execution role would need to permit via policies via attached permissions permit…

Contents