Skip to content

Changing a building block input name forces replacement #36

@JohannesRudolph

Description

@JohannesRudolph

I have a meshstack_buildingblock resource and did change an input that I misnamed from region to region_name.
Upon doing so the terraform provider wants to now replace the BB instead of performing an update operation on it.

OpenTofu will perform the following actions:

  # meshstack_buildingblock.enable_eu_south_2_region must be replaced
-/+ resource "meshstack_buildingblock" "enable_eu_south_2_region" {
      ~ metadata    = {
          ~ created_on             = "2025-06-12T13:52:12.769832Z" -> (known after apply)
          ~ force_purge            = false -> (known after apply)
          + marked_for_deletion_by = (known after apply)
          + marked_for_deletion_on = (known after apply)
          ~ uuid                   = "f72002f6-bead-4b42-93a0-ef2a635d6667" -> (known after apply)
            # (3 unchanged attributes hidden)
        }
      ~ spec        = {
          ~ combined_inputs        = {
             # some omitted...               
              - "enabled" = {
                  - value_bool = true -> null
                },
              - "region_name" = {},
            } -> (known after apply)
          ~ inputs                 = {
              - "region" = { # forces replacement
                  - value_string = "eu-south-2" -> null
                },
              + "region_name" = { # forces replacement
                  + value_string = "eu-south-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