forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GCS ingestion settings and platform log settings to `google_pubsu…
…b_topic` (GoogleCloudPlatform#11823) Co-authored-by: Cameron Thornton <[email protected]>
- Loading branch information
Showing
3 changed files
with
198 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
mmv1/templates/terraform/examples/pubsub_topic_ingestion_cloud_storage.tf.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
resource "google_pubsub_topic" "{{$.PrimaryResourceId}}" { | ||
name = "{{index $.Vars "topic_name"}}" | ||
|
||
# Outside of automated terraform-provider-google CI tests, these values must be of actual Cloud Storage resources for the test to pass. | ||
ingestion_data_source_settings { | ||
cloud_storage { | ||
bucket = "test-bucket" | ||
text_format { | ||
delimiter = " " | ||
} | ||
minimum_object_create_time = "2024-01-01T00:00:00Z" | ||
match_glob = "foo/**" | ||
} | ||
platform_logs_settings { | ||
severity = "WARNING" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters