diff --git a/Makefile b/Makefile index 168b8ff..b13976e 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +SHELL := /bin/bash run: cd $(PROJECT_DIR) && AUTO_APPROVE="-auto-approve" make @@ -6,6 +7,7 @@ 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 NAME from the previous command in 'kubectl config use-context NAME'" + @echo "- To switch to a cluster, use the following commands:" + @echo $(shell [[ "${ENVIRONMENT}" =~ "production" ]] && echo "- for production use: kubectl config use-context $(shell kubectl config get-contexts -o name | grep ${PROJECT_NAME}-production)") + @echo $(shell [[ "${ENVIRONMENT}" =~ "staging" ]] && echo "- for staging use: kubectl config use-context $(shell kubectl config get-contexts -o name | grep ${PROJECT_NAME}-staging)") @echo "- To inspect the selected cluster, run 'kubectl get node,service,deployment,pods'" -