【发布时间】:2020-01-27 08:58:03
【问题描述】:
我正在尝试部署我的无服务器应用程序。 但是有如下问题。
An error occurred: ApiGatewayResourceServicesServiceidVar - A sibling ({id}) of this resource already has a variable path part -- only one is allowed
下面是我的代码。
updateApplication:
handler: handler.updateApplication
memorySize: 3008
description: Update application
timeout: 30
events:
- http:
path: services/{serviceId}/applications/{applicationId}
method: post
cors: true
authorizer: authorize
request:
parameters:
paths:
serviceId: true
applicationId: true
任何意见或建议将不胜感激。提前谢谢你。
【问题讨论】:
-
检查一下github.com/serverless/serverless/issues/3785 - 看起来 CF 的问题是通过无服务器生成的。
-
感谢@MrkFldig
标签: aws-lambda serverless