-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·28 lines (20 loc) · 1.05 KB
/
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
SHELL := /bin/bash
export TERRAFORM = /usr/local/bin/terraform
# List of targets the `readme` target should call before generating the readme
export README_DEPS ?= docs/targets.md docs/terraform.md
-include $(shell curl -sSL -o .build-harness "https://git.io/build-harness"; echo .build-harness)
lint:
@cd examples/complete && terraform init && terraform validate
@terraform fmt
build/lambda:
docker pull public.ecr.aws/sam/build-nodejs14.x:1.66.0-20221129154622-x86_64
docker run -v $(CURDIR)/lambda:/var/task public.ecr.aws/sam/build-nodejs14.x:1.66.0-20221129154622-x86_64 npm install --production
build/lambda-layer:
docker pull public.ecr.aws/sam/build-nodejs14.x:1.66.0-20221129154622-x86_64
docker run -v $(CURDIR)/lambda-layer:/var/task public.ecr.aws/sam/build-nodejs14.x:1.66.0-20221129154622-x86_64 make
build/lambda-zip: build/lambda
cd lambda && zip -rqX lambda.zip ./*
mv lambda/lambda.zip lambda.zip
build/lambda-layer-zip: build/lambda-layer
cd lambda-layer && zip -rqX lambda-layer.zip ./*
mv lambda-layer/lambda-layer.zip lambda-layer.zip