# How to create serverless.yml with different envs

**URL:** <https://forum.serverless.com/t/how-to-create-serverless-yml-with-different-envs/14563>\
**Category:** Serverless Framework\
**Created:** [March 29, 2021, 3:58pm UTC](https://forum.serverless.com/t/how-to-create-serverless-yml-with-different-envs/14563 "2021-03-29T15:58:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijaya](https://avatars.discourse-cdn.com/v4/letter/v/e47774/32.png) [@vijaya](https://forum.serverless.com/u/vijaya)\
**Post date:** [March 29, 2021, 3:58pm UTC](https://forum.serverless.com/t/how-to-create-serverless-yml-with-different-envs/14563/1 "2021-03-29T15:58:43Z")

</div>

How could we create serverless.yml file where I can add only 2 lambdas(with role and sns) in dev and 3 lambdas(with role and sns ) in staging and prod
