-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 745 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 745 Bytes
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
SHELL := /bin/bash
TF := terraform -chdir=terraform
export AWS_PROFILE ?= demoenv-usgov
export AWS_REGION ?= us-gov-west-1
.PHONY: help fmt init plan apply destroy mirror kubeconfig
help: ## Show targets
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN{FS=":.*?## "}{printf " %-12s %s\n", $$1, $$2}'
fmt: ## terraform fmt
$(TF) fmt -recursive
init: ## terraform init
$(TF) init
plan: ## terraform plan
$(TF) plan
apply: ## terraform apply
$(TF) apply
destroy: ## terraform destroy (tears the demo down)
$(TF) destroy
mirror: ## Mirror upstream images into ECR
./scripts/mirror-images.sh
kubeconfig: ## Write kubeconfig for the EKS cluster
aws eks update-kubeconfig --name usgov-coderdemo --region $(AWS_REGION)