Skip to content

Commit

Permalink
udpate changelog, update makefile allow lambda to be build with x86
Browse files Browse the repository at this point in the history
  • Loading branch information
guyrenny committed Aug 11, 2024
1 parent 5ad195e commit ba37e29
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# Changelog

## v1.0.13 / 2024-11-08
### 🧰 Bug fixes 🧰
- Allow the lambda to use the runtime `provided.al2`, by changing the binary build of cargo to a version that will support it in the Makefile. Add a parameter `FunctionRunTime` to allow users to choose the function runtime

## v1.0.12 / 2024-08-02
### 💡 Enhancements 💡
- Added support for CloudWatch over Kinesis Stream

## v1.0.11 / 2024-07-30
### 🧰 Bug fixes 🧰
- fix bug when trying to deploy CloudWatch integration. deploy with log group, with a name longer than 70 letters hit a limit with aws permission length, update the function so in case that the name is longer than 70 letters it will take the first 65 letters and the last 5.
Expand Down
21 changes: 12 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
FUNCTIONS := handler
LAMBDA_NAME := coralogix-aws-shipper
ARCH := $(or ${RUST_ARCH},arm64)
ARCH_SPLIT = $(subst -, ,$(ARCH))

# build-%:
# cargo lambda build --release --${ARCH}
# @mkdir -p $(ARTIFACTS_DIR)
# @cp -v ./target/lambda/${LAMBDA_NAME}/bootstrap $(ARTIFACTS_DIR)
# set +xv
# Determine the target based on the architecture
ifeq ($(ARCH),arm64)
TARGET_ARCH := aarch64-unknown-linux-gnu.2.17
else ifeq ($(ARCH),x86-64)
TARGET_ARCH := x86_64-unknown-linux-gnu.2.17
else
$(error Unsupported architecture: $(ARCH))
endif

build-LambdaFunction:
cargo lambda build --release --target aarch64-unknown-linux-gnu.2.17
cp ./target/lambda/coralogix-aws-shipper/bootstrap $(ARTIFACTS_DIR)
cargo lambda build --release --target $(TARGET_ARCH)
@mkdir -p $(ARTIFACTS_DIR)
cp ./target/lambda/$(LAMBDA_NAME)/bootstrap $(ARTIFACTS_DIR)

delete:
sam delete
sam delete

0 comments on commit ba37e29

Please sign in to comment.