Skip to content

Commit

Permalink
updated python runtime to 3.8, lambda now successfully runs
Browse files Browse the repository at this point in the history
  • Loading branch information
jpswinski committed Oct 4, 2023
1 parent 8e77464 commit 4529a12
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions targets/slideruleearth-aws/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ perfstest: ## run strips performance test on the server code
perfsubsetest: ## run subset performance test
$(SERVER_STAGE_DIR)/bin/sliderule $(SUBSET_PERFORMANCE_TEST)

manager-package: ## create the lambda python package for the manager
cd terraform/manager/python && ./package.sh

manager-deploy: ## deploy manager using terraform; needs DOMAIN
cd terraform/manager && terraform init
cd terraform/manager && terraform workspace select $(DOMAIN)-manager || terraform workspace new $(DOMAIN)-manager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
readonly CERTBOT_VERSION=2.6.0
readonly VENV="certbot/venv"
readonly PYTHON="python3.11"
readonly PYTHON="python3.8"
readonly CERTBOT_ZIP_FILE="certbot-${CERTBOT_VERSION}.zip"
readonly CERTBOT_SITE_PACKAGES=${VENV}/lib/${PYTHON}/site-packages

Expand Down
2 changes: 1 addition & 1 deletion targets/slideruleearth-aws/terraform/manager/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ variable "lambda_architectures" {
variable "lambda_runtime" {
description = "Name of the runtime for lambda function."
type = string
default = "python3.11"
default = "python3.8"
}

variable "lambda_memory_size" {
Expand Down

0 comments on commit 4529a12

Please sign in to comment.