AWS Lambda Triggers on S3 Upload

S3 Upload Triggers AWS Lambda using Java 8 and AWS SDK 1.x.

Getting Started

Follow the below instructions to get started with the source code:

Requirements

Reference

Dependencies

  • AWS Java SDK Amazon S3:
<dependencies>
    <!-- S3 AWS SDK for Java 1.x -->
    <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-java-sdk-s3</artifactId>
        <version>1.12.770</version>
    </dependency>
    
    <!-- Lambda Core, AWS SDK, this is still available only in Java 1.x  -->
    <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-lambda-java-core</artifactId>
        <version>1.2.3</version>
    </dependency>
    
    <!-- Lambda events, AWS SDK, this is still available only in Java 1.x  -->
    <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-lambda-java-events</artifactId>
        <version>3.13.0</version>
    </dependency>
    
</dependencies>

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>software.amazon.awssdk</groupId>
            <artifactId>bom</artifactId>
            <version>${aws.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>