-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels