From 6e3c393a1c8816a606336d88827d8a159bef0e35 Mon Sep 17 00:00:00 2001 From: Akc Date: Sun, 9 May 2021 20:05:41 +0200 Subject: [PATCH] Update readme --- README.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 469b961..ff2be70 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A terraform provider for managing schemas in a Confluent schema registry terraform { required_providers { schemaregistry = { - source = "github.com/arkiaconsulting/schemaregistry" + source = "arkiaconsulting/confluent-schema-registry" } } } @@ -19,10 +19,18 @@ provider "schemaregistry" { ``` _You can omit the credential details by defining the environment variables `SCHEMA_REGISTRY_URL`, `SCHEMA_REGISTRY_USERNAME`, `SCHEMA_REGISTRY_PASSWORD`_ +## The schema resource +``` +resource "schemaregistry_schema" "main" { + subject = "" + schema = file("") +} +``` + ## The schema data source ``` data "schemaregistry_schema" "main" { - subject = "Akc-key" + subject = "" } output "schema_id" { @@ -36,4 +44,9 @@ output "schema_version" { output "schema_string" { value = data.schemaregistry_schema.main.schema } -``` \ No newline at end of file +``` + +## Importing an existing schema +` +terraform import schemaregistry_schema.main +`