我正在运行一个 graphql 服务器。 当我使用 Serverless 部署时,serer 对我来说确实很好用,但是当我使用 cloudformation 部署时它不起作用。 这是我的 template.yml。
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31
Resources:
GraphQL:
Type: AWS::Serverless::Function
Properties:
Handler: src/index.handler
Runtime: nodejs12.x
Events:
AnyRequest:
Type: Api
Properties:
Path: /graphql
Method: ANY
请给我一个建议。