在serverless.yml中,我正在使用AWS step function...其中一个状态是Wait,我正在尝试使用其他状态的输出...但生成的CFT将\“放在变量周围,因此该状态引擎的部署将失败。如何处理此问题?我得到以下错误:
无效的状态机定义:'SCHEMA_VALIDATION_FAILED:在/States/WaitTill/Seconds为整数类型的期望值
尝试放置一个硬编码的整数值,它工作正常。sls版本为1.38.0
State from serverless.yml file
WaitTill:
Type: Wait
Seconds: $.Result.seconds_to_wait
Next: ProcessAhead
Here is the converted CFT json
\"WaitTill\": {\n \"Type\": \"Wait\",\n \"Seconds\": \"$.Result.seconds_to_wait\"发布于 2020-04-20 08:17:38
要使用变量,需要使用字段"SecondsPath“而不是”Second“。它的工作方式与Result与ResultPath相同。
https://stackoverflow.com/questions/55774522
复制相似问题