File tree 2 files changed +4
-3
lines changed 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,16 @@ set -o pipefail
6
6
7
7
export AWS_ACCESS_KEY_ID=test
8
8
export AWS_SECRET_ACCESS_KEY=test
9
- export AWS_DEFAULT_REGION=us-east-1
10
9
11
10
BIN=" hello-world-fn"
11
+ TARGET=" aarch64-unknown-linux-gnu"
12
12
13
13
LAMBDA_DIR=target/lambda
14
- RELEASE_DIR=target/release
14
+ RELEASE_DIR=target/$TARGET / release
15
15
FN_DIR=$LAMBDA_DIR /$BIN
16
16
17
17
mkdir -p $LAMBDA_DIR
18
- cross build --bin $BIN --release --target aarch64-unknown-linux-musl
18
+ cargo zigbuild --bin $BIN --release --target $TARGET .2.27
19
19
rm -rf $FN_DIR 2> /dev/null || true
20
20
mkdir -p $FN_DIR
21
21
cp $RELEASE_DIR /$BIN $FN_DIR /bootstrap
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ resource "aws_lambda_function" "hello_world" {
22
22
filename = local. fn_archive
23
23
source_code_hash = filebase64sha256 (local. fn_archive )
24
24
runtime = " provided.al2"
25
+ architectures = [" arm64" ]
25
26
26
27
environment {
27
28
variables = {
You can’t perform that action at this time.
0 commit comments