-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (30 loc) · 1.27 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
SHELL := /bin/bash
build:
docker build -t api .
run:
docker run --publish 80:80 api
publish: build
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 221039308519.dkr.ecr.us-east-1.amazonaws.com
docker tag api:latest 221039308519.dkr.ecr.us-east-1.amazonaws.com/api:latest
docker tag api:latest 221039308519.dkr.ecr.us-east-1.amazonaws.com/api:latest
docker push 221039308519.dkr.ecr.us-east-1.amazonaws.com/api:latest
plan-shared:
cd terraform/shared; tfswitch
terraform init -input=false
terraform plan -input=false -no-color -compact-warnings -out plan.tfplan
apply-shared:
cd terraform/shared; tfswitch
terraform init -input=false
terraform apply -input=false -no-color -compact-warnings -auto-approve
plan:
cd terraform/stacks; tfswitch
cd terraform/stacks; terraform init -input=false
cd terraform/stacks; terraform plan -input=false -no-color -compact-warnings -out plan.tfplan
apply:
cd terraform/stacks; tfswitch
cd terraform/stacks; terraform init -input=false
cd terraform/stacks; terraform apply -input=false -no-color -compact-warnings -auto-approve
destroy:
cd terraform/stacks; tfswitch
cd terraform/stacks; terraform init -input=false
cd terraform/stacks; terraform destroy -input=false -no-color -compact-warnings