Skip to content

Commit

Permalink
fix: removed tags attribute from subnet module
Browse files Browse the repository at this point in the history
  • Loading branch information
h1manshu98 committed Sep 12, 2023
1 parent 0d9acd5 commit 5764cf3
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 10 deletions.
11 changes: 9 additions & 2 deletions _example/aws_managed/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,15 @@ module "subnets" {
ipv6_cidr_block = module.vpc.ipv6_cidr_block
enable_ipv6 = false

extra_public_tags = { "kubernetes.io/role/elb" = "1" }
extra_private_tags = { "kubernetes.io/role/internal-elb" = "1" }
extra_public_tags = {
"kubernetes.io/cluster/${module.eks.cluster_name}" = "owned"
"kubernetes.io/role/elb" = "1"
}

extra_private_tags = {
"kubernetes.io/cluster/${module.eks.cluster_name}" = "owned"
"kubernetes.io/role/internal-elb" = "1"
}

public_inbound_acl_rules = [
{
Expand Down
11 changes: 9 additions & 2 deletions _example/aws_managed_with_fargate/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,15 @@ module "subnets" {
ipv6_cidr_block = module.vpc.ipv6_cidr_block
enable_ipv6 = false

extra_public_tags = { "kubernetes.io/role/elb" = "1" }
extra_private_tags = { "kubernetes.io/role/internal-elb" = "1" }
extra_public_tags = {
"kubernetes.io/cluster/${module.eks.cluster_name}" = "owned"
"kubernetes.io/role/elb" = "1"
}

extra_private_tags = {
"kubernetes.io/cluster/${module.eks.cluster_name}" = "owned"
"kubernetes.io/role/internal-elb" = "1"
}

public_inbound_acl_rules = [
{
Expand Down
12 changes: 9 additions & 3 deletions _example/complete/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ module "subnets" {

name = "${local.name}-subnets"
environment = local.environment
tags = local.tags

nat_gateway_enabled = true
availability_zones = ["${local.region}a", "${local.region}b"]
Expand All @@ -44,8 +43,15 @@ module "subnets" {
type = "public-private"
igw_id = module.vpc.igw_id

extra_public_tags = { "kubernetes.io/role/elb" = "1" }
extra_private_tags = { "kubernetes.io/role/internal-elb" = "1" }
extra_public_tags = {
"kubernetes.io/cluster/${module.eks.cluster_name}" = "shared"
"kubernetes.io/role/elb" = "1"
}

extra_private_tags = {
"kubernetes.io/cluster/${module.eks.cluster_name}" = "shared"
"kubernetes.io/role/internal-elb" = "1"
}

public_inbound_acl_rules = [
{
Expand Down
12 changes: 9 additions & 3 deletions _example/self_managed/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ module "subnets" {

name = "${local.name}-subnets"
environment = local.environment
tags = local.tags
nat_gateway_enabled = true
availability_zones = ["${local.region}a", "${local.region}b"]
vpc_id = module.vpc.vpc_id
Expand All @@ -43,8 +42,15 @@ module "subnets" {
type = "public-private"
igw_id = module.vpc.igw_id

extra_public_tags = { "kubernetes.io/role/elb" = "1" }
extra_private_tags = { "kubernetes.io/role/internal-elb" = "1" }
extra_public_tags = {
"kubernetes.io/cluster/${module.eks.cluster_name}" = "shared"
"kubernetes.io/role/elb" = "1"
}

extra_private_tags = {
"kubernetes.io/cluster/${module.eks.cluster_name}" = "shared"
"kubernetes.io/role/internal-elb" = "1"
}

public_inbound_acl_rules = [
{
Expand Down

0 comments on commit 5764cf3

Please sign in to comment.