Skip to content

Commit

Permalink
Merge pull request #17 from pluralsh/fix/various
Browse files Browse the repository at this point in the history
Fix/various
  • Loading branch information
rauerhans authored Jan 4, 2024
2 parents aab8e7b + a3e43c3 commit c3ee746
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
24 changes: 13 additions & 11 deletions terraform/clouds/aws/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,27 @@ data "aws_availability_zones" "available" {}

module "vpc" {
source = "terraform-aws-modules/vpc/aws"

name = var.vpc_name
cidr = var.vpc_cidr
azs = data.aws_availability_zones.available.names
public_subnets = var.public_subnets
private_subnets = var.private_subnets
enable_dns_hostnames = true
enable_ipv6 = true

name = var.vpc_name
cidr = var.vpc_cidr
azs = data.aws_availability_zones.available.names
public_subnets = var.public_subnets
private_subnets = var.private_subnets
enable_dns_hostnames = true
enable_ipv6 = false
public_subnet_enable_dns64 = false
private_subnet_enable_dns64 = false

enable_nat_gateway = true
single_nat_gateway = false

public_subnet_tags = {
"kubernetes.io/cluster/${var.cluster_name}" = "shared"
"kubernetes.io/role/elb" = "1"
"kubernetes.io/role/elb" = "1"
}

private_subnet_tags = {
"kubernetes.io/cluster/${var.cluster_name}" = "shared"
"kubernetes.io/role/internal-elb" = "1"
"kubernetes.io/role/internal-elb" = "1"
}
}
}
2 changes: 1 addition & 1 deletion terraform/clouds/aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ variable "vpc_cidr" {

variable "private_subnets" {
type = list(string)
default = ["10.1.0.0/20", "10.1.16.0/20", "10.1.32.0/20"]
default = ["10.0.16.0/20", "10.0.32.0/20", "10.0.48.0/20"]
}

variable "public_subnets" {
Expand Down

0 comments on commit c3ee746

Please sign in to comment.