From e2f06b8cd985cbde448be24505db8aa3348b2dcf Mon Sep 17 00:00:00 2001 From: Tom Romano Date: Mon, 26 Aug 2024 16:58:24 -0400 Subject: [PATCH 1/2] Define Lambda Architecture --- workshops/serverless-testing-workshop/template.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/workshops/serverless-testing-workshop/template.yaml b/workshops/serverless-testing-workshop/template.yaml index d97a6b0f..8123b652 100644 --- a/workshops/serverless-testing-workshop/template.yaml +++ b/workshops/serverless-testing-workshop/template.yaml @@ -9,6 +9,8 @@ Description: SAM Template for serverless-test-workshop Globals: Function: Timeout: 30 + Architectures: + - arm64 Parameters: iECRStreamlitPort: From 176f3dd01571a7552b301734ef30cf072d4221ac Mon Sep 17 00:00:00 2001 From: Tom Romano Date: Thu, 26 Sep 2024 11:17:39 -0400 Subject: [PATCH 2/2] Move to Python 3.12 --- .../serverless-testing-workshop/template.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/workshops/serverless-testing-workshop/template.yaml b/workshops/serverless-testing-workshop/template.yaml index 8123b652..6f214e71 100644 --- a/workshops/serverless-testing-workshop/template.yaml +++ b/workshops/serverless-testing-workshop/template.yaml @@ -10,7 +10,7 @@ Globals: Function: Timeout: 30 Architectures: - - arm64 + - x86_64 Parameters: iECRStreamlitPort: @@ -93,7 +93,7 @@ Resources: TableName: !Ref UnicornInventoryTable CodeUri: src/Checkout/ Handler: app.lambda_handler - Runtime: python3.11 + Runtime: python3.12 Environment: Variables: DYNAMODB_TABLE_NAME: @@ -115,7 +115,7 @@ Resources: TableName: !Ref UnicornInventoryTable CodeUri: src/GetInventory/ Handler: app.lambda_handler - Runtime: python3.11 + Runtime: python3.12 Environment: Variables: DYNAMODB_TABLE_NAME: @@ -146,7 +146,7 @@ Resources: TableName: !Ref UnicornInventoryTable CodeUri: src/GetLocations/ Handler: app.lambda_handler - Runtime: python3.11 + Runtime: python3.12 Environment: Variables: DYNAMODB_TABLE_NAME: @@ -170,7 +170,7 @@ Resources: BucketName: !Sub "unicorn-inv-${AWS::StackName}-${AWS::AccountId}" CodeUri: src/GetSignedUrlForInventoryFilePost/ Handler: app.lambda_handler - Runtime: python3.11 + Runtime: python3.12 Environment: Variables: S3_BUCKET_NAME: !Sub "unicorn-inv-${AWS::StackName}-${AWS::AccountId}" @@ -187,7 +187,7 @@ Resources: Tracing: Active CodeUri: src/FileValidator/ Handler: app.lambda_handler - Runtime: python3.11 + Runtime: python3.12 Policies: - AWSXrayWriteOnlyAccess - S3ReadPolicy: @@ -199,7 +199,7 @@ Resources: Tracing: Active CodeUri: src/CreateLocations/ Handler: app.lambda_handler - Runtime: python3.11 + Runtime: python3.12 Environment: Variables: DYNAMODB_TABLE_NAME: