AWS SAM: The REST API doesn't contain any methods

0

Hello,

I'm getting started with AWS SAM, and built a simple deployment based on this example from Amazon:
https://github.com/awslabs/serverless-application-model/blob/master/examples/2016-10-31/api_swagger_cors/template.yaml .

My (very similar) code is available there:
https://gist.github.com/pierreis/ca0c4fbe3a1f60a5729d386511d37fd8

When deploying, I am getting the following message: The REST API doesn't contain any methods (Service: AmazonApiGateway; Status Code: 400; Error Code: BadRequestException)

Checking online for this error, I find many occurrences, but they seem to be related to manually creating a deployment, which I am not doing here.

My code being extremely similar to the Amazon example, I cannot pinpoint the error.

Thanks.

1回答
1

I did continue investigating the issue, and it seems that the error is indeed mine: Swagger definition requires to define methods in the body directly ; I just wanted to use it to create the resource policy.

Looks like I'm waiting for this:
https://github.com/awslabs/serverless-application-model/issues/514

Univ
回答済み 5年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ