利用现有堆栈放大第 2 代沙箱

问题描述 投票:0回答:1
使用命令:

npx amplify 生成配置 --app-id --branch --format json --out-dir config

它在配置文件夹中正确生成 amplifyconfiguration.json 文件,其中包含与已部署的堆栈相对应的正确 ID。

但是然后用命令:

npx 放大沙箱 --config-out-dir ./config --format json

它不关心我尝试过的任何选项,并且每次都会在项目根文件夹中使用新的 amplifyconfiguration.json 文件重新生成一个完整的新堆栈。

这不是我想要的。

我想要的是一个沙箱,它使用来自已部署分支的后端堆栈(带有种子数据)。

amazon-web-services aws-amplify
1个回答
0
投票
用途:

npx 放大沙箱

--out-dir ./config --format json

不是

npx amplify sandbox

--config-out-dir ./config --format json 就像官方文档中解释的那样: - 生成客户端配置

© www.soinside.com 2019 - 2024. All rights reserved.