Skip to content

Commit

Permalink
Make use of vpc_id/subnets from input.
Browse files Browse the repository at this point in the history
  • Loading branch information
zawac002 committed Sep 5, 2023
1 parent 627341a commit b3e9cb4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ data "aws_kms_key" "ebs_key" {
}

locals {
vpc_id = data.aws_vpc.eks_vpc.id
vpc_cidr_block = data.aws_vpc.eks_vpc.cidr_block
subnets = [for k, v in data.aws_subnet.subnets : v.id if length(regexall("us-east-1e", v.availability_zone)) == 0]

base_tags = {
"eks-cluster-name" = var.cluster_name
"boc:tf_module_version" = local._module_version
Expand Down Expand Up @@ -61,8 +57,8 @@ module "efs" {
source = "git@github.e.it.census.gov:terraform-modules/aws-efs.git"

name = var.cluster_name
vpc_id = local.vpc_id
subnet_ids = local.subnets
vpc_id = var.vpc_id
subnet_ids = var.subnets
security_groups = [var.security_group_all_worker_mgmt_id]

tags = merge(
Expand Down

0 comments on commit b3e9cb4

Please sign in to comment.