0 votes
1 view
in AWS by (19.2k 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.6k 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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...