From a6d93e1161f17cb1afc58e3dbd9439f43a0ddcdc Mon Sep 17 00:00:00 2001 From: vshimoda Date: Wed, 12 Jun 2019 17:35:34 +0900 Subject: [PATCH 1/2] Add aliases to ssh using session manager --- alias | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/alias b/alias index fc01acd..95fc0d8 100644 --- a/alias +++ b/alias @@ -134,3 +134,9 @@ revoke-my-ip-all = !f() { aws revoke-my-ip ${1} all all }; f + +ssh = + !f() { + aws ssm start-session --target "${1}" + }; f + From ddf36e502c3db83a0494ff1e677fa8f83bd1719c Mon Sep 17 00:00:00 2001 From: vshimoda Date: Mon, 2 Dec 2019 11:27:25 +0900 Subject: [PATCH 2/2] rename alias --- alias | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/alias b/alias index 95fc0d8..a46973a 100644 --- a/alias +++ b/alias @@ -135,8 +135,5 @@ revoke-my-ip-all = aws revoke-my-ip ${1} all all }; f -ssh = - !f() { - aws ssm start-session --target "${1}" - }; f +shell = ssm start-session --target