Skip to content

Commit c43a8dc

Browse files
committed
🔧 update python from 3.7 -> 3.9
1 parent f55b7bb commit c43a8dc

File tree

5 files changed

+273
-156
lines changed

5 files changed

+273
-156
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ PROJECT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
88
AWS_ACCOUNT := $(shell aws sts get-caller-identity --profile ${AWS_PROFILE} --query 'Account' --output text)
99
PROJECT_NAME = authorizers
1010
FUNCTION_BUCKET := lba-apigw-basicauthfunc-${PROJECTID}
11+
FUNCTION_NAME_STARTSWITH := lba-apigw-basicauthfunc-
1112

1213
#################################################################################
1314
# COMMANDS #
@@ -45,8 +46,8 @@ putcode:
4546
aws s3 cp function.zip s3://${FUNCTION_BUCKET}
4647

4748
updatefunc: zipcode putcode
48-
aws lambda update-function-code --function-name $(shell aws lambda list-functions --query "Functions[?starts_with(FunctionName, '${FUNCTION_BUCKET}')].[FunctionName]" --output text) --s3-bucket ${FUNCTION_BUCKET} --s3-key function.zip
49-
aws lambda publish-version --function-name $(shell aws lambda list-functions --query "Functions[?starts_with(FunctionName, '${FUNCTION_BUCKET}')].[FunctionName]" --output text)
49+
aws lambda update-function-code --function-name $(shell aws lambda list-functions --query "Functions[?starts_with(FunctionName, '${FUNCTION_NAME_STARTSWITH}')].[FunctionName]" --output text) --s3-bucket ${FUNCTION_BUCKET} --s3-key function.zip
50+
aws lambda publish-version --function-name $(shell aws lambda list-functions --query "Functions[?starts_with(FunctionName, '${FUNCTION_NAME_STARTSWITH}')].[FunctionName]" --output text)
5051

5152
installauthorizer:
5253
pipenv run python -m authorizers.install --restapi-id ${RESTAPI_ID}

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ coverage = "*"
1313
boto3 = "*"
1414

1515
[requires]
16-
python_version = "3.7"
16+
python_version = "3.9"

0 commit comments

Comments
 (0)