Aws lambda ApiGateway::方法的Cloudformation堆栈创建_失败,没有状态原因

Aws lambda ApiGateway::方法的Cloudformation堆栈创建_失败,没有状态原因,aws-lambda,amazon-cloudformation,aws-api-gateway,Aws Lambda,Amazon Cloudformation,Aws Api Gateway,如果删除RestAPI+相关资源,堆栈将成功。我不知道如何获取错误消息,以查看此配置失败的原因 以下是失败资源的JSON: { "RestAPI":{ "Type":"AWS::ApiGateway::RestApi", "Properties":{ "Name":"FD-API" } }, "RestAPIResourceFDImage":{ "Type":"AWS::ApiGateway::Resource"

如果删除RestAPI+相关资源,堆栈将成功。我不知道如何获取错误消息,以查看此配置失败的原因

以下是失败资源的JSON:

{
   "RestAPI":{
      "Type":"AWS::ApiGateway::RestApi",
      "Properties":{
         "Name":"FD-API"
      }
   },
   "RestAPIResourceFDImage":{
      "Type":"AWS::ApiGateway::Resource",
      "Properties":{
         "RestApiId":{
            "Ref":"RestAPI"
         },
         "ParentId":{
            "Fn::GetAtt":[
               "RestAPI",
               "RootResourceId"
            ]
         },
         "PathPart":"{image}"
      },
     "DependsOn": ["RestAPI"]
   },
   "RestAPIMethodGetProperties":{
      "Type":"AWS::ApiGateway::Method",
      "Properties":{
         "AuthorizationType":"NONE",
         "ResourceId":{
            "Ref":"RestAPIResourceFDImage"
         },
         "HttpMethod":"GET",
         "Integration":{
            "Type":"AWS",
            "Credentials": {
                "Fn::GetAtt": [
                    "RoleFDApiGateway",
                    "Arn"
                ]
            },
            "IntegrationHttpMethod":"POST",
            "PassthroughBehavior": "NEVER",
            "Uri":{
               "Fn::Join":[
                  "",
                  [
                     "arn:aws:apigateway:",
                     {
                        "Ref":"AWS::Region"
                     },
                     ":lambda:path/2015-03-31/functions/",
                     {
                        "Fn::GetAtt":[
                           "FunctionFDLambda",
                           "Arn"
                        ]
                     },
                     "/invocations"
                  ]
               ]
            },
            "RequestTemplates": {
                "application/json": {
                    "Fn::Join": [
                        "",
                        [
                            "{ \"key\": \"$input.params('image')\", \"bucket\": \"",
                            {
                                "Ref": "FDBucket"
                            },
                            "\" }"
                        ]
                    ]
                }
            }
         }
        },
        "DependsOn": ["RestAPIResourceFDImage"]
   },
   "ReatAPIDeploymentFD": {
        "Type": "AWS::ApiGateway::Deployment",
        "Properties": {
            "RestApiId": {"Ref": "RestAPI"},
            "StageName": "v1"
        },
        "DependsOn": ["RestAPIMethodGetProperties"]
    }
}

您的
RestAPIMethodGetProperties
外观OK@kixorz它正在毫无理由地失败。我在问题Your
RestapiMethodGedgetProperties
外观中添加了一个屏幕截图OK@kixorz它正在毫无理由地失败。我在问题中添加了一个截图