File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ CFCACHE="true"
61
61
62
62
# variable for Lambda
63
63
AWS_LAMBDA_DEPLOY_TYPE=" "
64
+ AWS_LAMBDA_STAGE=" "
64
65
65
66
# FUNCTIONS
66
67
# usage Function - provides information like how to execute the script
@@ -542,9 +543,9 @@ configure_Lambda_template()
542
543
do
543
544
o=$IFS
544
545
IFS=$( echo -en " \n\b" )
545
- envvars=$( cat $listname .json | jq -c ' .app_var ' )
546
- echo " $envvars " > /home/circleci/project/config/dev .json
547
- sed -i ' s/\\n/\\\\n/g' /home/circleci/project/config/dev .json
546
+ envvars=$( cat $listname .json | jq -c ' .app_var ' )
547
+ echo " $envvars " > /home/circleci/project/config/$AWS_LAMBDA_STAGE .json
548
+ sed -i ' s/\\n/\\\\n/g' /home/circleci/project/config/$AWS_LAMBDA_STAGE .json
548
549
# yq r $listname.json >$listname.yml
549
550
# a=serverless.yml
550
551
# b="$listname.json"
@@ -739,6 +740,14 @@ then
739
740
exit 1
740
741
fi
741
742
log " AWS_LAMBDA_DEPLOY_TYPE : $AWS_LAMBDA_DEPLOY_TYPE "
743
+
744
+ if [ -z $AWS_LAMBDA_STAGE ] ;
745
+ then
746
+ log " Build varibale are not updated. Please update the Build variable file"
747
+ usage
748
+ exit 1
749
+ fi
750
+ log " AWS_LAMBDA_STAGE : $AWS_LAMBDA_STAGE "
742
751
fi
743
752
}
744
753
You can’t perform that action at this time.
0 commit comments