EC2 user data script log location

If your instance uses a user data script to configure the application on launch, you can verify that the script has run successfully.

Check the EC2 instance logs at:

/var/log/cloud-init.log
or
/var/log/cloud-init-output.log
for any errors that may have occurred during the execution of the user data script