Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sawyerh committed Sep 1, 2024
1 parent 861f0ee commit 134acfb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions aws/ai/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ frameworkVersion: "3"
provider:
name: aws
runtime: python3.10
# "...significantly better price and performance"
# https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html#foundation-arch-adv
architecture: arm64
architecture: x86_64
# "faster and have no downsides (unless you specifically use the generated change sets).
# They will become the default in Serverless Framework 4."
deploymentMethod: direct
Expand Down Expand Up @@ -43,9 +41,9 @@ functions:
layers:
- !Ref PythonRequirementsLambdaLayer
# https://aws-sdk-pandas.readthedocs.io/en/stable/layers.html
- arn:aws:lambda:${aws:region}:336392948345:layer:AWSSDKPandas-Python310-Arm64:3
- arn:aws:lambda:${aws:region}:336392948345:layer:AWSSDKPandas-Python310:20
# https://docs.powertools.aws.dev/lambda/python/latest/
- arn:aws:lambda:${aws:region}:017000801446:layer:AWSLambdaPowertoolsPythonV2-Arm64:37
- arn:aws:lambda:${aws:region}:017000801446:layer:AWSLambdaPowertoolsPythonV2:79
environment:
EMBEDDINGS_S3_BUCKET: highlights.sawyerh.com
EMBEDDINGS_S3_KEY: ai/embeddings.parquet
Expand Down

0 comments on commit 134acfb

Please sign in to comment.