File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ resource "google_compute_firewall" "allow-gkeworkers-egress-master-ip" {
8989 }
9090
9191 direction = " EGRESS"
92- destination_ranges = [var . master_ipv4_cidr ]
92+ destination_ranges = var . master_ipv4_cidr != null ? [var . master_ipv4_cidr ] : [ ]
9393 target_service_accounts = [google_service_account . composer_sa . email ]
9494 log_config {
9595 metadata = " INCLUDE_ALL_METADATA"
@@ -172,7 +172,7 @@ resource "google_compute_firewall" "allow-gkeworkers-composer-network-ip" {
172172 }
173173 target_service_accounts = [google_service_account . composer_sa . email ]
174174 direction = " EGRESS"
175- destination_ranges = [var . cloud_composer_network_ipv4_cidr_block ]
175+ destination_ranges = var . cloud_composer_network_ipv4_cidr_block != null ? [var . cloud_composer_network_ipv4_cidr_block ] : [ ]
176176
177177 log_config {
178178 metadata = " INCLUDE_ALL_METADATA"
You can’t perform that action at this time.
0 commit comments