Basic ListAdd Lambda

Create a basic list adding Lambda.

NOTE: This does not include the following which are still needed:
1) Permanent DB Setup
2) Better RDS access control with security groups
3) Proper input parameters for the List add Lambda
This commit is contained in:
NMerz
2020-09-26 16:53:44 -04:00
parent bbe0daff43
commit de0bd51eaf
10 changed files with 125 additions and 34 deletions

26
Tooling/VarSetup.sh Normal file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
# Meant to be source'd from other scripts that need these vars.
#constants
APIID=datoh7woc9 #rest-api-id is tied to the apigateway while resource-id seems tied to the specific url extension
ROOTRESOURCEID=6xrzhzidxh #gateway root should have a consistent resource id which will serve as parent for many apis
LAMBDAROLE=arn:aws:iam::569815541706:role/LambdaBasic
LANGUAGE=java11
DEPLOYSTAGE=Development
DEBUGFILE=/dev/null
REL_SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
echo -n "Please enter base function name: "
read functionName
echo -n "Please enter method(GET, POST, etc.): "
read method
jarPath=$(find ${REL_SCRIPT_DIR}/.. -name "${functionName}.jar")
if [[ "$jarPath" == "" ]]; then
echo "Unable to find file ${functionName}.jar" >&2
exit 1
fi
functionPath=${jarPath%/${functionName}.jar}