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

后端 未结 5 1970
再見小時候
再見小時候 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:41

    Just for reference, you can check if the user data executed by taking a look at the system log from the EC2 console. Right click on your instance -

    In the new interface: Monitor and Troubleshoot > Get System Log

    In the old interface: Instance Settings > Get System log

    This should open a modal window with the system logs

提交回复
热议问题