forked from cloudquery/cloudquery
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (27 loc) · 651 Bytes
/
Makefile
File metadata and controls
33 lines (27 loc) · 651 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
29
30
31
32
PACKAGE_NAME := github.com/cloudquery/cloudquery
.PHONY: build
build:
@docker run \
--rm -v "${PWD}":/var/task \
-w /var/task \
-e GOOS=linux \
-e GOARCH=amd64 \
-e CGO_ENABLED=1 \
lambci/lambda:build-go1.x \
go build -v -o bin/cloudquery
.PHONY: init
init:
@cd deploy/aws/terraform && terraform init
.PHONY: plan
plan:
@cd deploy/aws/terraform && terraform init && terraform plan
.PHONY: apply
apply:
ifeq (,$(wildcard ./bin/cloudquery))
echo "Run \"make build\" before deploy."
else
@cd deploy/aws/terraform && terraform init && terraform apply
endif
.PHONY: destroy
destroy:
@cd deploy/aws/terraform && terraform destroy