Skip to content

APIE-853: Unable to import confluent_business_metadata_binding resource for multi-cluster (ie OAuth) provider #936

@frederikphp

Description

@frederikphp

Unable to import confluent_business_metadata_binding resource for multi-cluster (ie OAuth) provider

Docs https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/resources/confluent_business_metadata_binding#import
claim importing as follows:

$ export IMPORT_SCHEMA_REGISTRY_API_KEY="<schema_registry_api_key>"
$ export IMPORT_SCHEMA_REGISTRY_API_SECRET="<schema_registry_api_secret>"
$ export IMPORT_CATALOG_REST_ENDPOINT="<catalog_rest_endpoint>"
$ terraform import confluent_business_metadata_binding.main lsrc-8wrx70/PII/lsrc-8wrx70:.:100001/sr_schema

This is false, as IMPORT_ env vars are simply ignored, and we are met by

│ Error: error importing Business Metadata Binding "lsrc-.../Resource Level Metadata/lsrc-....:LOCAL.oauth_migration_poc.v1/kafka_topic": error reading Business Metadata Binding: one of provider.catalog_rest_endpoint (defaults to CATALOG_REST_ENDPOINT environment variable) or provider.schema_registry_rest_endpoint (defaults to SCHEMA_REGISTRY_REST_ENDPOINT environment variable) or resource.rest_endpoint must be set
│

This is as far as I know a blocker for transitioning to OAuth provider (or any provider config able to contribute to multiple schema_registry_clusters) as we are currently unable to import confluent_business_metadata_binding with rest_endpoint and schema_registry_cluster.id recorded on the resource.

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