Skip to content

Instantly share code, notes, and snippets.

@rafamdr
Created May 16, 2021 10:56
Show Gist options
  • Save rafamdr/2e3bab67a7f411ab1f2b16067f093fe2 to your computer and use it in GitHub Desktop.
Save rafamdr/2e3bab67a7f411ab1f2b16067f093fe2 to your computer and use it in GitHub Desktop.
Get logs of AWS EC2 "user_data" script execution inside instance
# grep cloud-init /var/log/messages
# OR
# tail -f /var/log/messages | grep cloud-init
# Source: https://stackoverflow.com/questions/50255413/var-log-cloud-init-output-log-is-not-present-on-rhel-7-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment