-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
17 lines (13 loc) · 917 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SHELL := /bin/bash
.EXPORT_ALL_VARIABLES:
run: make-apply
make-apply:
@export AUTO_APPROVE="-auto-approve" && cd $(PROJECT_DIR) && (if [[ "${backendApplicationHosting}" =~ "kubernetes" ]]; then make apply; else make apply-without-eks; fi)
summary:
@echo "zero-aws-eks-stack:"
@echo "- Repository URL: ${REPOSITORY}"
@echo "- To see your kubernetes clusters, run: 'kubectl config get-contexts'"
@echo "- To switch to a cluster, use the following commands:"
@echo $(shell [[ "${ENVIRONMENT}" =~ "prod" ]] && echo "- for production use: kubectl config use-context $(shell kubectl config get-contexts -o name | grep ${PROJECT_NAME}-prod)")
@echo $(shell [[ "${ENVIRONMENT}" =~ "stage" ]] && echo "- for staging use: kubectl config use-context $(shell kubectl config get-contexts -o name | grep ${PROJECT_NAME}-stage)")
@echo "- To inspect the selected cluster, run 'kubectl get node,service,deployment,pods'"