-
Notifications
You must be signed in to change notification settings - Fork 2
/
template-only.mak
42 lines (31 loc) · 1.31 KB
/
template-only.mak
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
# This Makefile is for developers working on template-infra itself
# and is not intended to be used by projects that are using the template
PROJECT_NAME ?= platform-template-infra
PROJECT_OWNER ?= platform-admins
PROJECT_REGION ?= us-east-1
.PHONY : \
clean \
test \
setup-app-backends \
destroy-account
lint-template-scripts: ## Lint template only scripts
shellcheck template-only-bin/**
test:
cd template-only-test && PROJECT_NAME=$(PROJECT_NAME) go test -v -timeout 30m
set-up-project:
./template-only-bin/set-up-project $(PROJECT_NAME) $(PROJECT_OWNER) $(PROJECT_REGION)
clean:
rm -fr infra/accounts/account/.terraform infra/app/envs/dev/.terraform infra/app/envs/staging/.terraform infra/app/envs/prod/.terraform infra/app/build-repository/.terraform
rm -f infra/accounts/account/terraform.tfstate* infra/app/envs/dev/terraform.tfstate* infra/app/envs/staging/terraform.tfstate* infra/app/envs/prod/terraform.tfstate* infra/app/build-repository/terraform.tfstate*
git reset --hard HEAD
git clean -f
destroy-app-service:
./template-only-bin/destroy-app-service
destroy-app-database:
./template-only-bin/destroy-app-database
destroy-app-build-repository:
./template-only-bin/destroy-app-build-repository
destroy-network:
./template-only-bin/destroy-network
destroy-account:
./template-only-bin/destroy-account