So I've got an EC2 instance with a user-data script, that is running from a snapshot turned to a custom AMI. It uses cloud-boothook, because custom AMI's don't trigger user-data, as they're not being launched for the first time.
I really need to have a clear output of user-data execution to debug any NPM failures in the future.
However neither cloud-init.log or cloud-init-output.log contain anything from script execution.
There's also no boot.log present, as some other solutions refer to it.
#cloud-boothook
#!/bin/bash
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
...
npm i
npm run build
...
Below you may see /var/log/ contents