Build and deploy native serverless app

未关闭
#1,082 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
文档
描述清晰度
需要澄清
活跃度
停滞
技术栈
aws, java, spring-boot

调研方向

从 issue 中的 Spring Boot 3 archetype 命令开始,并将其与 pet-clinic native 示例进行比较。记录典型的 native-image 构建和 AWS 部署流程,包括 sam deploy --guided --profile sv 步骤;完成的标准是,能够使用该 archetype 将生成的 CRUD REST 服务进行 native 构建并部署。

由索引模型根据 Issue 内容生成。

描述

docs

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

主要语言
Java
星标
1.6k
派生
575
平均合并
1 天 15 小时
30 天内合并 PR
12

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aws/serverless-java-container 的其他 Issue

查看 aws/serverless-java-container 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。