Back
While creating new AWS EC2 instance using the EC2 command line API, I am passing some user data to the new instance.
Now how I came to know whether that user data executed or not?
How should I check it?
Follow these steps to verify:
1. SSH on the launch EC2 instance
2. You can check the log of your user data script in these paths:
/var/log/cloud-init.log and
/var/log/cloud-init-output.log
Now, you can see all of your log’s of user data script. A /etc/cloud directory will also be created.
Learn how we helped 50,000+ professionals like you !
31k questions
32.8k answers
501 comments
693 users