aws-samples / aws-samples/aws-sam-java-rest

Not working out of the box

未关闭
#2 2 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
437
派生
151
PR 合并指标
30 天内没有已合并 PR

描述

One has to use the following command:
aws cloudformation deploy --template-file /Users/nmas409/aws-sam-java-rest/aws-sam-java-rest/packaged.yaml --stack-name sam-orderHandler --capabilities CAPABILITY_IAM
Waiting for changeset to be created..

But getting this error.

Failed to create the changeset: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state Status: FAILED. Reason: [/Resources/DeleteOrderFunction/Type/Environment/Variables/TABLE_NAME] 'null' values are not allowed in templates

This doesn't work at all:
sam deploy \
--template-file packaged.yaml \
--stack-name sam-orderHandler \
--capabilities CAPABILITY_IAM

贡献指南

打开贡献指南

调研方向

首先检查 packaged.yaml,特别是 DeleteOrderFunction 的 Environment Variables 中的 TABLE_NAME 条目,然后比较文档中记录的 aws cloudformation deploy 和 sam deploy 命令。重现部署失败,并验证示例在没有 null 的 TABLE_NAME 值时能够成功部署。

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

评估

技术栈
aws, java
领域
cloud, devops
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

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