How do I cloudform an API gateway resource with a lambda proxy integration

后端 未结 3 953
一整个雨季
一整个雨季 2021-02-07 04:05

I\'ve been trying to work out how to express (in cloudformation) an API Gateway Resource that has a Lambda function integration type using the Lambda Proxy integration.

3条回答
  •  日久生厌
    2021-02-07 04:11

    I have solved this same issue by simple changing the

    Integration:
    Type: AWS_PROXY
    

    To

    Integration:
    Type: AWS
    

    The cloud formation documentation currently is scarce and the API gateway cloudformation documentation doesn't match up to what can be seen on the console which hinders anyone who is trying to resolve an issue.

    Hope this helps!

提交回复
热议问题