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

Changes in identifier should trigger a resource replace #975

Open
dmi-clopez opened this issue May 3, 2024 · 0 comments
Open

Changes in identifier should trigger a resource replace #975

dmi-clopez opened this issue May 3, 2024 · 0 comments

Comments

@dmi-clopez
Copy link

dmi-clopez commented May 3, 2024

Terraform Version

Terraform v1.8.2

Affected Resource(s)

  • harness_platform_template

All resouces should be affected, haven't tested all of them

Terraform Files

resource "harness_platform_template" "python_cloud_functions_gen1" {
  identifier = "python_cloud_functions_gen1"
  name       = "python_cloud_functions_gen1"
  org_id     = harness_platform_organization.org.id
  version    = "1.0.0"
  is_stable  = true
  template_yaml = templatefile(
    "${path.module}/templates/pipelines/python_cloud_functions_gen1.tftpl"
  )
}

Expected Behavior

When the identifier field gets changed, the resource should be prompted for recreation (as in destroyed, and then re-created)

Actual Behavior

The resource enters in a perpetual diff state, only fixable by running terraform taint on the resource (adding force_delete may be necessary if there is any reference to the resource)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant