-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (23 loc) · 839 Bytes
/
Makefile
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
29
30
31
.ONESHELL: deploy-backend deploy-frontend invalidate-cache full_deploy
update:
cd infrastructure
terraform get -update=true
deploy-backend:
cd infrastructure
terraform validate && terraform apply
deploy-frontend:
cd frontend
npm i
npm run package
cd ../infrastructure
terraform apply
invalidate-cache:
aws cloudfront create-invalidation --distribution-id E3TMYMHI6W1ORT --paths "/*" --region us-east-1
full_deploy: deploy-backend deploy-frontend invalidate-cache
echo "done"
build-local:
cd backend
docker build --platform linux/x86_64 -t lambdas .
docker run --platform linux/x86_64 -p 9000:8080 lambdas
test-lambda:
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"resource": "/", "path": "/", "httpMethod": "GET", "requestContext": {}, "multiValueQueryStringParameters": null}'