Skip to content

Commit

Permalink
add a tiny helper for connecting to aws nodes via their instance id
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Steinberg committed Sep 1, 2022
1 parent 2387f4f commit 2a99059
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bash/aws_functions
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ function ssh-aws-id() {
ssh $(ip_from_instance_id $@ | head -1)
}

function ssh-ssm() {
hostname=$1
shift
ssh $(instance_id_from_name ${hostname}) $@
}

function retag-ecr-image() {
REPO=${1:?"No repository specified"}
SHA=${2:?"No image digest sha specified"}
Expand Down

0 comments on commit 2a99059

Please sign in to comment.