Skip to content

Commit

Permalink
chore: rebasing #34
Browse files Browse the repository at this point in the history
  • Loading branch information
jlsan92 committed Aug 14, 2019
1 parent a65f1f0 commit 80b23f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ provider "template" {
# VPC CONFIGURATION

locals {
vpc_id = !var.vpc_create ? var.vpc_external_id : module.vpc.vpc_id
vpc_id = ! var.vpc_create ? var.vpc_external_id : module.vpc.vpc_id

vpc_public_subnets = split(",",
length(var.vpc_public_subnets) > 0
|| !var.vpc_create
|| ! var.vpc_create
? join(",", var.vpc_public_subnets)
: join(",", list(
cidrsubnet(var.vpc_cidr, 8, 1),
Expand All @@ -34,7 +34,7 @@ locals {

vpc_private_subnets = split(",",
length(var.vpc_private_subnets) > 0
|| !var.vpc_create
|| ! var.vpc_create
? join(",", var.vpc_private_subnets)
: join(",", list(
cidrsubnet(var.vpc_cidr, 8, 101),
Expand All @@ -44,13 +44,13 @@ locals {
)

vpc_private_subnets_ids = split(",",
!var.vpc_create
! var.vpc_create
? join(",", var.vpc_external_private_subnets_ids)
: join(",", module.vpc.private_subnets)
)

vpc_public_subnets_ids = split(",",
!var.vpc_create
! var.vpc_create
? join(",", var.vpc_external_public_subnets_ids)
: join(",", module.vpc.public_subnets)
)
Expand Down

0 comments on commit 80b23f3

Please sign in to comment.