Example
To create a Java lambda using the GUI, first make sure you have your distribution zip ready. You will also need an AWS account that can create lambdas.
- Switch to the AWS Lambda, dismiss the introduction screen (or read the Get Started documentation) and press the button
Create a Lambda Function
.
- Select an appropriate blueprint. A blueprint is an example template that can help you create your lambda. For now, start with a
Blank Function
.
- For now, don't worry about triggers and skip that screen.
- Name your function and upload the zip file.
- On the same configuration screen, type in your Handler name as fully qualified Java class with package, optionally with the method that will handle the requests. If you have used the Java interface from Basic Lambda Code example, the class name is enough.
- On the same screen, select
Create a new role from template(s)
and name your role. The role is used to give your lambda access to other AWS resources. In this case, leave it empty as we don't need any other resources.
- Select the lowest available memory (128MB). The memory influnces cost as well.
Save your function.