
Learn to write, deploy, and expose a serverless API using AWS Lambda and API Gateway in Java, culminating in a production-ready service that resizes images on the fly.
Set up with an IDE and AWS account. Install NetBeans IDE (Java SE or Java EE) or use Eclipse, and start creating a serverless function within the free tier.
Create and deploy a Lambda function on AWS, call it from Java, set up identity and access management and API gateway REST API, then trigger with Cloudwatch events every minute.
Set up a maven java project in the NetBeans IDE, add aws lambda core and maven assembly plugin, and build a fat jar ready for aws lambda deployment.
Implement a simple AWS Lambda function in Java using input and output pojos and a handler. Log to CloudWatch and use the context to expose function name and memory limit.
Deploy a java AWS lambda function from scratch, configure memory and timeout, set the handler, and upload the jar. Then test with events and monitor logs and metrics in CloudWatch.
Create a dedicated IAM user and helloLambda group, attach an inline policy for Lambda invoke, and configure a HelloLambda credentials profile for Java access.
Create a Java project to call an AWS lambda function from your local machine using the hellolambda credentials profile in NetBeans, printing the JSON payload result.
Build and deploy a serverless API with AWS API gateway that invokes a Lambda function via a get request with a name parameter and an invoke URL.
Configure AWS Lambda triggers from services like S3, SNS, and DynamoDB, and schedule recurring executions with CloudWatch events using a rate expression to run every minute.
Build a dynamic image resizer in AWS Lambda that fetches an image URL, resizes it, stores it in S3, and returns the URL of the resized image.
Create an s3 bucket to store resized images, understand the arn format arn:aws:s3:::bucket-name, and grant the lambda function write access via a role.
Set up a java serverless lambda project with dependencies, handler and input class, include image scaler by Riyad Kalla and AWS S3 SDK, and configure a fat jar in pom.xml.
Design and implement a resizer class for a serverless AWS lambda API in Java, featuring createUrl, readImage, resizeImage, storeImage, alreadyExists, getS3Key and getS3Client methods, plus bucketname and publicurl configs.
Explore the resizer class within the context of building a serverless AWS Lambda API in Java.
Explore the createUrl method within a serverless AWS Lambda API built in Java, and learn how it handles URL generation for efficient, scalable cloud functions.
Explore the readImage method for image handling in a serverless AWS Lambda API built with Java.
Discover how the resizeImage method powers a serverless AWS Lambda API built in Java, enabling image resizing within a scalable cloud function.
Implement the storeImageInS3 method in a serverless aws lambda API using java, enabling image upload to s3 and handling integration with lambda.
Examine how the alreadyExists method functions within a serverless AWS lambda API built on AWS in Java.
Implement a handleRequest method to tie together the previously created methods into the final AWS Lambda function.
Deploy a java 8 aws lambda with a fat jar by attaching an iam role for s3 write access, then configure bucketname and publicurl environment variables and test resize flow.
Create an api gateway to invoke a lambda function, using width and height as path parameters and a url as a query parameter, then redirect to the resized image.
Demonstrates testing a serverless aws lambda api via api gateway by resizing an image to three sizes with height and width parameters, illustrating a http 302 redirect in html.
Building a Serverless AWS lambda API on AWS in java is a great way to get started to develop applications on the AWS lambda platform that scale without the hassle of managing servers.
This course is intended for every Java developer that wants to be able to build a productive serverless API within a few hours, using aws lambda and Amazon API Gateway.
The Amazon aws cloud platform offers a lot of amazing services.
However, each one of those services has a learning curve, and it can cost a lot of time become productive with any of these services just by reading the developer guides and taking the Trial and Error approach.
In this course you’ll learn how to write and deploy a aws lambda functions and how to create an AWS API Gateway endpoint to use that AWS lambda function.
At the end of the course you’ll learn to create a production ready webservice on the Amazon Web Services platform that can be used to resize any image on the fly.
We discuss all of the aws-lambda configuration options, how to configure the IAM (AWS Identity and access Management) to give your aws lambda function access to Amazon Web Services such as AWS s3, AWS Cloudwatch, ... and we'll configure AWS API Gateway to create a REST api endpoint for our serverless aws lambda function.
Overview of the Course