Code Monkey home page Code Monkey logo

kotlinlambda's Introduction

Kotlin Lambda test project

This is a minimal project that is a lambda function in AWS which is triggered by an event to an S3 bucket. When invoked, the data from the bucket is loaded (no check if it was added, updatet or deleted). If the content-type of the data is application/json the data is sent to the Kafka cluster specified in the lambda environment.

Used libraries:

  • http4k for the S3 event handling and S3 access
  • Kafka client libraries to send to Kafka

manual setup in AWS

There is no CDK or other setup code in this demo

  • the bucket was created in the AWS console
  • the lambda execution role was manually created, the arn is needed in the install/update script
  • the access policy for the lambda role to read the bucket was added
  • after deployment of the lambda, having the s3 bucket trigger the lambda was manually set up
  • environment entries for Kafka were added after deployment

build and deploy

to build the distribution library

gradle buildLambdaZip

To deploy, it is necessary to log into the AWS account on the command line. After that, the lambda is deployed or updated with

./create-lambda.sh

# or
./update-lambda.sh

kotlinlambda's People

Contributors

pjmeisch-cc avatar renovate[bot] avatar

Watchers

 avatar

kotlinlambda's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

gradle
gradle.properties
settings.gradle.kts
  • org.gradle.toolchains.foojay-resolver-convention 0.8.0
build.gradle.kts
  • org.jetbrains.kotlin.jvm 2.0.0
  • org.http4k:http4k-bom 5.24.0.0
  • org.jetbrains.kotlin:kotlin-stdlib 2.0.0
  • software.amazon.awssdk:s3 2.26.11
  • com.amazonaws:aws-lambda-java-events 3.11.6
  • org.apache.kafka:kafka-clients 3.7.0
  • com.fasterxml.jackson.datatype:jackson-datatype-joda 2.17.1
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 8.8

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.