Skip to content

Commit c304cdf

Browse files
committed
Add project id line to clusters and topics with comment
1 parent 0a702ae commit c304cdf

File tree

2 files changed

+2
-1
lines changed
  • managedkafka

2 files changed

+2
-1
lines changed

managedkafka/managedkafka_create_cluster/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# [START managedkafka_create_cluster_parent]
1818
# [START managedkafka_create_cluster]
1919
resource "google_managed_kafka_cluster" "default" {
20+
project = data.google_project.default.project_id # Replace this with your project ID in quotes
2021
cluster_id = "my-cluster-id"
2122
location = "us-central1"
2223
capacity_config {

managedkafka/managedkafka_create_topic/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ resource "google_compute_network" "default" {
4848

4949
# [START managedkafka_create_topic]
5050
resource "google_managed_kafka_topic" "default" {
51-
project = data.google_project.default.project_id
51+
project = data.google_project.default.project_id # Replace this with your project ID in quotes
5252
topic_id = "my-topic-id"
5353
cluster = google_managed_kafka_cluster.default.cluster_id
5454
location = "us-central1"

0 commit comments

Comments
 (0)