Skip to content

Commit 4248fde

Browse files
committed
fix: fix missing dependencies
1 parent d315a83 commit 4248fde

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,18 @@ jobs:
1616
- name: Set up Python
1717
uses: actions/setup-python@v5
1818
with:
19-
python-version: '3.x'
19+
python-version: '3.12'
2020

2121
- name: Install AWS SAM CLI
2222
run: pip install aws-sam-cli
2323

2424
- name: Build with SAM
25-
run: sam build --use-container
25+
run: |
26+
# Ensure we're using the correct platform for Lambda
27+
export DOCKER_DEFAULT_PLATFORM=linux/amd64
28+
sam build --use-container --build-image public.ecr.aws/sam/build-python3.12:latest
29+
echo "Checking for compiled extensions..."
30+
find .aws-sam/build -name "*.so" -exec file {} \;
2631
2732
- name: Zip the contents
2833
id: zip

lambda/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
boto3==1.34.51
22
botocore==1.34.51
3+
pydantic-core>=2.23.2,<3.0.0
4+
pydantic>=2.5.0,<3.0.0
35
pyiceberg[s3fs,glue]
46
pandas
57
typing_extensions

template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Resources:
2020
Properties:
2121
CodeUri: lambda/
2222
Handler: app.lambda_handler
23-
Runtime: python3.9
23+
Runtime: python3.12
2424
Policies:
2525
- CloudWatchPutMetricPolicy: {}
2626
- AWSLambdaBasicExecutionRole

0 commit comments

Comments
 (0)