From c2bc3267061a927624a8a4f6d55dd89ed39fdf10 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Wed, 10 Aug 2022 11:03:33 +0200 Subject: [PATCH] ssm: change from aws-gate to ec2-connect Signed-off-by: Andreas Gerler --- bba.org | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/bba.org b/bba.org index 7a231927..27bb8cc5 100644 --- a/bba.org +++ b/bba.org @@ -5363,14 +5363,19 @@ define aws account or region either. Based on the telnet configuration (they both have similar capabilities) I wrote this one: - (add-to-list 'tramp-methods - '("ssm" - (tramp-login-program "aws-gate") - (tramp-login-args (("session")("%h") ("2>/dev/null"))) - (tramp-remote-shell "/bin/sh") - (tramp-remote-shell-login ("-l")) - (tramp-remote-shell-args ("-c")))) #+begin_src elisp :eval never :tangle no + (require 'tramp) + (eval-after-load "tramp" + '(progn + (add-to-list 'tramp-methods + '("ssm" + (tramp-login-program "ec2-connect") + (tramp-login-args (("--name")("%h") ("2>/dev/null"))) + (tramp-remote-shell "/bin/sh") + (tramp-remote-shell-login ("-l")) + (tramp-remote-shell-args ("-c")))) + (tramp-set-completion-function "ssm" tramp-completion-function-alist-ssh))) + #+end_src Now we can again do strange, dark org-babel magic like: -- 2.47.3