Skip to content

Commit

Permalink
fix issue with KMS encrypted communication
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Labarussias committed Jan 3, 2020
1 parent 646e31b commit 1251042
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,10 @@ func startSSH(instanceID string, region, profile, portNumber, localPortNumber *s
if err != nil {
log.Fatal(err.Error())
}
json, _ := json.Marshal(ssmSess)
payloadJSON, _ := json.Marshal(ssmSess)
inputJSON, _ := json.Marshal(input)

cmd := exec.Command("session-manager-plugin", string(json), *region, "StartSession", *profile)
cmd := exec.Command("session-manager-plugin", string(payloadJSON), *region, "StartSession", *profile, string(inputJSON))
cmd.Stdout = os.Stdout
cmd.Stdin = os.Stdin
cmd.Stderr = os.Stderr
Expand Down

0 comments on commit 1251042

Please sign in to comment.