【发布时间】:2020-10-30 03:50:46
【问题描述】:
我正在通过 CloudFormation 部署 Lambda(和 APIGateway 配置),最终使用 Serverless。
cloudformation-template-update-stack.json 中生成的 CloudFormation pathmapping 部分如下所示:
"pathmapping": {
"Type": "AWS::ApiGateway::BasePathMapping",
"Properties": {
"BasePath": "demolambda",
"DomainName": "staging-api.<REDACTED>",
"RestApiId": {
"Ref": "ApiGatewayRestApi"
},
"Stage": "staging"
}
}
当它运行时,我得到了错误:
pathmapping - Invalid stage identifier specified.
我不太确定这意味着什么。堆栈被上传到 S3,一切看起来都很好,但是,无论我如何使用它,我都会继续收到此消息。
想知道是否有人对导致此问题的原因或如何解决此问题有任何想法?
【问题讨论】:
-
一些后续和(hacky)修复serverless issue#4029
标签: amazon-web-services amazon-cloudformation serverless-framework