Skip to content

Commit

Permalink
feat: update resource example
Browse files Browse the repository at this point in the history
  • Loading branch information
Gezi-lzq committed Aug 7, 2024
1 parent 8c66e8b commit 8989575
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/resources/kafka_acl/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ provider "automq" {

resource "automq_kafka_acl" "example" {
environment_id = "example123"
kafka_instance = "example"
kafka_instance = "kf-rrn5s50fzpr23urd"
resource_type = "TOPIC"
resource_name = "example-"
pattern_type = "PREFIXED"
Expand Down
9 changes: 8 additions & 1 deletion examples/resources/kafka_topic/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,12 @@ provider "automq" {
}

resource "automq_kafka_topic" "example" {

environment_id = "example123"
kafka_instance = "kf-rrn5s50fzpr23urd"
name = "example"
partitions = 16
compact_strategy = "DELETE"
config = {
"retention.ms" = "86400000"
}
}
5 changes: 4 additions & 1 deletion examples/resources/kafka_user/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ provider "automq" {
}

resource "automq_kafka_user" "example" {

evnironment_id = "example123"
kafka_instance = "kf-rrn5s50fzpr23urd"
username = "automq_kafka_user"
password = "example"
}

0 comments on commit 8989575

Please sign in to comment.