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"