diff --git a/.gitignore b/.gitignore index d9005f2..81bc762 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/CICD/deploy.sh b/CICD/deploy.sh index 15a888b..588d697 100755 --- a/CICD/deploy.sh +++ b/CICD/deploy.sh @@ -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 ./ @@ -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) diff --git a/CICD/lambda_code/RequestResponse b/CICD/lambda_code/RequestResponse deleted file mode 100644 index f32a580..0000000 --- a/CICD/lambda_code/RequestResponse +++ /dev/null @@ -1 +0,0 @@ -true \ No newline at end of file diff --git a/CICD/template.yaml b/CICD/template.yaml index 4b0b223..d1f0da0 100644 --- a/CICD/template.yaml +++ b/CICD/template.yaml @@ -350,7 +350,7 @@ Resources: PackageType: Zip ReservedConcurrentExecutions: 1 Role: !GetAtt LambdaRole.Arn - Runtime: python3.9 + Runtime: python3.11 Timeout: 60 VpcConfig: SecurityGroupIds: diff --git a/lambda_multiprocessing/requirements_test.txt b/lambda_multiprocessing/requirements_test.txt index 99aaf38..6029133 100644 --- a/lambda_multiprocessing/requirements_test.txt +++ b/lambda_multiprocessing/requirements_test.txt @@ -1,3 +1,4 @@ moto[s3]>=5 boto3 tox>=2.7.0 +wheel