Skip to content

Commit

Permalink
Use preview AMI by default + DNS64 on private network when ipv6 on
Browse files Browse the repository at this point in the history
  • Loading branch information
RaJiska committed Sep 21, 2024
1 parent 4a31d30 commit 909d395
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/full/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ module "fck-nat" {
ha_mode = false
use_nat64 = local.ipv6_support

# Pre-release version of the AMI
# Replace the below with the ID according to your region and architecture: https://github.com/AndrewGuenther/fck-nat/issues/41#issuecomment-2036191471
ami_id = "ami-0c2e470170d2a48e3" # ARM us-east-1

update_route_table = true
route_tables_ids = {
"private" = aws_route_table.private.id
Expand Down
1 change: 1 addition & 0 deletions examples/full/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ resource "aws_subnet" "private" {
cidr_block = cidrsubnet(local.vpc_cidr, 4, 1)
availability_zone = "${data.aws_region.current.name}a"
ipv6_cidr_block = local.ipv6_support ? cidrsubnet(aws_vpc.main.ipv6_cidr_block, 8, 1) : null
enable_dns64 = local.ipv6_support

tags = {
Name = "${local.name}-private"
Expand Down

0 comments on commit 909d395

Please sign in to comment.