From the course: Java: Serverless Applications on AWS
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Deploy and invoke Java serverless app from IntelliJ IDEA
From the course: Java: Serverless Applications on AWS
Deploy and invoke Java serverless app from IntelliJ IDEA
- We are developers and as developers, we like to test things first in a local environment. In this video, I'm going to show you how to use AWS toolkit to run and deploy Lambda to local machine and to the cloud. Make sure you have App class, open. Notice a Lambda icon, left of the class name. Here, we have the option to Run or Debug our Lambda. Let's choose Run. Runtime is already set as Handler. We need to set class and the method name, but since App class implements request handler interface, it is enough to have just class name. Timeout is the amount of time that Lambda allows a function to run before stopping it. We will set it to 10 seconds. Since Java is memory hungry, we will give it around one gigabyte of RAM. You also need to give it some input. Since this is accepting JSON object, we will just add empty brackets and click Run. So what it is doing now, it is running the Lambda function locally. The way this…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.