Skip to content

Commit 0dbf18b

Browse files
committed
platform/api/aws: fetch latest log content
1 parent cdc5afa commit 0dbf18b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

platform/api/aws/ec2.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ func (a *API) CreateTags(resources []string, tags map[string]string) error {
262262
func (a *API) GetConsoleOutput(instanceID string) (string, error) {
263263
res, err := a.ec2.GetConsoleOutput(&ec2.GetConsoleOutputInput{
264264
InstanceId: aws.String(instanceID),
265+
Latest: util.BoolToPtr(true),
265266
})
266267
if err != nil {
267268
return "", fmt.Errorf("couldn't get console output of %v: %v", instanceID, err)

0 commit comments

Comments
 (0)