forked from noah-paige/quickstart-amazon-marketing-cloud-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (34 loc) · 1.7 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
SHELL=/bin/bash
CICD=default
CHILD=default
REGION=$(shell aws configure get region --profile ${CICD})
ENV=dev
.PHONY: delete_repositories deploy_artifacts deploy_satellite deploy_all insert_tps_records create_workflows
delete_all: empty_buckets delete_adk delete_bootstrap delete_repositories delete_all_items
help:
@echo "Helper for the aws-ddk MakeFile";
@echo "For clean up of the solution execute the following command";
@echo "make delete_all CICD=\"<your_cicd_profile>\" REGION=\"<the_deployment_region>\"";
@echo "-------------------------------------------\n";
@echo "To deploy analytics delivery kit, execute the following command";
@echo "make deploy_adk CICD=\"<your_cicd_profile>\"";
@echo "-------------------------------------------\n";
delete_repositories:
./scripts/cleanup_scripts/delete_repositories.sh -s ${CICD} -t ${CHILD} -r ${REGION} -d ddk-amc-quickstart
empty_buckets:
pushd scripts/cleanup_scripts; python3 ./list_items_to_delete.py ${ENV} ${CHILD}; popd;
pushd scripts/cleanup_scripts; python3 ./empty_buckets.py ${CHILD}; popd;
delete_adk:
cdk destroy AMC-${ENV}-QuickStart/amc-foundations \
AMC-${ENV}-QuickStart/amc-data-lake-pipeline \
AMC-${ENV}-QuickStart/amc-platform-manager \
AMC-${ENV}-QuickStart/amc-tps \
AMC-${ENV}-QuickStart/amc-wfm \
AMC-${ENV}-QuickStart/amc-data-lake-datasets --force --profile ${CHILD};
cdk destroy ddk-amc-quickstart-pipeline --force --profile ${CICD}
delete_bootstrap:
aws cloudformation delete-stack --stack-name DdkDevBootstrap --profile ${CICD}
delete_all_items:
sleep 120
pushd scripts/cleanup_scripts; python3 ./list_items_to_delete.py ${ENV} ${CHILD}; popd;
pushd scripts/cleanup_scripts; python3 ./delete_script.py ${CHILD}; popd;