-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
25 lines (20 loc) · 1.02 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
.PHONY: clean build deploy
clean:
go clean ./hook
go clean ./record
rm -rf ./bin/*
build:
GOOS=linux GOARCH=amd64 go build -o bin/main ./hook
zip -j bin/hook.zip bin/main
rm -f bin/main
GOOS=linux GOARCH=amd64 go build -o bin/main ./record
zip -j bin/record.zip bin/main
rm -f bin/main
deploy:
aws s3 cp bin/hook.zip s3://me.billglover.starling/hook.zip
aws s3 cp bin/record.zip s3://me.billglover.starling/record.zip
aws lambda update-function-code --function-name starling-roundup-WebHookHandler-16650P1S9BKZ1 --s3-bucket me.billglover.starling --s3-key hook.zip --region eu-west-2
aws lambda update-function-code --function-name starling-roundup-RecordHandler-34WP3BQTIDUU --s3-bucket me.billglover.starling --s3-key record.zip --region eu-west-2
sam:
aws cloudformation deploy --region eu-west-2 --capabilities CAPABILITY_IAM --template-file /Users/bill/go/src/github.com/billglover/starling-roundup/aws/sam/starling-roundup/template.yaml --stack-name starling-roundup
aws cloudformation list-exports --region eu-west-2