From the course: Java: Serverless Applications on AWS
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Write a simple Java serverless application
From the course: Java: Serverless Applications on AWS
Write a simple Java serverless application
- [narrator} The best way to start learning is to write your first service application. I'm going to show you how to use the AWS toolkit for IntelliJ to create Lambda function on your local machine. Before we start make sure you have Java 11 installed and Maven, which have been already packaged with IntelliJ. Click on file, new project. Choose AWS and AWS service application. Click next. Now give it the name. Let's call it "Hello world." We have two options, either zip package or an image. The zip file contains the code and any libraries that we will include as dependencies. Lambda introduced image deployment, as many developers use container-based deployment tools and workflows. For this example, we will use zip deployment. As the run time, choose Java 11. We have a couple of SAM templates to choose from. As a Java developer, you can choose Maven or (indistinct). We will choose AWSM Hello World Maven. Now…
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.