Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jul 11, 2023
1 parent fa774de commit f87c254
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/full-cluster-tf-upgrade/1.24/dns-zone.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ provider "aws" {
# dummy vpc, so we can associate the zone to this account
#---
data "aws_vpc" "dummy_vpc" {
count = var.shared_vpc_label == null ? 1 : 0
count = var.shared_vpc_label != null ? 1 : 0
filter {
name = "tag:Name"
values = ["vpc0-dummy"]
Expand All @@ -41,7 +41,7 @@ resource "aws_route53_zone" "cluster_domain" {
force_destroy = false

vpc {
vpc_id = var.shared_vpc_label == null ? try(data.aws_vpc.dummy_vpc[0].id, null) : data.aws_vpc.eks_vpc.id
vpc_id = var.shared_vpc_label != null ? try(data.aws_vpc.dummy_vpc[0].id, null) : data.aws_vpc.eks_vpc.id
vpc_region = local.region
}

Expand Down
4 changes: 2 additions & 2 deletions examples/full-cluster-tf-upgrade/1.25/dns-zone.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ provider "aws" {
# dummy vpc, so we can associate the zone to this account
#---
data "aws_vpc" "dummy_vpc" {
count = var.shared_vpc_label == null ? 1 : 0
count = var.shared_vpc_label != null ? 1 : 0
filter {
name = "tag:Name"
values = ["vpc0-dummy"]
Expand All @@ -41,7 +41,7 @@ resource "aws_route53_zone" "cluster_domain" {
force_destroy = false

vpc {
vpc_id = var.shared_vpc_label == null ? try(data.aws_vpc.dummy_vpc[0].id, null) : data.aws_vpc.eks_vpc.id
vpc_id = var.shared_vpc_label != null ? try(data.aws_vpc.dummy_vpc[0].id, null) : data.aws_vpc.eks_vpc.id
vpc_region = local.region
}

Expand Down

0 comments on commit f87c254

Please sign in to comment.