diff --git a/mmv1/templates/terraform/examples/pubsub_subscription_different_project.tf.erb b/mmv1/templates/terraform/examples/pubsub_subscription_different_project.tf.erb index 4bf08dfe2460..c495a0ecfd89 100644 --- a/mmv1/templates/terraform/examples/pubsub_subscription_different_project.tf.erb +++ b/mmv1/templates/terraform/examples/pubsub_subscription_different_project.tf.erb @@ -6,5 +6,5 @@ resource "google_pubsub_topic" "<%= ctx[:primary_resource_id] %>" { resource "google_pubsub_subscription" "<%= ctx[:primary_resource_id] %>" { project = "<%= ctx[:vars]['subscription_project'] %>" name = "<%= ctx[:vars]['subscription_name'] %>" - topic = google_pubsub_topic.<%= ctx[:primary_resource_id] %>.name + topic = google_pubsub_topic.<%= ctx[:primary_resource_id] %>.id }