Skip to content

Bug: bundle destroy fails with failed to instantiate provider #518

@stikkireddy

Description

@stikkireddy

Steps to repro:

  1. run a deploy
  2. wait for successful deploy
  3. delete .databricks directory (in jenkins or ci/cd tools if that is not checked in it wont exist)
  4. run bundles desotry

You will run into error:

Error: failed to read schema for databricks_pipeline.sri_test_hello_world in registry.terraform.io/databricks/databricks: failed to instantiate provider "registry.terraform.io/databricks/databricks" to obtain schema: unavailable provider "registry.terraform.io/databricks/databricks"

The cause is there is no bundles.tf.json which contains the required providers block which is needed.

Possible solutions:

  1. run terraform.write() in the destroy phase (Will make PR with this as its a 1 liner)
  2. alternative have terraform.writeProviders() to just generate empty providers.

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