-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Describe the bug
I am trying to create an environment variable on a project that needs to be linked to the development, preview and one custom evironment with the following terraform config:
resource "vercel_project_environment_variables" "project_variables" {
project_id = vercel_project.project.id
variables = [
{
key = "NEXT_PUBLIC_APP_BRAND"
value = var.brand
target = ["preview", "development"]
custom_environment_ids = ["acceptance"]
},
}
Terraform init and plan steps go fine but when applying I get the following error:
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ module.shopfront-frontend-gammanl.vercel_project_environment_variables.shopfront_variables,
│ provider "provider[\"registry.terraform.io/vercel/vercel\"]" produced an
│ unexpected new value: .variables: inconsistent values for sensitive
│ attribute.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
The resulting environment variable in the Vercel project dashboard is what we want it to be. It is correct.
Hopefully the error can be removed. I have not tested it yet but I think it breaks our build because I think Terraform exists with exit 0 in this case. And above all it is confusing because the end result is correct.
To Reproduce
Create a Vercel project with Terraform and use the vercel_project_environment_variables Terraform code in the bug description.
Terraform and Vercel Provider Version
Terraform v1.11.4
on linux_amd64
+ provider registry.terraform.io/hashicorp/aws v5.98.0
+ provider registry.terraform.io/vercel/vercel v3.3.0
Additional Details
No response
Metadata
Metadata
Assignees
Labels
No labels