使用 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

请给我一个建议。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)