使用 Cloudformation 部署的服务器不工作

时间:2021-03-18 13:43:40

标签: lambda graphql amazon-cloudformation

我正在运行一个 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

请给我一个建议。

0 个答案:

没有答案
相关问题