Skip to content

Commit

Permalink
Change python version to 3.10 as thats the latest supported by terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
sakibstark11 committed Jan 7, 2024
1 parent ee82c78 commit 1574073
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
terraform 1.4.2
python 3.12.1
python 3.10.0
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8-bullseye
FROM python:3.10-bullseye

RUN apt-get update
RUN apt-get install -y make zip unzip wget --no-install-recommends
Expand Down
5 changes: 3 additions & 2 deletions terraform/lambda_layer.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
lambda_python_version = "python3.12"
lambda_python_version = "python3.10"
requirements_filepath = "${path.module}/../requirements.txt"
lambda_layer_zipfile_name = "craftsmen-bot-layer"

Expand All @@ -14,7 +14,8 @@ resource "null_resource" "build_lambda_layer" {
}

triggers = {
run_when = filemd5(local.requirements_filepath)
run_when_dependency = filemd5(local.requirements_filepath)
run_when_source = sha1(join("", [for f in fileset(path.root, "${path.module}/../src/**") : filesha1(f)]))
}
}

Expand Down

0 comments on commit 1574073

Please sign in to comment.