Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and deploy native serverless app #1082

Open
VSVDEv opened this issue Sep 30, 2024 · 1 comment
Open

Build and deploy native serverless app #1082

VSVDEv opened this issue Sep 30, 2024 · 1 comment
Labels

Comments

@VSVDEv
Copy link

VSVDEv commented Sep 30, 2024

To help us debug your issue fill in the basic information below using the options provided

Serverless Java Container version: eg. 1.5

Implementations: Spring Boot 2

Framework version: eg SpringBoot 3.3.4

Frontend service: REST API

Deployment method: eg SAM

Scenario

I am tryin g to build native app and deploy, there are no instructions about how to build and deploy native app. I tried to use example pet-clinic native but I can only build it. Please provide typical way to build native app and deploy using architype

Expected behavior

Describe how you would expect the application to behave

Actual behavior

Describe what you are seeing instead

Steps to reproduce

generate app and create CRUD rest service

windows

mvn archetype:generate -DgroupId=dev -DartifactId=lambda -Dversion=1.0 ^
-DarchetypeGroupId=com.amazonaws.serverless.archetypes ^
-DarchetypeArtifactId=aws-serverless-springboot3-archetype ^
-DarchetypeVersion=2.0.1

linux

mvn archetype:generate -DgroupId=dev -DartifactId=lambda -Dversion=1.0 \
-DarchetypeGroupId=com.amazonaws.serverless.archetypes \
-DarchetypeArtifactId=aws-serverless-springboot3-archetype \
-DarchetypeVersion=2.0.1

build native image

deploy to aws
sam deploy --guided --profile sv

@VSVDEv VSVDEv changed the title Build and deploy serverless app Build and deploy native serverless app Sep 30, 2024
@deki
Copy link
Collaborator

deki commented Sep 30, 2024

Agree the documentation for the native part is very poor. Currently we don't offer a archetype for it so you'd have to adapt the sample https://github.com/aws/serverless-java-container/tree/main/samples/springboot3/pet-store-native and apply it to your own application.

In addition we offer a walk-though workshop: https://catalog.workshops.aws/java-on-aws-lambda

Leaving this issue open to improve the docs.

@deki deki added the docs label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants