Skip to content

Commit

Permalink
fix: block and topic name
Browse files Browse the repository at this point in the history
  • Loading branch information
shaxbee committed Mar 27, 2020
1 parent 2b56887 commit e24b664
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ resource "google_pubsub_topic" "<%= ctx[:primary_resource_id] %>" {
}

resource "google_pubsub_topic" "<%= ctx[:primary_resource_id] %>_dead_letter" {
name = "<%= ctx[:vars]['topic_name'] %>"
name = "<%= ctx[:vars]['topic_name'] %>-dead-letter"
}

resource "google_pubsub_subscription" "<%= ctx[:primary_resource_id] %>" {
name = "<%= ctx[:vars]['subscription_name'] %>"
topic = google_pubsub_topic.<%= ctx[:primary_resource_id] %>.name

expiration_policy {
dead_letter_policy {
dead_letter_topic = google_pubsub_topic.<%= ctx[:primary_resource_id] %>_dead_letter.id
max_delivery_attempts = 10
}
Expand Down

0 comments on commit e24b664

Please sign in to comment.