Skip to content

Commit

Permalink
Merge pull request #9 from rrigato/dev
Browse files Browse the repository at this point in the history
upgrade dockerfile to python 3_11 and ask-sdk-core 1_19_0
  • Loading branch information
rrigato authored Feb 24, 2024
2 parents 5112cb9 + df18ce1 commit 064c16a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
7 changes: 5 additions & 2 deletions layers/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
FROM amazonlinux:latest
# Make sure to use the amazonlinux version appropriate to python version
# of the operating system documented here:
# https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
FROM amazonlinux:2

ARG BUILT_LAYER_NAME

ENV PYTHON_VERSION="3.9.13"
ENV PYTHON_VERSION="3.11.8"

RUN yum install -y tar \
wget \
Expand Down
2 changes: 1 addition & 1 deletion layers/dependency_creation.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export BUILT_LAYER_NAME="ask_sdk_core_1_17_1.zip"
export BUILT_LAYER_NAME="ask_sdk_core_1_19_0.zip"
export CONTAINER_NAME="lambda-container"
export IMAGE_NAME="lambda-dependency"

Expand Down
22 changes: 21 additions & 1 deletion templates/ask_lambda_layer.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ Parameters:
Type: String
Default: layers/ask_sdk_core_most_recent.zip

askMostRecentPython311Description:
Type: String
Default: ask-sdk-core==1.19.0 python 3.11.8 runtime

askMostRecentPython311BucketKey:
Type: String
Default: layers/ask_sdk_core_1_19_0.zip

askMostRecentVersionDescription:
Type: String
Default: ask-sdk-core==1.17.1 will always be the latest version

askMostRecentVersionName:
Type: String
Default: ask-sdk-core-most-recent
Expand Down Expand Up @@ -55,3 +63,15 @@ Resources:
Description: !Ref askMostRecentVersionDescription
LayerName: !Ref askMostRecentVersionName


askMostRecentLayerPython311:
Type: AWS::Lambda::LayerVersion
Properties:
CompatibleRuntimes:
- python3.11
Content:
S3Bucket: !Ref deploymentBucketName
S3Key: !Ref askMostRecentPython311BucketKey
Description: !Ref askMostRecentPython311Description
LayerName: !Ref askMostRecentVersionName

0 comments on commit 064c16a

Please sign in to comment.