Skip to content

Commit

Permalink
[Hurodata-51] fix - ran terraform fmt command
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgadgi committed Apr 7, 2023
1 parent 98405cf commit 81c0b43
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@ locals {
}

ip_address = [for ip_address in var.ips_allowed : {
name = "ip_restriction_cidr_${join("", [1, index(var.ips_allowed, ip_address)])}"
ip_address = ip_address
virtual_network_subnet_id = null
service_tag = null
subnet_id = null
priority = join("", [1, index(var.ips_allowed, ip_address)])
action = "Allow"
name = "ip_restriction_cidr_${join("", [1, index(var.ips_allowed, ip_address)])}"
ip_address = ip_address
virtual_network_subnet_id = null
service_tag = null
subnet_id = null
priority = join("", [1, index(var.ips_allowed, ip_address)])
action = "Allow"
}]

subnets = [for subnet in var.subnet_ids_allowed : {
name = "ip_restriction_subnet_${join("", [1, index(var.subnet_ids_allowed, subnet)])}"
ip_address = null
virtual_network_subnet_id = subnet
service_tag = null
subnet_id = subnet
priority = join("", [1, index(var.subnet_ids_allowed, subnet)])
action = "Allow"
name = "ip_restriction_subnet_${join("", [1, index(var.subnet_ids_allowed, subnet)])}"
ip_address = null
virtual_network_subnet_id = subnet
service_tag = null
subnet_id = subnet
priority = join("", [1, index(var.subnet_ids_allowed, subnet)])
action = "Allow"
}]
}

Expand Down

0 comments on commit 81c0b43

Please sign in to comment.