sparse-intern-71089
09/21/2018, 10:40 PMwhite-balloon-205
serverless.apigateway.API type would be a great way to do this - but as you note, it has not yet added any direct support for proxy style routes. That is something that can definitely be added to make this simpler in the future.
For now though, you would need to create the API resources and swagger spec manually. You can see an example of that here: https://github.com/pulumi/examples/blob/master/aws-ts-serverless-raw/index.ts and then use a swagger spec along the lines of https://docs.aws.amazon.com/apigateway/latest/developerguide/api-as-kinesis-proxy-export-swagger-with-extensions.html.
Definitely would love to add support to serverless.apigateway.API for this though - it would be much easier there.white-balloon-205
lemon-spoon-91807
09/21/2018, 11:07 PMlemon-spoon-91807
09/21/2018, 11:07 PMlemon-spoon-91807
09/21/2018, 11:08 PMproud-tiger-5743
09/21/2018, 11:39 PMlemon-spoon-91807
09/24/2018, 5:09 AMlemon-spoon-91807
09/24/2018, 5:09 AMwhite-balloon-205
proud-tiger-5743
09/24/2018, 2:50 PM