Skip to content

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

@OlgierdEthon

Description

@OlgierdEthon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions