Move a variable to a scope to enother

Hi!

In my “Production” environment, I have several variables which are in the “service” scope and which I need to pass into the “environment” scope.

If I delete it (from the service) and recreate it with the correct scope (without intermediate redeployment), I get an error telling me that it already exists. Is there a trick to get around this?

Thanks!

Hello,

Would you mind giving me the console url of your service and the variable name you try to change ?

Of course: https://console.qovery.com/organization/9646e2ff-0429-4b78-ab24-431546fed92b/project/3304425f-652a-4548-ac73-001dd8c333f6/environment/f02445c6-6c93-4895-a060-e1f2e77006e8/services/general

I reproduce the problem with all variables containing “HUBPOST”, for example.

Thank you,
looking at it

Can you still reproduce the issue ?

I don’t see any variable named HUBPOST in any of your services, and I tried to create a new var called HUBPOST and it is working fine.

Sorry, HUBSPOT (eg: HUBSPOT_FORM_ID)

Thanks :pray:

So the issue is that HUBSPOT_FORM_ID was declared twice, in 2 services.
You first need to delete it in those 2 services before being able to add it at environment level.

I have done it for HUBSPOT_FORM_ID