terraform-provider-devcycle icon indicating copy to clipboard operation
terraform-provider-devcycle copied to clipboard

TerraForm: Environment `name` and `key` in-place update fails

Open OlgierdEthon opened this issue 8 months ago • 1 comments

The change is possible in the UI, however the plan reports a change to happen to the environment ID, as well as it's keys:

  ~ resource "devcycle_environment" "environment" {
      ~ id          = "READACTED" -> (known after apply)
      ~ key         = "READACTED" -> "READACTED"
      ~ name        = "READACTED" -> "READACTED"
      ~ sdk_keys    = [
        REDACTED...
        ] -> (known after apply)
        # (5 unchanged attributes hidden)

And then the actual apply fails:

│ Error: Value Conversion Error
│
│   with [REDACTED].devcycle_environment.environment,
│   on [REDACTED] line REDACTED, in resource "devcycle_environment" "environment":
│   [REDACTED]: resource "devcycle_environment" "environment" {
│
│ An unexpected error was encountered trying to build a value. This is always an error in the provider. Please report the following to the provider developer:
│
│ unhandled unknown value

OlgierdEthon avatar Apr 07 '25 12:04 OlgierdEthon

Thanks for writing in, and apologies for the delayed response. We have logged this issue and will notify you if we have any updates on the request.

leslie-lau avatar Oct 29 '25 16:10 leslie-lau