Skip to content

Commit dec3c5a

Browse files
committed
Addressed PR comments.
1 parent 0c1763e commit dec3c5a

File tree

1 file changed

+6
-6
lines changed
  • managedkafka/managedkafka_create_connect_cluster

1 file changed

+6
-6
lines changed

managedkafka/managedkafka_create_connect_cluster/main.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
*/
1616

1717
# [START managedkafka_create_connect_cluster_parent]
18-
resource "google_managed_kafka_cluster" "example-kafka-cluster" {
18+
resource "google_managed_kafka_cluster" "default" {
1919
project = data.google_project.default.project_id
2020
cluster_id = "my-cluster-id"
2121
location = "us-central1"
2222
capacity_config {
2323
vcpu_count = 3
24-
memory_bytes = 3221225472
24+
memory_bytes = 3221225472 # 3 GiB
2525
}
2626
gcp_config {
2727
access_config {
@@ -35,13 +35,13 @@ resource "google_managed_kafka_cluster" "example-kafka-cluster" {
3535
# [START managedkafka_create_connect_cluster]
3636
resource "google_managed_kafka_connect_cluster" "example-kafka-connect-cluster" {
3737
provider = google-beta
38-
project = data.google_project.default.project_id # Replace this with your project ID in quotes
38+
project = data.google_project.default.project_id
3939
connect_cluster_id = "my-connect-cluster-id"
4040
location = "us-central1"
41-
kafka_cluster = google_managed_kafka_cluster.example-kafka-cluster.id # Replace this with the ID of the primary Managed Service for Apache Kafka cluster associated with your Connect cluster in quotes
41+
kafka_cluster = google_managed_kafka_cluster.example-kafka-cluster.id
4242
capacity_config {
43-
vcpu_count = 3
44-
memory_bytes = 3221225472
43+
vcpu_count = 12
44+
memory_bytes = 12884901888
4545
}
4646
gcp_config {
4747
access_config {

0 commit comments

Comments
 (0)