-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment Variable Edits Fail #118
Comments
@edelbalso Got the same issue. Did you fix it? Previewing update (dev)
View Live: https://app.pulumi.com/iajax/service-directory/dev/previews/29b89b3c-82ca-4ad3-a0ac-0a6f4dbef62a
pulumi:pulumi:Stack service-directory-dev running
pkg:index:MbFrontend web
pkg:index:MbProject web
@ Previewing update....
vercel:index:Project web
vercel:index:ProjectDomain webDomain
++ vercel:index:ProjectEnvironmentVariable webKvRestApiUrlEnvironmentVariable create replacement
+- vercel:index:ProjectEnvironmentVariable webKvRestApiUrlEnvironmentVariable replace
++ vercel:index:ProjectEnvironmentVariable webKvRestApiTokenEnvironmentVariable create replacement
+- vercel:index:ProjectEnvironmentVariable webKvRestApiTokenEnvironmentVariable replace
vercel:index:ProjectEnvironmentVariable webVercelUrlEnvironmentVariable
vercel:index:ProjectDomain webRedirect
-- vercel:index:ProjectEnvironmentVariable webKvRestApiTokenEnvironmentVariable delete original
-- vercel:index:ProjectEnvironmentVariable webKvRestApiUrlEnvironmentVariable delete original
pulumi:pulumi:Stack service-directory-dev
Resources:
+-2 to replace
7 unchanged
Updating (dev)
View Live: https://app.pulumi.com/iajax/service-directory/dev/updates/16
pulumi:pulumi:Stack service-directory-dev running
pkg:index:MbFrontend web
@ Updating.....
pkg:index:MbProject web
@ Updating....
vercel:index:Project web
vercel:index:ProjectDomain webDomain
++ vercel:index:ProjectEnvironmentVariable webKvRestApiUrlEnvironmentVariable creating replacement (0s)
vercel:index:ProjectEnvironmentVariable webVercelUrlEnvironmentVariable
++ vercel:index:ProjectEnvironmentVariable webKvRestApiTokenEnvironmentVariable creating replacement (0s)
vercel:index:ProjectDomain webRedirect
@ Updating....
++ vercel:index:ProjectEnvironmentVariable webKvRestApiUrlEnvironmentVariable creating replacement (1s) error: Error creating project environment variable: Could not create project environment variable, unexpected error: ENV_ALREADY_EXISTS - Another Environment Variable with the same Name and Environment exists in your project. Remove it or choose a different Name or Environment.
++ vercel:index:ProjectEnvironmentVariable webKvRestApiUrlEnvironmentVariable **creating failed** error: Error creating project environment variable: Could not create project environment variable, unexpected error: ENV_ALREADY_EXISTS - Another Environment Variable with the same Name and Environment exists in your project. Remove it or choose a different Name or Environment.
@ Updating....
++ vercel:index:ProjectEnvironmentVariable webKvRestApiTokenEnvironmentVariable creating replacement (1s) error: Error creating project environment variable: Could not create project environment variable, unexpected error: ENV_ALREADY_EXISTS - Another Environment Variable with the same Name and Environment exists in your project. Remove it or choose a different Name or Environment.
++ vercel:index:ProjectEnvironmentVariable webKvRestApiTokenEnvironmentVariable **creating failed** error: Error creating project environment variable: Could not create project environment variable, unexpected error: ENV_ALREADY_EXISTS - Another Environment Variable with the same Name and Environment exists in your project. Remove it or choose a different Name or Environment.
pulumi:pulumi:Stack service-directory-dev running error: update failed
pulumi:pulumi:Stack service-directory-dev **failed** 1 error
Diagnostics:
pulumi:pulumi:Stack (service-directory-dev):
error: update failed
vercel:index:ProjectEnvironmentVariable (webKvRestApiTokenEnvironmentVariable):
error: Error creating project environment variable: Could not create project environment variable, unexpected error: ENV_ALREADY_EXISTS - Another Environment Variable with the same Name and Environment exists in your project. Remove it or choose a different Name or Environment.
vercel:index:ProjectEnvironmentVariable (webKvRestApiUrlEnvironmentVariable):
error: Error creating project environment variable: Could not create project environment variable, unexpected error: ENV_ALREADY_EXISTS - Another Environment Variable with the same Name and Environment exists in your project. Remove it or choose a different Name or Environment.
Resources:
7 unchanged
Duration: 6s
|
No, it continues to be a real pain point. We can't seem to figure it out. |
they made some changes and I mirrored them here, can you try again? |
I just tried with |
please open an issue in github.com/vercel/terraform-provider-vercel |
👋 Hi, I saw the issue on the Terraform Provider repo but I'm completely unable to reproduce this in Terraform. I suspect it's something Pulumi-specific (I know pretty much nothing about Pulumi or how this codebase uses the Terraform provider though)! If there is a bug in the terraform provider I'll get it fixed ASAP, but without a terraform reproduction I can't really do anything. :( |
I managed to get this working by specifying
Now I get
It is not clear in the documentation about this option applying to env vars, I had to read the code and try some combinations. |
Hi, I've been using the pulumi-vercel provider with my team to manage multiple environments in various vercel projects, but it seems every time we change an environment variable, we're constantly faced with an error about the environment variable always existing, for example:
The code that sets this is a function that looks like this:
We're having a hard time identifying the pattern that causes this error to trigger. It seems like MOST of the time, when we change an environment variable's setting in our config, it will fail and say the env var already exists instead of updating it.
Here's the summary:
Here's the diff:
We're 100% confident that nobody is going into the vercel UI and manually changing the env vars, nor the pulumi state in the pulumi UI.
Anybody else seen behavior like this?
The text was updated successfully, but these errors were encountered: