I will need to sanitize the relevant configuration files, will attach shortly.
Debug Output
Same as configuration files.
Expected Behavior
I used terraform import to import a vercel resource into my state, but the multiple domain blocks configured in that resource were not imported, so terraform wants to change the resource unnecessarily.
Actual Behavior
Terraform wants to change project domains to match
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform import vercel_project.foo myorg/foo
[ Ensure that values in my terraform config match configured values in Vercel. ]
terraform plan
# vercel_project.foo will be updated in-place
~ resource "vercel_project" "foo" {
id = "[REDACTED]"
name = "foo"
# (9 unchanged attributes hidden)
+ domain {
+ git_branch = "main"
+ name = "foo.bar"
}
+ domain {
+ git_branch = "main"
+ name = "www.foo.bar"
}
# (1 unchanged block hidden)
}
Terraform Version
1.0.11
Affected Resource(s)
Terraform Configuration Files
Debug Output
Same as configuration files.
Expected Behavior
I used
terraform import
to import a vercel resource into my state, but the multipledomain
blocks configured in that resource were not imported, so terraform wants to change the resource unnecessarily.Actual Behavior
Terraform wants to change project domains to match
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform import vercel_project.foo myorg/foo
terraform plan
Plan: 0 to add, 1 to change, 0 to destroy.