Skip to content

Commit 1251042

Browse files
author
Thomas Labarussias
committed
fix issue with KMS encrypted communication
1 parent 646e31b commit 1251042

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,10 @@ func startSSH(instanceID string, region, profile, portNumber, localPortNumber *s
280280
if err != nil {
281281
log.Fatal(err.Error())
282282
}
283-
json, _ := json.Marshal(ssmSess)
283+
payloadJSON, _ := json.Marshal(ssmSess)
284+
inputJSON, _ := json.Marshal(input)
284285

285-
cmd := exec.Command("session-manager-plugin", string(json), *region, "StartSession", *profile)
286+
cmd := exec.Command("session-manager-plugin", string(payloadJSON), *region, "StartSession", *profile, string(inputJSON))
286287
cmd.Stdout = os.Stdout
287288
cmd.Stdin = os.Stdin
288289
cmd.Stderr = os.Stderr

0 commit comments

Comments
 (0)