Skip to content

Commit

Permalink
docs(kafka_schema_registry_acl): add example and import cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Serpentiel committed Mar 28, 2024
1 parent 0653ce5 commit 059f244
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
20 changes: 19 additions & 1 deletion docs/resources/kafka_schema_registry_acl.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ description: |-

The Resource Kafka Schema Registry ACL resource allows the creation and management of Schema Registry ACLs for an Aiven Kafka service.


## Example Usage

```terraform
resource "aiven_kafka_schema_registry_acl" "foo" {
project = aiven_project.kafka-schemas-project1.project
service_name = aiven_kafka.kafka-service1.service_name
resource = "Subject:topic-1"
username = "group-user-*"
permission = "schema_registry_read"
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down Expand Up @@ -42,3 +52,11 @@ Optional:
- `delete` (String)
- `read` (String)
- `update` (String)

## Import

Import is supported using the following syntax:

```shell
terraform import aiven_kafka_schema_registry_acl.foo PROJECT/SERVICE_NAME
```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import aiven_kafka_schema_registry_acl.foo PROJECT/SERVICE_NAME
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
resource "aiven_kafka_schema_registry_acl" "foo" {
project = aiven_project.kafka-schemas-project1.project
service_name = aiven_kafka.kafka-service1.service_name
resource = "Subject:topic-1"
username = "group-user-*"
permission = "schema_registry_read"
}

0 comments on commit 059f244

Please sign in to comment.