Skip to content

Commit 1a2d1b5

Browse files
authored
feat: Setting default values for Flow logs on beta submodule (#209)
1 parent 3761135 commit 1a2d1b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/subnets-beta/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ resource "google_compute_subnetwork" "subnetwork" {
3434
private_ip_google_access = lookup(each.value, "subnet_private_access", "false")
3535
dynamic "log_config" {
3636
for_each = lookup(each.value, "subnet_flow_logs", false) ? [{
37-
aggregation_interval = lookup(each.value, "subnet_flow_logs_interval", null)
38-
flow_sampling = lookup(each.value, "subnet_flow_logs_sampling", null)
39-
metadata = lookup(each.value, "subnet_flow_logs_metadata", null)
37+
aggregation_interval = lookup(each.value, "subnet_flow_logs_interval", "INTERVAL_5_SEC")
38+
flow_sampling = lookup(each.value, "subnet_flow_logs_sampling", "0.5")
39+
metadata = lookup(each.value, "subnet_flow_logs_metadata", "INCLUDE_ALL_METADATA")
4040
}] : []
4141
content {
4242
aggregation_interval = log_config.value.aggregation_interval

0 commit comments

Comments
 (0)