Skip to content

Commit

Permalink
Example FullAZ: clean up names, add deployment examples (#35)
Browse files Browse the repository at this point in the history
* map key typo

* clean up names, add deployment examples
  • Loading branch information
bobsut authored Sep 21, 2024
1 parent 9377bf9 commit 9db38e1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions examples/allazs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,20 @@ module "fck-nat" {
source = "../../"
for_each = toset(data.aws_availability_zones.azs.zone_ids)

name = "${local.name}-nat-${each.key}"
name = "${local.name}-${each.key}"
vpc_id = aws_vpc.main.id
subnet_id = aws_subnet.public[each.key].id
# ha_mode = true
# use_cloudwatch_agent = true
# use_spot_instances = true
# instance_type = "t4g.nano"

update_route_tables = true
route_tables_ids = {
"private" = aws_route_table.private[each.key].id
private = aws_route_table.private[each.key].id
}

tags = {
Name = "${local.name}-fck-nat-${each.key}"
Name = "${local.name}-${each.key}"
}
}

0 comments on commit 9db38e1

Please sign in to comment.