Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“Provider produced inconsistent final plan” #289

Open
1 of 3 tasks
devopsix opened this issue Feb 14, 2023 · 1 comment
Open
1 of 3 tasks

“Provider produced inconsistent final plan” #289

devopsix opened this issue Feb 14, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@devopsix
Copy link

When applying a Terraform configuration which includes a herokux_app_container_release resource Terraform reports this error:

image

What is the nature of the issue?

  • Bug
  • Feature
  • Enhancement

Terraform Version / Provider Versions

image

Affected Resource

  • herokux_app_container_release

Terraform Configuration Files

This is an excerpt of the configuration. The actual configuration is a lot larger and unfortunately some parts cannot be disclosed without significant redaction.

resource "herokux_app_container_release" "app" {
  app_id = heroku_app.app.id
  image_id = data.herokux_registry_image.app.digest
  process_type = var.process_type
}

Expected Behavior

terraform apply succeeds and creates/updates the resource.

Actual Behavior

See error message above.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform init
  2. terraform plan -lock=true -input=false -var-file=../images.tfvars.json -out=my.tfplan
  3. terraform apply -lock=true -input=false -auto-approve my.tfplan

Important Factoids

We have recently updated from herokux v0.33.0 to v1.2.0. But we have had multiple successful runs of terraform apply since then. Also, other instances of this resource contained in the same configuration can be deployed successfully.

State contents of the “bad” resource:

image

The same configuration contains more instances of the herokux_app_container_release resource. A noticable difference is that their state does not have the timeouts attribute:

image

HashiCorp's help center article on “Provider Produced Inconsistent Results” suggests deleting the resource and re-running terraform apply. We have removed the resource from the remote state and afterwards were able to successfully run terraform apply for this configuration.

@davidji99 davidji99 added the bug Something isn't working label Feb 15, 2023
@davidji99
Copy link
Owner

Thanks for the bug report. Will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants