Current situation
EC2 buffers the latest 64 kB of console output and makes that available.
Impact
console.log from EC2 test runs is truncated in most cases.
Ideal future situation
Complete console output is saved somehow.
Implementation options
Two options:
- look into new EC2 APIs for serial console connections and live stream console output to file
- start an async task to fetch serial console output periodically to prevent the buffer from filling up
Additional information
Came up here: flatcar-archive/coreos-overlay#1628.
Also related is this commit: flatcar/mantle@0dbf18b. Before Nitro the console output buffer was only updated when the instance state changes.