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

TerraForm: Doing the name/key change in the UI breaks Terraform state

Open OlgierdEthon opened this issue 8 months ago • 1 comments

Related: #173

Problem:

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: Client Error
│
│   with [REDACTED].devcycle_environment.environment,
│   on [REDACTED] line REDACTED, in resource "devcycle_environment" "environment":
│   14: resource "devcycle_environment" "environment" {
│
│ DevCycle Terraform Error: 404 Not Found.

Remediation: State surgery - manually editing the key in the file

Probable root cause: Provider using the key to query the resource instead of id

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