Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(kafka_schema_registry_acl): add example and import cmd #1681

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}