forked from newrelic/aws_s3_log_ingestion_lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (35 loc) · 885 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
32
33
34
35
36
37
38
39
40
41
42
43
build:
sam build --use-container
run: check-run-env
sam local invoke "NewRelicLogIngestionFunction" -e $(TEST_FILE)
package: check-package-env
sam package --output-template-file packaged.yml --s3-bucket $(BUCKET) --region $(REGION)
deploy: check-deploy-env
sam deploy --template-file packaged.yml --stack-name $(STACK_NAME) --region $(REGION)
publish: check-publish-env
sam publish --template packaged.yml --region $(REGION)
check-run-env:
ifndef LICENSE_KEY
$(error LICENSE_KEY is undefined)
endif
ifndef TEST_FILE
$(error TEST_FILE is undefined)
endif
check-package-env:
ifndef REGION
$(error REGION is undefined)
endif
ifndef BUCKET
$(error BUCKET is undefined)
endif
check-deploy-env:
ifndef REGION
$(error REGION is undefined)
endif
ifndef STACK_NAME
$(error STACK_NAME is undefined)
endif
check-publish-env:
ifndef REGION
$(error REGION is undefined)
endif