Skip to content

Resource Update Failure: Adding org_id to existing harness_platform_service_account does not recreate resource #1232

@karolmartyna

Description

@karolmartyna

Description

When updating an existing harness_platform_service_account resource by adding an org_id, the resource is not recreated as expected.
Instead, the org_id is added to the state, but the actual resource remains unchanged.
This results in a failure because the resource was not moved to the specified organization.

Steps to Reproduce

Initial Resource Configuration:

  resource "harness_platform_service_account" "this" {
    identifier  = "tenant_setup_sa"
    name        = "tenant-setup"
    ...
  }

Updated Resource Configuration:

  resource "harness_platform_service_account" "this" {
    identifier  = "tenant_setup_sa"
    name        = "tenant-setup"
    org_id      = "org.id"
    ...
  }

Expected Behavior: The resource should be recreated with the new org_id.

Actual Behavior: The org_id is added to the state, but the resource is not recreated.
This leads to a failure because the actual resource was not moved to the specified organization.

Environment

Terraform Version: 1.10.5

Provider Version: v0.36.2

Metadata

Metadata

Assignees

No one assigned

    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