Blue-green deployment variables

We now fully take down our full application and install everything.
We are thinking to switching to a blue-green deployment to limit the downtime.
Now there is 1 environment, called production.
So this has to be split up in a blue and a green environment.
But I have hundreds of variables linked to this Production environment.
What is the best way to migrate them to support a blue green deployment?

Hi Geert,

Thanks for getting in touch,

Thanks for getting in touch! While there’s no way to duplicate mass variables in the UI (you can only duplicate single variables), this is possible for you to do via the API with a custom script. We have a few examples that accomplish similar things around duplicating variables which I hope help you out.

The following script will create multiple environment-scoped variables at once.

This script will migrate variables from a variable set to a specified project.

I hope this helps!

If you require any further assistance or clarification, please let me know :slight_smile:

Kind Regards,


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.