How to check whether my user data passing to EC2 instance working or not?

后端 未结 5 1972
再見小時候
再見小時候 2021-01-31 14:23

While creating new AWS EC2 instance using EC2 command line API, i am passing some user data to new instance.

Now how i came to know whether that user data executed or no

5条回答
  •  说谎
    说谎 (楼主)
    2021-01-31 14:44

    You can verify using following steps

    1. SSH on launch EC2 instance
    2. Check log of your user data script in
      • /var/log/cloud-init.log and
      • /var/log/cloud-init-output.log

    You can see all log's of your user data script and it will also create /etc/cloud folder.

提交回复
热议问题