where and how to read results of ebextensions execution?

后端 未结 5 1665
忘了有多久
忘了有多久 2020-12-17 08:53

I added .ebextensions/start.config file to the root folder of my WAR bundle (as suggested by AWS), deployed it to Elastic Beanstalk, but nothing happened. Where

5条回答
  •  我在风中等你
    2020-12-17 09:36

    For Windows, the log file that contains your custom ebextension output is not part of the EB logs that you get via the EB console "request logs" command. But, you can easily add that log file to the bundle via this file command in an .ebextension file:

    files:
      "C:\\Program Files\\Amazon\\ElasticBeanstalk\\config\\taillogs.d\\cfn-init-cmd.conf" :
        content: |
          c:\cfn\log\cfn-init-cmd.log
    

    All it does is create a new config file (cfn-init-cmd.conf) with the name of the log file (cfn-init-cmd.log) that you want added to the log bundle.

提交回复
热议问题