Skip to content

Commit

Permalink
Update main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
abidknashtech authored Nov 17, 2023
1 parent ad4ab07 commit 69e411c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions deployment/gcpresources/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,24 @@ resource "google_pubsub_subscription" "inventory_subscription" {
enable_message_ordering = false
}

resource "google_pubsub_subscription" "shipment_subscription" {
name = "shipment_subscription"
topic = google_pubsub_topic.shipment-notification.name

# 20 minutes
message_retention_duration = "1200s"
retain_acked_messages = true

ack_deadline_seconds = 20
expiration_policy {
ttl = "300000.5s"
}
retry_policy {
minimum_backoff = "10s"
}
enable_message_ordering = false
}

#-----------------------GKE Cluster for applications----------------------------
resource "google_container_cluster" "car-demo-gke" {
name = "car-demo-gke"
Expand Down

0 comments on commit 69e411c

Please sign in to comment.