-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
66 lines (52 loc) · 2.39 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.PHONY: $(MAKECMDGOALS)
push-ecr:
aws-vault exec hackney-dataplatform-development -- ./docker/sql-to-parquet/deploy.sh
format:
terraform fmt -recursive
lint:
$(MAKE) -C terraform/core lint-init lint
$(MAKE) -C terraform/etl lint-init lint
$(MAKE) -C terraform/networking lint-init lint
$(MAKE) -C terraform/backend-setup lint-init lint
init:
cd external-lib && make all
make package-helpers
cd terraform/core && make init
cd terraform/etl && make init
cd terraform/networking && make init
cd terraform/backend-setup && make init
git config core.hooksPath .github/hooks
apply:
make package-helpers
cd external-lib && make all
cd terraform/core && make apply
cd terraform/etl && make apply
destroy:
cd terraform/core && make destroy
cd terraform/etl && make destroy
plan:
make package-helpers
cd external-lib && make all
cd terraform/core && make plan
validate:
make package-helpers
cd external-lib && make all
$(MAKE) -C terraform/core validate
$(MAKE) -C terraform/etl validate
$(MAKE) -C terraform/networking validate
$(MAKE) -C terraform/backend-setup validate
start-qlik-ssm-session:
@echo "Environment (development,staging,production): "; read ENVIRONMENT; \
echo "Qlik instance id: "; read QLIK_INSTANCE_ID; \
aws-vault exec hackney-dataplatform-$$ENVIRONMENT -- aws ssm start-session --target $$QLIK_INSTANCE_ID --document-name AWS-StartPortForwardingSession --parameters '{"portNumber":["3389"],"localPortNumber":["3389"]}'
package-helpers: lib/data_platform_glue_job_helpers-1.0-py3-none-any.whl lib/convertbng-0.6.36-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.venv/bin/python:
python3 -m venv .venv
.venv/.install.stamp: .venv/bin/python scripts/requirements.build.txt
.venv/bin/python -m pip install -r scripts/requirements.build.txt
touch .venv/.install.stamp
lib/data_platform_glue_job_helpers-1.0-py3-none-any.whl: .venv/.install.stamp ./scripts/*
./scripts/package-helpers.sh
mv dist/data_platform_glue_job_helpers-1.0-py3-none-any.whl scripts/lib/data_platform_glue_job_helpers-1.0-py3-none-any.whl
lib/convertbng-0.6.36-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
wget https://files.pythonhosted.org/packages/73/08/d75ba0299d1ac2db7c1143214d4e9f26f1f04e25941cb19d0e28555955a9/convertbng-0.6.36-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -O ./scripts/lib/convertbng-0.6.36-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl