-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Describe the bug
I'm running version 3.5.1
resource "vercel_project" "this" {
name = "learning-vercel"
framework = "nextjs"
oidc_token_config = {
issuer_mode = "global"
}
git_repository = {
type = "github"
repo = var.git_repository
}
root_directory = "app"
}
But when i apply, it crashes with:
resource "vercel_project" "this" {
+ auto_assign_custom_domains = true
+ automatically_expose_system_environment_variables = (known after apply)
+ customer_success_code_visibility = (known after apply)
+ directory_listing = (known after apply)
+ enable_preview_feedback = (known after apply)
+ enable_production_feedback = (known after apply)
+ framework = "nextjs"
+ function_failover = (known after apply)
+ git_fork_protection = true
+ git_lfs = (known after apply)
+ git_repository = {
+ production_branch = (known after apply)
+ repo = "xx/xx"
+ type = "github"
}
+ id = (known after apply)
+ name = "learning-vercel"
+ node_version = (known after apply)
+ oidc_token_config = {
+ issuer_mode = "global"
}
+ on_demand_concurrent_builds = (known after apply)
+ preview_comments = (known after apply)
+ prioritise_production_builds = (known after apply)
+ protection_bypass_for_automation_secret = (sensitive value)
+ resource_config = (known after apply)
+ root_directory = "app"
+ serverless_function_region = (known after apply)
+ team_id = (known after apply)
+ vercel_authentication = {
+ deployment_type = "standard_protection"
}
}
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to module.vercel.vercel_project.this, provider
│ "module.vercel.provider["registry.terraform.io/vercel/vercel"]" produced
│ an unexpected new value: .oidc_token_config.enabled: was null, but now
│ cty.False.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
Operation failed: failed running terraform apply (exit 1)
- When
enabled
is set tofalse
oidc_token_config = {
enabled = false
issuer_mode = "global"
}
I get this error
Error: Invalid value provided
│
│ with vercel_project.this,
│ on main.tf line 10, in resource "vercel_project" "this":
│ 10: resource "vercel_project" "this" {
│
│ This field is deprecated and can no longer be specified as 'false'
To Reproduce
1. resource "vercel_project" "this" {
name = "example"
framework = "nextjs"
oidc_token_config = {
issuer_mode = "global"
}
}
Run terraform apply. You get:
Error: Provider produced inconsistent result after apply
│
│ When applying changes to module.vercel.vercel_project.this, provider
│ "module.vercel.provider["registry.terraform.io/vercel/vercel"]" produced
│ an unexpected new value: .oidc_token_config.enabled: was null, but now
│ cty.False.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
1. resource "vercel_project" "this" {
name = "example"
framework = "nextjs"
oidc_token_config = {
enabled = false
issuer_mode = "global"
}
}
Run terraform apply. You get:
Error: Invalid value provided
│
│ with vercel_project.this,
│ on main.tf line 10, in resource "vercel_project" "this":
│ 10: resource "vercel_project" "this" {
│
│ This field is deprecated and can no longer be specified as 'false'
Terraform and Vercel Provider Version
Terraform v1.11.0
on darwin_arm64
+ provider registry.terraform.io/vercel/vercel v3.5.1
Your version of Terraform is out of date! The latest version
is 1.12.2. You can update by downloading from https://www.terraform.io/downloads.html
Additional Details
No response