From 15ec9c0bd52120f6bc0a865bc1cc61ec6205092e Mon Sep 17 00:00:00 2001 From: ackintosh Date: Sat, 10 Dec 2022 17:42:44 +0900 Subject: [PATCH 1/2] Fix undefined variable: efs_fs_id --- k8s/eks/bash/functions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/k8s/eks/bash/functions.sh b/k8s/eks/bash/functions.sh index 3a23a651..31cef79e 100644 --- a/k8s/eks/bash/functions.sh +++ b/k8s/eks/bash/functions.sh @@ -271,6 +271,7 @@ aws_create_file_system(){ echo -e "EFS created with ID : $efs_fs_id\n" else echo "EFS already exists, skipping to the next step." + efs_fs_id=$(grep 'efs=' $real_path/.cluster/$CLUSTER_NAME-$REGION.cs | cut -d '=' -f 2) fi } From 6ce901012a532baca617552ade00b80d6e3804ba Mon Sep 17 00:00:00 2001 From: ackintosh Date: Tue, 13 Dec 2022 08:13:20 +0900 Subject: [PATCH 2/2] Fix undefined variable: ebs_volume --- k8s/eks/bash/functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/k8s/eks/bash/functions.sh b/k8s/eks/bash/functions.sh index 31cef79e..ed867bbc 100644 --- a/k8s/eks/bash/functions.sh +++ b/k8s/eks/bash/functions.sh @@ -325,7 +325,8 @@ aws_create_ebs(){ echo -e "EBS created with this volume ID: $ebs_volume\n" else echo "EBS already exists, skipping to the next step." - fi + ebs_volume=$ebs_id + fi } make_persistent_volume(){