Skip to content

Commit

Permalink
specifying version
Browse files Browse the repository at this point in the history
  • Loading branch information
rjvgupta committed Jul 13, 2024
1 parent 39f7147 commit d7b03ad
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
if [[ $folder == *-udfs/* ]] && [[ $function != ${PARTS[1]} ]]; then
type=${PARTS[0]}
function=${PARTS[1]}
key=${{ secrets.S3_KEY }}
key=${{ vars.S3_KEY }}
if ! [[ -z "${key// }" ]]; then
k="-k ${{ secrets.S3_KEY }}"
k="-k ${{ vars.S3_KEY }}"
fi
./deployFunction.sh -t $type -f "$function" -s ${{ vars.S3_BUCKET }} $k -r ${{ vars.IAM_ROLE }} -c ${{ vars.CLUSTER }} -d ${{ vars.DB }} -u ${{ vars.USER }} -n ${{ vars.SCHEMA }} -g ${{ vars.SECURITY_GROUP }} -x ${{ vars.SUBNET }}
./testFunction.sh -t $type -f "$function" -c ${{ vars.CLUSTER }} -d ${{ vars.DB }} -u ${{ vars.USER }} -n ${{ vars.SCHEMA }}
Expand Down
1 change: 1 addition & 0 deletions bin/layerInstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ docker run \
--user $UID:$UID \
"public.ecr.aws/sam/build-python${python_version}" \
/bin/sh \
-c "pip install --upgrade pip" \
-c "pip install -r requirements.txt -t python/lib/python${python_version}/site-packages/; exit"

echo "Built, zipping layer contents..."
Expand Down
2 changes: 1 addition & 1 deletion lambda-udfs/f_fastembed_embedding(varchar)/lambda.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Resources:
- python3.9
Content:
S3Bucket: !Ref S3Bucket
S3Key: !If ["NoS3Prefix", "fastembed.zip", !Sub "${S3Key}/fastembed.zip"]
S3Key: !If ["NoS3Prefix", "fastembed_0.3.3.zip", !Sub "${S3Key}/fastembed_0.3.3.zip"]
Description: FastEmbed library
LayerName: fastembed
LambdaUDFFunction:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fastembed
fastembed==0.3.3

0 comments on commit d7b03ad

Please sign in to comment.