0

我正在尝试按照此https://github.com/microapps/MoonMail设置月球邮件

我已经成功完成了这些步骤

npm install
cd events/
npm install
cd ../api/
npm install

初始化无服务器项目:

sls project init -c -n your-lower-case-project-name 

我还添加了文件s-variables-<stage>-<region> where stage is the stage of my serverless i.e prod and region is us-west-2

当我运行这个命令

sls resources deploy

我面临这些错误

在此处输入图像描述

在此处输入图像描述

我已经将默认变量添加到s-variables-<stage>-<region>文件中,但仍然显示这些变量的警告。

有什么解决办法吗?

4

1 回答 1

1

As far as I see the problem is that you are still missing a couple variables which are required to deploy DynamoDB tables and indexes, you need to set in your s-variables-<stage> all those ending in RCU and WCU (Read and Write Capacity Units).

You will notice that we have defaultRCU and defaultWCU but others like campaignsRCU and campaingsWCU, this is because we want to use different capacities for different tables and indexes according to our usage patterns but what I recommend is to replace everything ending in WCU or RCUby defaultWCU and defaultRCU respectively inside https://github.com/microapps/MoonMail/blob/master/s-resources-cf.json so you only have to configure these 2 variables in your s-variables-<stage>. Hope it helps.

于 2017-10-31T11:43:57.853 回答