amazon-web-services - 如何配置 aws 凭证以使用 fluentbit 设置 cloudwatch
问题描述
我需要使用 fluentbit 从本地系统上托管的应用程序将日志发送到 cloudwatch,但我无法配置 fluent bit 的 aws 凭据以将日志发送到 cloudwatch。如果有人可以帮助我,那将有很大帮助。部分日志如下:-
[aws_credentials] Initialized Env Provider in standard chain
[aws_credentials] Failed to initialized profile provider: $HOME not set and AWS_SHARED_CREDENTIALS_FILE not set.
[aws_credentials] Not initializing EKS provider because AWS_ROLE_ARN was not set
[aws_credentials] Initialized EC2 Provider in standard chain
[aws_credentials] Not initializing ECS Provider because AWS_CONTAINER_CREDENTIALS_RELATIVE_URI is not set
[aws_credentials] Sync called on the EC2 provider
[aws_credentials] Init called on the env provider
[aws_credentials] Init called on the EC2 IMDS provider
[aws_credentials] requesting credentials from EC2 IMDS
解决方案
任何传递凭据的标准方法都应该在这里工作:
- 导出环境变量
AWS_ACCESS_KEY_ID
和AWS_SECRET_ACCESS_KEY
- 或 create ,可以为此
~/.aws/credentials
使用提示。aws configure
推荐阅读
- python - 使用 ruamel 保留合并键和显式键的相对顺序
- sql - 如何在没有连接的情况下覆盖另一个表中的列中的列?
- c# - Asp.Net Core 2.2 身份页面不适用于视图/共享文件夹中的布局
- web - 配色方案转换
- java - 尝试在 Java 中两次处理异常
- javascript - 赋值运算符是否在 javascript 中进行深层复制
- asp.net-mvc - 我的查询字符串没有达到我的操作方法
- regex - Flex 正则表达式
- ios - 使用 iPhone (QT) 重新连接外围设备时出现问题
- jquery - 谷歌地图方向服务正在路由回原点(创建循环),我该如何防止它?