Skip to content

Commit

Permalink
slightly better handling of expired credentials or other lookup failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Steinberg committed Oct 19, 2022
1 parent 41164e3 commit 0a013e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bash/aws_functions
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ function ssh-aws-id() {
function ssh-ssm() {
hostname=$1
shift
ssh $(instance_id_from_name ${hostname}) $@
instance_id=$(instance_id_from_name ${hostname})
if [ "$instance_id" != "" ] ; then
ssh $instance_id $@
fi
}

function retag-ecr-image() {
Expand Down

0 comments on commit 0a013e0

Please sign in to comment.