File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ module "vpc" {
1212}
1313
1414resource "aws_eip" "nat_ips" {
15- for_each = toset (var. availability_zones )
16- vpc = true
15+ count = length (var. availability_zones )
16+ vpc = true
1717
1818 depends_on = [
1919 module . vpc
@@ -26,7 +26,7 @@ module "subnets" {
2626 availability_zones = var. availability_zones
2727 vpc_id = module. vpc . vpc_id
2828 igw_id = [module . vpc . igw_id ]
29- cidr_block = [module . vpc . vpc_cidr_block ]
29+ ipv4_cidr_block = [module . vpc . vpc_cidr_block ]
3030 nat_elastic_ips = aws_eip. nat_ips . * . public_ip
3131 nat_gateway_enabled = true
3232 nat_instance_enabled = false
Original file line number Diff line number Diff line change 11output "existing_ips" {
2- value = values ( aws_eip. nat_ips ) . * . public_ip
2+ value = aws_eip. nat_ips . * . public_ip
33}
44
55output "nat_ips" {
You can’t perform that action at this time.
0 commit comments