# How to create proxy resources with methods that are handled by lambda proxies?

**URL:** <https://forum.serverless.com/t/how-to-create-proxy-resources-with-methods-that-are-handled-by-lambda-proxies/12070>\
**Category:** Serverless Framework\
**Created:** [July 21, 2020, 11:12am UTC](https://forum.serverless.com/t/how-to-create-proxy-resources-with-methods-that-are-handled-by-lambda-proxies/12070 "2020-07-21T11:12:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![technikhil314](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@technikhil314](https://forum.serverless.com/u/technikhil314)\
**Post date:** [July 21, 2020, 11:12am UTC](https://forum.serverless.com/t/how-to-create-proxy-resources-with-methods-that-are-handled-by-lambda-proxies/12070/1 "2020-07-21T11:12:58Z")

</div>

I want to create proxy resource with serverless framework. I was successful in setting up basic api gateway pretty quickly. But I can not find any documentation for how to create proxy resource that handles all routes under it via a lambda proxy. Can some one help me?

Here is what I want to achieve about api gateway resources will all methods having their own lambda proxies.

![Screenshot from 2020-07-21 16-38-27](https://canada1.discourse-cdn.com/flex036/uploads/serverless/original/2X/b/bbd1e16ed560ab4175d3a282249554bd346374d5.png)

Can some one help me understand how to do this? or help me with finding it in the documentation?

---

<div class="post-metadata">

**Author:** ![csmiller4567](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/csmiller4567/32/4429_2.png) [@csmiller4567](https://forum.serverless.com/u/csmiller4567)\
**Post date:** [July 23, 2020, 6:31pm UTC](https://forum.serverless.com/t/how-to-create-proxy-resources-with-methods-that-are-handled-by-lambda-proxies/12070/2 "2020-07-23T18:31:27Z")

</div>

Documentation on this topic is [here](https://www.serverless.com/framework/docs/providers/aws/events/apigateway/#lambda-proxy-integration).

This is (loosely) the configuration you would need:

```
ProxyFunction:
handler: proxyFunction.handler
events:
  - http:
      path: download1/{proxy+}
      method: ANY
      cors: true

```

CORS can be a tricky issue to resolve. [This documentation](https://www.serverless.com/blog/cors-api-gateway-survival-guide) has been super helpful for that.

---

<div class="post-metadata">

**Author:** ![technikhil314](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@technikhil314](https://forum.serverless.com/u/technikhil314)\
**Post date:** [July 25, 2020, 9:31am UTC](https://forum.serverless.com/t/how-to-create-proxy-resources-with-methods-that-are-handled-by-lambda-proxies/12070/3 "2020-07-25T09:31:07Z")

</div>

Sorry for late reply. But I ended up finding more rigid solution for me which is path params. But I was missing `method: ANY`. is it a mandate for proxy resources. @csmiller4567 I tried the same with GET but it gave me error saying that + and { are invalid characters in the path value
