Skip to content

AWS SAM method response #3388

Answered by GavinZZ
royassis asked this question in Questions
Oct 20, 2023 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

An update to my response. The above answer is incorrect. I noticed that when I deploy this template using sam deploy --guided, it would fail because Resource handler returned message: "No integration defined for method.

After some investigation, this is expected behaviour according to this documentation. Unfortunately, because AWS::ApiGateway::Deployment is a generated resource, there is no simple way to add DependsOn on this generated resource.

That means there is currently no way to explicitly define a AWS::ApiGateway::Method with a SAM API resource. Will bring this issue up to team discussion.


Currently, the only solution is to define your custom OpenAPI definition files or use inlin…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@GavinZZ
Comment options

Answer selected by GavinZZ
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants