Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

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?

1 Answer

0 votes
by (44.3k points)

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.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

Browse Categories

...