---
title: "Comment by Lucas Gustavo de Souza Silva on \"Exploring Spring Cloud Function, AWS Lambda and AI: building a native serverless application  with Kotlin powered by OpenAI.\" | Hashnode"
description: "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 s"
url: "https://hashnode.com/posts/aws-lambda-spring-cloud-function-kotlin-graalvm-native-openai/64a12c09b6330fd37c627964/comment/67a7cc626909a7ea6e8ee94c"
---

[Discussion](https://hashnode.com/posts/aws-lambda-spring-cloud-function-kotlin-graalvm-native-openai/64a12c09b6330fd37c627964)

Comment [Exploring Spring Cloud Function, AWS Lambda and AI: building a native serverless application with Kotlin powered by OpenAI.](https://hashnode.com/posts/aws-lambda-spring-cloud-function-kotlin-graalvm-native-openai/64a12c09b6330fd37c627964)

[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/)
