AWS Java Lambda Development: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 17: Line 17:


=Dependencies=
=Dependencies=
<font color=darkgray>TODO: Gradle dependencies for ASW SDK for Java 2 look differently: https://kb.novaordis.com/index.php/AWS_SDK_for_Java_Version_2#Gradle_Project</font>


SDK 1.0: http://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-lambda/
SDK 1.0: http://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-lambda/

Revision as of 05:24, 3 October 2021

External

Internal

Overview

Playground

https://github.com/ovidiuf/playground/tree/master/amazon/lambda/java/01-simplest

Dependencies

TODO: Gradle dependencies for ASW SDK for Java 2 look differently: https://kb.novaordis.com/index.php/AWS_SDK_for_Java_Version_2#Gradle_Project

SDK 1.0: http://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-lambda/

repositories {
    
    mavenCentral()
}

dependencies {

    // SDK 1
    implementation 'com.amazonaws:aws-java-sdk-lambda:1.11.509'

    // This is required for integration with API Gateway
    implementation 'com.amazonaws:aws-lambda-java-events:2.2.5'
    implementation 'com.amazonaws:aws-lambda-java-core:1.2.0'
}

Deploy the AWS Lambda Function