-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (20 loc) · 828 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
STACK = days
export SAM_CLI_TELEMETRY=0
.PHONY: build deploy validate destroy
DOMAINNAME = days.dabase.com
ACMCERTIFICATEARN = arn:aws:acm:eu-west-2:407461997746:certificate/9083a66b-72b6-448d-9bce-6ee2e2e52e36
deploy:
sam build
sam deploy --no-progressbar --resolve-s3 --stack-name $(STACK) --parameter-overrides DomainName=$(DOMAINNAME) ACMCertificateArn=$(ACMCERTIFICATEARN) --no-confirm-changeset --no-fail-on-empty-changeset --capabilities CAPABILITY_IAM --disable-rollback
build-MainFunction:
find
pwd
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ${ARTIFACTS_DIR}/bootstrap
validate:
aws cloudformation validate-template --template-body file://template.yml
destroy:
aws cloudformation delete-stack --stack-name $(STACK)
sam-tail-logs:
sam logs --stack-name $(STACK) --tail
clean:
rm -rf main gin-bin