Files
lambda_studio/Makefile

44 lines
711 B
Makefile

.PHONY: install up down clean kind tilt-up tilt-down seed seed-aws invoke sam-build sam-deploy sam-invoke
PY := .venv/bin/python
COMPOSE := docker compose -f ctrl/docker-compose.yml
install:
uv sync
up:
$(COMPOSE) up -d
down:
$(COMPOSE) down
clean:
$(COMPOSE) down -v
kind:
bash ctrl/kind-config.sh
tilt-up:
cd ctrl && tilt up --context kind-eth
tilt-down:
cd ctrl && tilt down --context kind-eth
seed:
bash ctrl/seed.sh
seed-aws:
bash ctrl/seed_aws.sh
invoke:
$(PY) invoke.py
sam-build:
sam build
sam-deploy: sam-build
sam deploy
sam-invoke:
aws lambda invoke --function-name eth-demo-sign-pdfs --payload '{}' --cli-binary-format raw-in-base64-out /tmp/out.json && cat /tmp/out.json