diff --git a/k8s/eks/bash/functions.sh b/k8s/eks/bash/functions.sh index 3a23a651..ed867bbc 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 } @@ -324,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(){