AWS CloudFormation /var/log/cloud-init-output.log equivalent for Windows AMIs

霸气de小男生 提交于 2019-12-05 12:36:37

According to the documentation you have to wrap UserData with <script></script>. The log is written to either C:\Logs or C:\Log depending on whether EC2Launch or EC2Config is used.

According to the same document, this should work on all Windows instances by default unless you expressly use EC2Config.

By default, all Amazon AMIs have user data execution enabled for the initial boot. For instances using the EC2Config service, you can specify that user data must be executed on the next boot or restart of the service. For more information, see Ec2 Service Properties.

Even more information is available on another question.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!