# One custom variable/value for multiple stages

**URL:** <https://forum.serverless.com/t/one-custom-variable-value-for-multiple-stages/8197>\
**Category:** Serverless Framework\
**Tags:** variables\
**Created:** [May 8, 2019, 8:10pm UTC](https://forum.serverless.com/t/one-custom-variable-value-for-multiple-stages/8197 "2019-05-08T20:10:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajohnson10209](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@ajohnson10209](https://forum.serverless.com/u/ajohnson10209)\
**Post date:** [May 8, 2019, 8:10pm UTC](https://forum.serverless.com/t/one-custom-variable-value-for-multiple-stages/8197/1 "2019-05-08T20:10:19Z")

</div>

Hello everyone!

Is there a more clean/efficient way to assign one custom variable/value to multiple stages without just copying and pasting the variable multiple times? An example of my use case is creating a variable to control the value of private on each one of my endpoints.

Example of the copy and paste method:

custom:  
privateFunction:  
local: false  
dev: true  
stage: true  
production: true

I want to be able to do something like this:

custom:  
privateFunction:  
local: false  
dev, stage, production: true

I haven’t been able to find the answer to this on the web so any help would be appreciated!
