# Conditional serverless.yml based on stage?

**URL:** <https://forum.serverless.com/t/conditional-serverless-yml-based-on-stage/1763>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [April 25, 2017, 7:59pm UTC](https://forum.serverless.com/t/conditional-serverless-yml-based-on-stage/1763 "2017-04-25T19:59:19Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![iDVB](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/idvb/32/990_2.png) [@iDVB](https://forum.serverless.com/u/iDVB)\
**Post date:** [November 29, 2017, 4:47pm UTC](https://forum.serverless.com/t/conditional-serverless-yml-based-on-stage/1763/9 "2017-11-29T16:47:47Z")

</div>

@alechewitt  
Not sure what is happening in your example…

Is the “self.enabled.other” part a typo?  
Should it not be…  
"${self:custom.enabled.other}"

also… I didn’t know it was legit to set vars outside of “custom”?

---

_[View the full topic](https://forum.serverless.com/t/conditional-serverless-yml-based-on-stage/1763)._
