---
title: "Discussion on \"Exploring Spring Cloud Function, AWS Lambda and AI: building a native serverless application  with Kotlin powered by OpenAI.\" | Hashnode"
description: "Discussion on \"Exploring Spring Cloud Function, AWS Lambda and AI: building a native serverless application  with Kotlin powered by OpenAI.\". Building and deploying a serverless native AWS Lambda with Spring Cloud Function, GraalVM, Kotlin and OpenAI."
url: "https://hashnode.com/posts/aws-lambda-spring-cloud-function-kotlin-graalvm-native-openai/64a12c09b6330fd37c627964"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Exploring Spring Cloud Function, AWS Lambda and AI: building a native serverless application with Kotlin powered by OpenAI.](https://aregall.tech/aws-lambda-spring-cloud-function-kotlin-graalvm-native-openai?utm_source=hashnode&utm_medium=feed)

Building and deploying a serverless native AWS Lambda with Spring Cloud Function, GraalVM, Kotlin and OpenAI.

Jul 2, 2023 · 29 min read · aregall.tech  
Updated Sep 26, 2023  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#openai](https://hashnode.com/tag/openai)
-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#springboot](https://hashnode.com/tag/springboot)
-   [#spring-cloud-function](https://hashnode.com/tag/spring-cloud-function)

## Written by

[Arnau Aregall](https://hashnode.com/@ArnauAregall)

@ArnauAregall · Catalonia, Spain

  
[View profile](https://hashnode.com/@ArnauAregall)

Tech Lead ☕️☁️⚙️

I'm Arnau Aregall, a hands-on Tech Lead with 13+ years of experience building software systems with passion, across Banking, Insurance, HR Tech, and enterprise platforms. I work at the intersection of software architecture, engineering culture, and product delivery. Technically I specialize in backend engineering: Java, Spring Framework, microservices, distributed systems, cloud native applications, and scalable data platforms for B2B/B2C use-cases are my speciality, but I'm equally comfortable steering end-to-end web solutions across the full stack with Angular, React, and Next.js. I believe in building systems that last: SOLID principles, DDD, thoughtful application of design patterns, and a strong focus on code quality and testability are part of how I approach technical decisions — spanning cloud architecture and security, Infrastructure as Code, GitOps, CI/CD, observability, and site reliability.

## Responses 1

Markdown supported · ⌘↵ to post

[Lucas Gustavo de Souza Silva](https://hashnode.com/@lucasgustcaju)

[Feb 8, 2025](https://hashnode.com/posts/aws-lambda-spring-cloud-function-kotlin-graalvm-native-openai/64a12c09b6330fd37c627964/comment/67a7cc626909a7ea6e8ee94c)

I really liked your example; it was very didactic. However, I tried to run it using LocalStack and couldn't get it to work. The application starts but crashes shortly after, without specifying the error. Maybe I'm configuring something incorrectly. Could you run the same example using LocalStack?

[Arnau Aregall](https://hashnode.com/@ArnauAregall)

[Feb 9, 2025](https://hashnode.com/posts/aws-lambda-spring-cloud-function-kotlin-graalvm-native-openai/64a12c09b6330fd37c627964/comment/67a7cc626909a7ea6e8ee94c#reply-67a8f40035fcc119a22d990b)

Thanks for the feedback Lucas, glad you find the article useful!

I did not try deploying this example to a LocalStack instance when I wrote the article.

However looks like it should be possible to follow all the steps but using using `awslocal` and `samlocal` [docs.localstack.cloud/user-guide/integrations/aws…](https://docs.localstack.cloud/user-guide/integrations/aws-sam/)
