Skip to content

Commit

Permalink
Added libc static linking to lambdas
Browse files Browse the repository at this point in the history
  • Loading branch information
rimutaka committed Dec 22, 2024
1 parent fe6f0ef commit 526917f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rust/lambdas/client-sync/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ region=us-east-1
lambda=client-sync
crate=client-sync

cargo build --release --target $target --package $crate
RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target $target --package $crate
cp ./target/$target/release/$crate ./bootstrap && zip proxy.zip bootstrap && rm bootstrap
aws lambda update-function-code --region $region --function-name $lambda --zip-file fileb://proxy.zip
rm proxy.zip
Expand Down
2 changes: 1 addition & 1 deletion rust/lambdas/index-html-server/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ region=us-east-1
lambda=index-html-server
crate=index-html-server

cargo build --release --target $target --package $crate
RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target $target --package $crate
cp ./target/$target/release/$crate ./bootstrap && zip proxy.zip bootstrap && rm bootstrap
aws lambda update-function-code --region $region --function-name $lambda --zip-file fileb://proxy.zip
rm proxy.zip
Expand Down
2 changes: 1 addition & 1 deletion rust/lambdas/photo-tracker/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ region=us-east-1
lambda=photo-tracker
crate=photo-tracker

cargo build --release --target $target --package $crate
RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target $target --package $crate
cp ./target/$target/release/$crate ./bootstrap && zip proxy.zip bootstrap && rm bootstrap
aws lambda update-function-code --region $region --function-name $lambda --zip-file fileb://proxy.zip
rm proxy.zip
Expand Down
2 changes: 1 addition & 1 deletion rust/lambdas/share-handler/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ region=us-east-1
lambda=share-handler
crate=share-handler

cargo build --release --target $target --package $crate
RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target $target --package $crate
cp ./target/$target/release/$crate ./bootstrap && zip proxy.zip bootstrap && rm bootstrap
aws lambda update-function-code --region $region --function-name $lambda --zip-file fileb://proxy.zip
rm proxy.zip
Expand Down

0 comments on commit 526917f

Please sign in to comment.