-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 843 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (22 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
MODE ?= plan
.PHONY: help lock package tf clean
help: ## Display this help screen
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
lock: ## Create or update the uv.lock file
uv lock
package: ## Create the Lambda deployment zip
uv export --frozen --no-dev --no-editable -o build/requirements.txt
uv pip install \
--no-installer-metadata \
--no-compile-bytecode \
--python-platform aarch64-manylinux2014 \
--python-version 3.14 \
--target build/packages \
-r build/requirements.txt
cd build/packages && zip -r ../lambda.zip .
zip -r build/lambda.zip app
tf: package ## Run terraform init and MODE (default: plan)
terraform -chdir=terraform init
terraform -chdir=terraform $(MODE)
clean: ## Remove build artifacts
rm -rf build