-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Description
Running this terraform code:
terraform {
required_version = ">= 1.2.7"
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = ">= 2.22.1"
}
vercel = {
source = "vercel/vercel"
version = ">= 0.7.1"
}
}
cloud {
organization = "syncbase"
workspaces {
name = "syncbase"
}
}
resource "vercel_project" "frontend" {
name = "frontend-syncbase"
framework = "nextjs"
}
resource "vercel_project_domain" "default" {
project_id = vercel_project.frontend.id
domain = "syncbase.tv"
}
resource "vercel_dns_record" "a" {
domain = vercel_project_domain.default.domain
name = ""
type = "A"
}
resource "vercel_dns_record" "cname" {
domain = vercel_project_domain.default.domain
name = "www"
type = "CNAME"
value = vercel_project_domain.default.domain
}
Raises the following two errors:
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to vercel_dns_record.cname, provider "provider[\"registry.terraform.io/vercel/vercel\"]" produced an unexpected new value: .ttl: was null, but
│ now cty.NumberIntVal(60).
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: Error creating DNS Record
│
│ with vercel_dns_record.a,
│ on main.tf line 103, in resource "vercel_dns_record" "a":
│ 103: resource "vercel_dns_record" "a" {
│
│ Could not create DNS Record, unexpected error: bad_request - Invalid request: missing required property `value`.
╵
As stated in the docs:
Both the ttl
and value
option are optional so they shouldn't need be specified in the terraform configuration
Metadata
Metadata
Assignees
Labels
No labels