Adding SSH shortcut to Makefile
This commit is contained in:
parent
3df3f98452
commit
b1bc43e854
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -3,6 +3,11 @@ SSH := ssh -o "StrictHostKeyChecking=no" -o UserKnownHostsFile=/dev/null -o Prox
|
|||
|
||||
default: terraform ansible
|
||||
|
||||
# I can't be relied on to remember the command to connect to the instance
|
||||
ssh:
|
||||
$(eval INSTANCE := $(shell terraform output instance_id | sed -e 's/"//g'))
|
||||
$(SSH) $(INSTANCE)
|
||||
|
||||
ssh_setup:
|
||||
chmod 600 privkey.pem
|
||||
$(eval INSTANCE := $(shell terraform output instance_id | sed -e 's/"//g'))
|
||||
|
|
Loading…
Reference in a new issue