mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2026-03-10 18:55:03 +00:00
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:
17
Tooling/LambdaUpdate.sh
Normal file
17
Tooling/LambdaUpdate.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
echo "Updating a Lambda."
|
||||
|
||||
REL_SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
|
||||
|
||||
source ${REL_SCRIPT_DIR}/VarSetup.sh
|
||||
|
||||
|
||||
aws lambda update-function-code --function-name ${functionName}${method} --zip-file fileb://${jarPath} 1>${DEBUGFILE} 2>${DEBUGFILE}
|
||||
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "Unable to update Lamba" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Update successful."
|
||||
exit 0
|
||||
Reference in New Issue
Block a user