File tree Expand file tree Collapse file tree 5 files changed +21
-16
lines changed Expand file tree Collapse file tree 5 files changed +21
-16
lines changed Original file line number Diff line number Diff line change @@ -63,14 +63,15 @@ module "pubsub" {
63
63
]
64
64
cloud_storage_subscriptions = [
65
65
{
66
- name = "cloud-storage" // required
67
- bucket = "example-bucket" // required
68
- filename_prefix = "log_events_" // optional
69
- filename_suffix = ".avro" // optional
70
- max_duration = "60s" // optional
71
- max_bytes = "10000000" // optional
72
- output_format = "avro" // optional
73
- write_metadata = false // optional
66
+ name = "cloud-storage" // required
67
+ bucket = "example-bucket" // required
68
+ filename_prefix = "log_events_" // optional
69
+ filename_suffix = ".avro" // optional
70
+ filename_datetime_format = "YYYY-MM-DD/hh_mm_ssZ" // optional
71
+ max_duration = "60s" // optional
72
+ max_bytes = "10000000" // optional
73
+ output_format = "avro" // optional
74
+ write_metadata = false // optional
74
75
}
75
76
]
76
77
}
Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ module "pubsub" {
38
38
name = " example_bucket_subscription"
39
39
bucket = google_storage_bucket.test.name
40
40
41
+ filename_prefix = " example_prefix_"
42
+ filename_suffix = " _example_suffix"
43
+ filename_datetime_format = " YYYY-MM-DD/hh_mm_ssZ"
41
44
ack_deadline_seconds = 300
42
45
},
43
46
]
Original file line number Diff line number Diff line change @@ -439,11 +439,12 @@ resource "google_pubsub_subscription" "cloud_storage_subscriptions" {
439
439
}
440
440
441
441
cloud_storage_config {
442
- bucket = each. value [" bucket" ]
443
- filename_prefix = lookup (each. value , " filename_prefix" , null )
444
- filename_suffix = lookup (each. value , " filename_suffix" , null )
445
- max_duration = lookup (each. value , " max_duration" , null )
446
- max_bytes = lookup (each. value , " max_bytes" , null )
442
+ bucket = each. value [" bucket" ]
443
+ filename_prefix = lookup (each. value , " filename_prefix" , null )
444
+ filename_suffix = lookup (each. value , " filename_suffix" , null )
445
+ filename_datetime_format = lookup (each. value , " filename_datetime_format" , null )
446
+ max_duration = lookup (each. value , " max_duration" , null )
447
+ max_bytes = lookup (each. value , " max_bytes" , null )
447
448
dynamic "avro_config" {
448
449
for_each = (lookup (each. value , " output_format" , " " ) == " avro" ) ? [true ] : []
449
450
content {
Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ terraform {
19
19
required_providers {
20
20
google = {
21
21
source = " hashicorp/google"
22
- version = " >= 4.78 "
22
+ version = " >= 5.31 "
23
23
}
24
24
google-beta = {
25
25
source = " hashicorp/google-beta"
26
- version = " >= 4.78 "
26
+ version = " >= 5.31 "
27
27
}
28
28
null = {
29
29
source = " hashicorp/null"
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ terraform {
20
20
21
21
google = {
22
22
source = " hashicorp/google"
23
- version = " >= 4.78 , < 6"
23
+ version = " >= 5.31 , < 6"
24
24
}
25
25
}
26
26
You can’t perform that action at this time.
0 commit comments