context = { cidr_ranges = { rfc1918-10 = "10.0.0.0/8" test = "8.8.8.8" } cidr_ranges_sets = { rfc1918 = [ "10.0.0.0/8", "172.16.10.0/12", "192.168.0.0/24" ] } folder_ids = { test = "folders/1234567890" } iam_principals = { test = "serviceAccount:test@test-project.iam.gserviceaccount.com" } locations = { ew8 = "europe-west8" } networks = { test = "projects/foo-dev-net-spoke-0/global/networks/dev-spoke-0" } project_ids = { test = "foo-test-0" } tag_values = { "test" = "tagValues/1234567890" } } name = "test-1" parent_id = "$project_ids:test" region = "$locations:ew8" attachments = { test = "$networks:test" } egress_rules = { smtp = { priority = 900 target_service_accounts = ["$iam_principals:test"] match = { destination_ranges = ["$cidr_ranges_sets:rfc1918", "10.0.0.1/32", "$cidr_ranges:test", "10.0.0.0/8"] layer4_configs = [{ protocol = "tcp", ports = ["25"] }] source_tags = ["$tag_values:test"] } } } ingress_rules = { icmp = { priority = 1000 enable_logging = true target_resources = ["$networks:test"] target_tags = ["$tag_values:test"] match = { source_ranges = ["$cidr_ranges_sets:rfc1918", "10.0.0.1/32", "$cidr_ranges:test", "10.0.0.0/8"] layer4_configs = [{ protocol = "icmp" }] } } }