From 953eb0d9c123b1a8ad2e702d71347320d1b850f0 Mon Sep 17 00:00:00 2001 From: Cornelius Ihle Date: Tue, 14 Dec 2021 17:21:45 +0100 Subject: [PATCH] Updated subnetIdZone checks --- k8s/02_efs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k8s/02_efs.sh b/k8s/02_efs.sh index 421f4af9..d82a0174 100755 --- a/k8s/02_efs.sh +++ b/k8s/02_efs.sh @@ -37,8 +37,8 @@ fi echo "Detected Security Group ID: $securityGroupId" -subnetIdZoneA=`aws ec2 describe-subnets --region=$AWS_REGION --output text | awk '/'$vpcId'/ { print $13 }' | sort | head -1` -subnetIdZoneB=`aws ec2 describe-subnets --region=$AWS_REGION --output text | awk '/'$vpcId'/ { print $13 }' | sort | tail -1` +subnetIdZoneA=`aws ec2 describe-subnets --region=$AWS_REGION --output text | awk '/'$vpcId'/ { print $15 }' | sort | head -1` +subnetIdZoneB=`aws ec2 describe-subnets --region=$AWS_REGION --output text | awk '/'$vpcId'/ { print $15 }' | sort | tail -1` echo "Detected Subnet: $subnetIdZoneA" echo "Detected Subnet: $subnetIdZoneB"