# Use serverless without lambda function

**URL:** <https://forum.serverless.com/t/use-serverless-without-lambda-function/2793>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [September 29, 2017, 8:23am UTC](https://forum.serverless.com/t/use-serverless-without-lambda-function/2793 "2017-09-29T08:23:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![themyth92](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/themyth92/32/1096_2.png) [@themyth92](https://forum.serverless.com/u/themyth92)\
**Post date:** [September 29, 2017, 8:23am UTC](https://forum.serverless.com/t/use-serverless-without-lambda-function/2793/1 "2017-09-29T08:23:16Z")

</div>

Hi, is there any way to use serverless without configuration for lambda function. I try to create **serveless.yml** without **functions** attribute and some of the attributes have not been created inside final cloudformation file ( **APIGatewayDeployment** , **ApiGatewayRestApi** , …). I use mainly **resources** attributes in serverless.yml.

---

<div class="post-metadata">

**Author:** ![alexdebrie1](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/alexdebrie1/32/899_2.png) [@alexdebrie1](https://forum.serverless.com/u/alexdebrie1)\
**Post date:** [September 29, 2017, 1:21pm UTC](https://forum.serverless.com/t/use-serverless-without-lambda-function/2793/2 "2017-09-29T13:21:05Z")

</div>

@themyth92 You can use Serverless without any Lambda functions, and it’s a pattern we see a lot with people to provision infrastructure that may be more permanent than a particular service.

Are you defining `APIGatewayDeployment` and `ApiGatewayRestApi` in your stack? Right now, Serverless will only provision those if you have a Lambda function with an `http` event hooked up to it. If you don’t have those, you’ll have to write the CloudFormation yourself in the `resources` section.

---

<div class="post-metadata">

**Author:** ![themyth92](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/themyth92/32/1096_2.png) [@themyth92](https://forum.serverless.com/u/themyth92)\
**Post date:** [October 2, 2017, 8:16am UTC](https://forum.serverless.com/t/use-serverless-without-lambda-function/2793/3 "2017-10-02T08:16:45Z")

</div>

Ok, really appreciate your response 🙂
