Unrelated changes in Terraform plan

Hello @km1414 ,

I checked with the team and I think this should answer your questions:

Please let me know if this solved your problem.

regarding your example, it looks like this:

resource "qovery_container" "app1" {
  environment_id = qovery_environment.test-environment.id
  registry_id    = qovery_container_registry.my_container_registry.id
  name           = "app1"
  cpu            = 100
  memory         = 64
  image_name     = "hello-world"
  tag            = "linux"
  healthchecks   = {}
  environment_variables = [
    {
      key   = "TEST"
      value = "TEST"
    }
  ]
  lifecycle {
    ignore_changes = [built_in_environment_variables]
  }
}

and the plan looks like this:

Terraform will perform the following actions:

  # qovery_container.app1 will be updated in-place
  ~ resource "qovery_container" "app1" {
      ~ advanced_settings_json         = jsonencode({}) -> (known after apply)
      ~ deployment_stage_id            = "1e71c972-68c0-4be0-bea7-cb18ba01fba4" -> (known after apply)
      ~ environment_variables          = [
          - {
              - id    = "xxx" -> null
              - key   = "TEST" -> null
              - value = "TEST2" -> null
            },
          + {
              + id    = (known after apply)
              + key   = "TEST"
              + value = "TEST"
            },
        ]
      + external_host                  = (known after apply)
      ~ icon_uri                       = "app://qovery-console/container" -> (known after apply)
        id                             = "xxx"
      ~ internal_host                  = "xxx" -> (known after apply)
        name                           = "app1"
        # (13 unchanged attributes hidden)
    }

Regards,
Charles-Edouard