This example demonstrates how to create an AWS Lambda function for the Amazon SageMaker pipeline and geospatial job example.
A SageMaker pipeline is a series of interconnected steps that can be used to automate machine learning workflows. You can create and run pipelines from SageMaker Studio by using Python, but you can also do this by using AWS SDKs in other languages. Using the SDKs, you can create and run SageMaker pipelines and also monitor operations for them.
You need to build this Lambda function in order to successfully complete the Java example. You can find the full example under workflow_sagemaker_pipes.
To use this tutorial, you need the following:
- An AWS account.
- A Kotlin IDE. (This tutorial uses the IntelliJ IDE with the Kotlin plugin).
- Java JDK 11.
- Gradle 6.8 or higher.
- You must also set up your Kotlin development environment. For more information, see Get started with the SDK for Kotlin.
You can compile the project into a .jar file, which will serve as input for Create and run a SageMaker geospatial pipeline using the SDK for Kotlin.
After you create the Kotlin Lambda project, you can build the required .jar file by using the shadowJar plugin.
Perform the following tasks:
- Create a new Kotlin project using an IDE and import the project from GitHub.
- Create the FAT JAR by running shadowJar.
- Use the AWS Management Console to place the FAT JAR into the Amazon Simple Storage Service (Amazon S3) bucket. This S3 bucket name is input to the Create and run a SageMaker geospatial pipeline using the SDK for Kotlin.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.