我需要使用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
答案 0 :(得分:0)
任何通过凭据的标准方式都应在此处工作:
AWS_ACCESS_KEY_ID
和AWS_SECRET_ACCESS_KEY
~/.aws/credentials
,可能会使用aws configure
提示。答案 1 :(得分:0)
在我的测试过程中,凭据文件的变量不够相同。 我安装了 AWS cli 使用密钥配置它,现在它按预期工作。我正在使用容器,AWS cli 增加了我不需要的额外大小,所以如果有人知道没有它的方法。那太棒了。