Skip to content

Commit 225ecd7

Browse files
committed
Fix command runner
1 parent d188788 commit 225ecd7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/ec2/run.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package ec2
33
import (
44
"context"
55
"fmt"
6+
"strings"
67
"time"
78

89
"github.com/aws/aws-sdk-go-v2/service/ssm"
@@ -38,7 +39,7 @@ func NewCommandRunner(cfg *config.Config, inst *Instance, command []string) (*Co
3839
CloudWatchOutputEnabled: true,
3940
},
4041
Parameters: map[string][]string{
41-
"commands": command,
42+
"commands": {strings.Join(command, " ")},
4243
},
4344
}
4445

0 commit comments

Comments
 (0)