amazon-web-services - 如何使用 cloudformation 模板为 Elastic Beanstalk 启用 CloudWatch
问题描述
我想将我的 AWS Cloud Formation 模板配置为使用 CloudWatch 进行日志流式传输。如何在 CloudFormation 中做到这一点?
解决方案
您需要AWS::Logs::LogStream
在 Cloud Formation 模板中使用资源。例如,在 YAML 格式中:
Type: AWS::Logs::LogStream
Properties:
LogGroupName: String
LogStreamName: String
更多信息在官方文档页面。
推荐阅读
- angular - 将元素添加到模型
- python - 如何修复 Flask-uwsgi-Nginx 设置中的 Post 请求延迟的 websocket 消息?
- java - 如何向有效负载表达式添加两个路径变量?
- python - Quart Bad Request 语法或不支持的方法
- python-3.x - 将 .py 文件导入另一个脚本以使用其中的变量,其中导入文件由 "if __name__ == '__main__' 运行
- jquery - 获取特定 ID 的值并显示在该行的特定字段上
- javascript - 单击表格行时如何从单元格中获取值
- php - Wordpress 侧边栏子列表中的缩略图
- css - 我想在显示警报时移动 div
- python - 硬编码密码/凭据