Skip to content

Commit

Permalink
improve CICD (#18)
Browse files Browse the repository at this point in the history
* improve CICD

* fix wrong lambda name in CICD
  • Loading branch information
mdavis-xyz authored Nov 8, 2024
1 parent 376f5dc commit 508d330
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
scratch
4 changes: 3 additions & 1 deletion CICD/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e
set -o pipefail
export AWS_DEFAULT_REGION=ap-southeast-2
export LAMBDA_FUNCTION="${LAMBDA_FUNCTION:test-lammulti}"
test $LAMBDA_FUNCTION
cd lambda_code
pip install ../../ --target ./
Expand All @@ -10,7 +12,7 @@ echo deploying code
aws lambda update-function-code --function-name $LAMBDA_FUNCTION --zip-file fileb://$(pwd)/../code.zip
echo "waiting for lambda to finalize"
aws lambda wait function-updated --function-name $LAMBDA_FUNCTION
echo "invoking"
echo "invoking $LAMBDA_FUNCTION"
RESULT=$(aws lambda invoke --function-name $LAMBDA_FUNCTION --invocation-type RequestResponse RequestResponse --log-type Tail)
echo $RESULT | jq .
test null = $(echo $RESULT | jq .FunctionError)
Expand Down
1 change: 0 additions & 1 deletion CICD/lambda_code/RequestResponse

This file was deleted.

2 changes: 1 addition & 1 deletion CICD/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ Resources:
PackageType: Zip
ReservedConcurrentExecutions: 1
Role: !GetAtt LambdaRole.Arn
Runtime: python3.9
Runtime: python3.11
Timeout: 60
VpcConfig:
SecurityGroupIds:
Expand Down
1 change: 1 addition & 0 deletions lambda_multiprocessing/requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
moto[s3]>=5
boto3
tox>=2.7.0
wheel

0 comments on commit 508d330

Please sign in to comment.