Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 取消选中&x27;使用lambda代理集成';云层形成_Amazon Web Services_Aws Lambda_Amazon Cloudformation_Aws Api Gateway_Api Gateway - Fatal编程技术网

Amazon web services 取消选中&x27;使用lambda代理集成';云层形成

Amazon web services 取消选中&x27;使用lambda代理集成';云层形成,amazon-web-services,aws-lambda,amazon-cloudformation,aws-api-gateway,api-gateway,Amazon Web Services,Aws Lambda,Amazon Cloudformation,Aws Api Gateway,Api Gateway,我有一个云形成模板来创建API网关资源 APIGateWayEQFAPIRequestGET: DependsOn: LambdaEQFAPIPermission Type: 'AWS::ApiGateway::Method' Properties: AuthorizationType: NONE HttpMethod: GET Integration: Type: AWS IntegrationHttp

我有一个云形成模板来创建API网关资源

APIGateWayEQFAPIRequestGET:
    DependsOn: LambdaEQFAPIPermission
    Type: 'AWS::ApiGateway::Method'
    Properties:
      AuthorizationType: NONE
      HttpMethod: GET
      Integration:
        Type: AWS
        IntegrationHttpMethod: POST
        Uri: !Join 
          - ''
          - - 'arn:aws:apigateway:'
            - !Ref 'AWS::Region'
            - ':lambda:path/2015-03-31/functions/'
            - !GetAtt 
              - LambdaEQFReportsAPIFunction
              - Arn
            - /invocations
        IntegrationResponses:
          - StatusCode: 200
            ResponseTemplates:
              application/json: $input.json('$.body')
        RequestTemplates:
          application/json: '{}'

      ResourceId: !GetAtt 
        - APIGateWayEQFAPI
        - RootResourceId
      RestApiId: !Ref APIGateWayEQFAPI
      MethodResponses:
        - StatusCode: 200
一切正常,但选中了“使用Lambda代理集成”。我可以手动取消选中它,但是如何使用cloudformation取消选中它呢


我尝试了不同的集成。类型:AWS/AWS_PROXY对它都没有任何影响

我明白了为什么会这样

当我运行堆栈时,我使用了AWS_代理。然后将AWS_PROXY更改为AWS并没有部署该方法。我不得不重新命名这个方法,一切看起来都和预期的一样。

您尝试过所有类型吗
HTTP
HTTP\u PROXY
AWS
AWS\u PROXY
?感谢@kichik的回复。我想到了如何修复它。请看下面我的答案在这里你看到这个“使用Lambda代理集成”-我正在搜索它取消选中刚刚发现的。。。它位于API网关->选择特定Lambda(方法执行)->集成请求->取消选中“使用Lambda代理集成(复选框)”