运行cdk synth --no-staging
导致以下模板无效。yaml文件:
URL https://${Token[TOKEN.320]}.execute-api..amazonaws.com/local
Resources:
genericTableEEB4DDB6:
Type: AWS::DynamoDB::Table
Properties:
KeySchema:
- AttributeName: PK
KeyType: HASH
- AttributeName: SK
KeyType: RANGE
我不知道它产生第一个错误的原因,它给出了以下错误:
Error: Failed to parse template: mapping values are not allowed here
in "<unicode string>", line 2, column 10:
Resources:
有什么建议吗?
有一个console.log()
,它正在打印下面一行URL https://${Token[TOKEN.320]}.execute-api..amazonaws.com/local
。
去掉它,问题就解决了。