Fixing Fluent Bit on EKS: Solving the "NoCredentialProviders" Error

Fixing Fluent Bit on EKS: IRSA, Helm, and the "NoCredentialProviders" Error If you're deploying Fluent Bit to Amazon EKS with Terraform and Helm, you might hit this frustrating error: [cloudwatch 0] NoCredentialProviders: no valid providers in chain ... EC2MetadataError: failed to make EC2Metadata request Even if everything looks correct — the service account is annotated with an IAM role, and the DaemonSet is running — Fluent Bit still can’t write logs to CloudWatch. Let's walk through how to troubleshoot and fix this.

Mar 29, 2025 - 12:02
 0
Fixing Fluent Bit on EKS: Solving the "NoCredentialProviders" Error

Fixing Fluent Bit on EKS: IRSA, Helm, and the "NoCredentialProviders" Error

If you're deploying Fluent Bit to Amazon EKS with Terraform and Helm, you might hit this frustrating error:

[cloudwatch 0] NoCredentialProviders: no valid providers in chain
...
EC2MetadataError: failed to make EC2Metadata request

Even if everything looks correct — the service account is annotated with an IAM role, and the DaemonSet is running — Fluent Bit still can’t write logs to CloudWatch.

Let's walk through how to troubleshoot and fix this.