这是indexloc提供的服务,不要输入任何密码
Skip to content

[BUG] vercel_project_deployment_retention results in "Provider returned invalid result object after apply" #322

@mns-james-cross

Description

@mns-james-cross

Describe the bug

When attempting to apply a deployment retention I get this error from Terraform:

│ Error: Provider returned invalid result object after apply
│
│ After the apply operation, the provider still indicated an unknown value for module.app.vercel_project_deployment_retention.this.team_id. All values must be known after apply, so this is always a bug in the provider and should be reported
│ in the provider's own repository. Terraform will still save the other known object values in the state.

To Reproduce

Run terraform apply on the below. The plan works, and the apply does actually happen (I can see the values in the Vercel dashboard), but the error above is shown on the terminal.

resource "vercel_project_deployment_retention" "this" {
  project_id            = vercel_project.this.id

  expiration_preview    = "1m"
  expiration_production = "3m"
  expiration_canceled   = "1m"
  expiration_errored    = "1m"
}

Terraform and Vercel Provider Version

Terraform v1.8.3
on darwin_arm64
+ provider registry.terraform.io/vercel/vercel v3.1.0

Your version of Terraform is out of date! The latest version
is 1.11.3. You can update by downloading from https://www.terraform.io/downloads.html

Additional Details

As a result, all subsequent usages of terraform plan or terraform apply note that the resource is tainted and so it replaces it every time.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions