forked from binxio/blog-aws-elasticsearch-service-firehose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (24 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
26
27
28
29
30
.PHONY: help init clean validate mock create delete info deploy
.DEFAULT_GOAL := help
environment = "example"
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
create: ## create env
@sceptre launch-env $(environment)
delete: ## delete env
@sceptre delete-env $(environment)
info: ## describe resources
@sceptre describe-stack-outputs $(environment) elasticsearch
merge-lambda: ## merge lambda in api gateway
# aws-cfn-update \
# lambda-inline-code \
# --resource ProcessorFunction \
# --file lambdas/identity_processor.py \
# templates/elasticsearch.yaml
aws-cfn-update \
lambda-inline-code \
--resource ProcessorFunction \
--file lambdas/map_message_processor.py \
templates/elasticsearch.yaml
publish: ## publish messages to the firehose delivery stream
@pipenv run python publish.py `sceptre describe-stack-outputs example elasticsearch | cfn-flip --json | jq -r '.[] | select(.OutputKey=="KinesisStreamName") | .OutputValue'` 500