A sample application with Lambda
We are going to execute a sample application within Lambda step by step. To run a Python application on Lambda, take the following steps:
- Go to the AWS Management Console.
- Type
lambda
in the search box and click on the Lambda service:
Figure 3.1 – AWS Management Console
- Click Create function.
- On the Create function page, select Use a blueprint, and within the blueprint, select the hello-world-python application:
Figure 3.2 – Create function
- On the next screen, enter the name of the Lambda function and select the security settings:
Figure 3.3 – Naming the function
When you run a Lambda function, you need to define the role that Lambda can use to be able to do some actions, which is done under Execution role. The role defines your permissions in AWS and how to access other AWS services. For example, if Lambda...