From 4edd9bb8668fdb46430cdd81370fea37de5acaf8 Mon Sep 17 00:00:00 2001 From: Chris Linton-Ford Date: Mon, 15 Jan 2024 11:27:43 +0000 Subject: [PATCH] On Nitro-based instances, access serial logs directly --- src/AWS/PubKeys.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AWS/PubKeys.hs b/src/AWS/PubKeys.hs index 325b0e3..3119dba 100644 --- a/src/AWS/PubKeys.hs +++ b/src/AWS/PubKeys.hs @@ -61,7 +61,7 @@ getPubKey inst = tryJust handler $ do keytype' = "ecdsa-sha2-nistp256" command = printf - "aws ec2 get-console-output --region %s --output text --instance-id %s" + "aws ec2 get-console-output --region %s --latest --output text --instance-id %s" (region inst) (instanceId inst)