Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
arkiaconsulting committed May 9, 2021
1 parent 80bedb4 commit 6e3c393
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Expand All @@ -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 = "<subject_name>"
schema = file("<avro_schema_file>")
}
```

## The schema data source
```
data "schemaregistry_schema" "main" {
subject = "Akc-key"
subject = "<subject_name>"
}
output "schema_id" {
Expand All @@ -36,4 +44,9 @@ output "schema_version" {
output "schema_string" {
value = data.schemaregistry_schema.main.schema
}
```
```

## Importing an existing schema
`
terraform import schemaregistry_schema.main <subject_name>
`

0 comments on commit 6e3c393

Please sign in to comment.