Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .aws-a
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,8 @@ cfls() {

alias erun='make -f ${PROFILE} up'
alias essh='make -f ${PROFILE} ssh'
alias ekill='ekillid $(cat logs/x86-id.log)'
alias ekill='make -f ${PROFILE} terminate'

alias armrun='make -f ${PROFILE} up-arm'
alias armssh='make -f ${PROFILE} ssh-arm'
alias armkill='ekillid $(cat logs/arm-id.log)'

alias armkill='make -f ${PROFILE} terminate-arm'
15 changes: 11 additions & 4 deletions .ec2.mak
Original file line number Diff line number Diff line change
Expand Up @@ -362,14 +362,15 @@ endif
#==============================

SHUTDOWN_BEH=terminate

# The subdirectory for log files
# The subdirectory for log files. Make sure subdirectory is present.
# The next two statements will be automatically selected by
# the xfer.sh script---do not modify them
# Do not include the trailing '/' in the subdirectory path
# Set to '.' to place logs in current directory
# Make sure subdirectory is present.
LOGD=.
# Set to a subdirectory to place logs there. Do not include the trailing '/' in the subdirectory path
#LOGD=logs


# this is used to provide a value for the tag mnemonic-name to make instances easier to recognize/recall a la Docker
NAMING_SVC=https://frightanic.com/goodies_content/docker-names.php
Expand Down Expand Up @@ -418,6 +419,9 @@ up:
ssh:
ssh -i $(LKEY) $(SSH_USER)@`cat $(LOGD)/x86-ip.log`

terminate:
aws --output json ec2 terminate-instances --instance-id $(LOGD)/x86-id.log

#
# Start an ARM (Graviton) instance
#
Expand All @@ -437,3 +441,6 @@ up-arm:
ssh-arm:
ssh -i $(LKEY) $(SSH_USER_ARM)@`cat $(LOGD)/arm-ip.log`

terminate-arm:
aws --output json ec2 terminate-instances --instance-id $(LOGD)/arm-id.log