Skip to content

Commit 0a702ae

Browse files
committed
Add project identifier line to cluster and topic samples
1 parent 8f53627 commit 0a702ae

File tree

1 file changed

+2
-0
lines changed
  • managedkafka/managedkafka_create_topic

1 file changed

+2
-0
lines changed

managedkafka/managedkafka_create_topic/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
# [START managedkafka_create_topic_parent]
1818
resource "google_managed_kafka_cluster" "default" {
19+
project = data.google_project.default.project_id # Replace this with your project ID in quotes
1920
cluster_id = "my-cluster-id"
2021
location = "us-central1"
2122
capacity_config {
@@ -47,6 +48,7 @@ resource "google_compute_network" "default" {
4748

4849
# [START managedkafka_create_topic]
4950
resource "google_managed_kafka_topic" "default" {
51+
project = data.google_project.default.project_id
5052
topic_id = "my-topic-id"
5153
cluster = google_managed_kafka_cluster.default.cluster_id
5254
location = "us-central1"

0 commit comments

Comments
 (0)