Skip to content

Commit

Permalink
fix test input
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru committed May 7, 2022
1 parent 370c550 commit 6d96a8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/existing-ips/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module "vpc" {
}

resource "aws_eip" "nat_ips" {
for_each = toset(var.availability_zones)
vpc = true
count = length(var.availability_zones)
vpc = true

depends_on = [
module.vpc
Expand All @@ -26,7 +26,7 @@ module "subnets" {
availability_zones = var.availability_zones
vpc_id = module.vpc.vpc_id
igw_id = [module.vpc.igw_id]
cidr_block = [module.vpc.vpc_cidr_block]
ipv4_cidr_block = [module.vpc.vpc_cidr_block]
nat_elastic_ips = aws_eip.nat_ips.*.public_ip
nat_gateway_enabled = true
nat_instance_enabled = false
Expand Down
2 changes: 1 addition & 1 deletion examples/existing-ips/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
output "existing_ips" {
value = values(aws_eip.nat_ips).*.public_ip
value = aws_eip.nat_ips.*.public_ip
}

output "nat_ips" {
Expand Down

0 comments on commit 6d96a8f

Please sign in to comment.