【问题标题】:How to enable CloudWatch for Elastic Beanstalk using cloudformation template如何使用 cloudformation 模板为 Elastic Beanstalk 启用 CloudWatch
【发布时间】:2019-02-02 17:38:38
【问题描述】:

我想将我的 AWS Cloud Formation 模板配置为使用 CloudWatch 进行日志流式传输。如何在 CloudFormation 中做到这一点?

【问题讨论】:

    标签: amazon-web-services amazon-elastic-beanstalk amazon-cloudformation


    【解决方案1】:

    您需要在 Cloud Formation 模板中使用 AWS::Logs::LogStream 资源。例如YAML 格式:

    Type: AWS::Logs::LogStream
    Properties: 
      LogGroupName: String
      LogStreamName: String
    

    更多信息在official docs page

    【讨论】:

      猜你喜欢
      • 2017-04-01
      • 2021-09-13
      • 2020-01-17
      • 2016-06-13
      • 2018-12-05
      • 2020-06-23
      • 2020-09-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多