Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add enforce_in_transit field in google_pubsub_topic #12716

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions mmv1/products/pubsub/Topic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@ properties:
required: true
item_type:
type: String
- name: "enforceInTransit"
type: Boolean
description: |
If true, `allowedPersistenceRegions` is also used to enforce in-transit
guarantees for messages. That is, Pub/Sub will fail topics.publish
operations on this topic and subscribe operations on any subscription
attached to this topic in any region that is not in `allowedPersistenceRegions`.
required: false
- name: 'schemaSettings'
type: NestedObject
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ resource "google_pubsub_topic" "{{$.PrimaryResourceId}}" {
allowed_persistence_regions = [
"europe-west3",
]
enforce_in_transit = true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ resource "google_pubsub_topic" "foo" {
allowed_persistence_regions = [
"%s",
]
enforce_in_transit = false
}
}
`, topic, key, value, region)
Expand Down
Loading