Skip to content

Provider should be resilient to resources not found #179

@dstendardi-booksy

Description

@dstendardi-booksy

Description

According to the terraform recommendation, a provider should :

Ignore errors that signify the resource is no longer existent.

However this happens with protocol transformations (but not only)

 Error: Unable to read Transformation (ID: 2uorPuhgzltxsQ6uNd0bYbulr0S)
  │ 
  │   with segment_transformation.rename_events["mysource"],
  │   on segment.tf line 187, in resource "segment_transformation" "rename_events":
  │  187: resource "segment_transformation" "rename_events" {
  │ 
  │ 404 Not Found
  │ {
  │   "errors": [
  │     {
  │       "type": "not-found",
  │       "message": "Transformation with id 'xxx' not found"
  │     }
  │   ]
  │ }
  ╵

To Reproduce

  • create a transformation with protocol
  • apply
  • delete the transformation in the ui
  • plan again

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