25 lines
381 B
Makefile
25 lines
381 B
Makefile
PROJECT := simple
|
|
|
|
apply:
|
|
terraform apply -auto-approve
|
|
|
|
init:
|
|
terraform init
|
|
|
|
## recreate terraform resources
|
|
rebuild: destroy apply
|
|
|
|
destroy:
|
|
terraform destroy -auto-approve
|
|
|
|
## create public/private keypair for ssh
|
|
create-keypair:
|
|
@echo "THIDIR=$(THISDIR)"
|
|
ssh-keygen -t rsa -b 4096 -f id_rsa -C $(PROJECT) -N "" -q
|
|
|
|
metadata:
|
|
terraform refresh && terraform output ips
|
|
|
|
|
|
|