You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pipeline/inputs/kafka.md
+56-36Lines changed: 56 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,73 +136,93 @@ The example can be executed locally with `make start` in the `examples/kafka_fil
136
136
137
137
## AWS MSK IAM authentication
138
138
139
-
Fluent Bit v4.0.4 and later supports authentication to Amazon MSK (Managed Streaming for Apache Kafka) clusters using AWS IAM. This lets you securely connect to MSK brokers with AWS credentials, leveraging IAM roles and policies for access control.
139
+
Starting with version 4.0.4, Fluent Bit supports AWS IAM authentication for Amazon MSK clusters. This allows you to use your AWS credentials and IAM policies to control access to Kafka topics.
140
140
141
-
### Build requirements
141
+
### Prerequisites
142
142
143
-
If you are compiling Fluent Bit from source, ensure the following requirements are met to enable AWS MSK IAM support:
143
+
- Access to an AWS MSK cluster with IAM authentication enabled
- The packages `libsasl2` and `libsasl2-dev` must be installed on your build environment.
147
+
### Configuration parameters [#config-aws]
146
148
147
-
### Runtime requirements
149
+
| Property | Description | Default |
150
+
| -------- | ----------- | ------- |
151
+
|`rdkafka.sasl.mechanism`| Set to `aws_msk_iam` to enable MSK IAM authentication |_none_|
152
+
|`aws_region`| AWS region (optional, automatically detected from broker hostname for standard MSK endpoints) | auto-detected |
148
153
149
-
-**Network Access:** Fluent Bit must be able to reach your MSK broker endpoints (AWS VPC setup).
150
-
-**AWS Credentials:** Provide these AWS credentials using any supported AWS method. These credentials are discovered by default when `aws_msk_iam` flag is enabled.
Fluent Bit uses the standard AWS credentials chain to authenticate:
183
188
184
-
IAM policies and permissions can be complex and might vary depending on your organization's security requirements. If you are unsure about the correct permissions or best practices, consult your AWS administrator or an AWS expert who is familiar with MSK and IAM security.
Replace `REGION`, `ACCOUNT`, `CLUSTER_NAME`, `CLUSTER_UUID`, and topic/group names with your actual values.
223
+
224
+
**Note:** The `CLUSTER_UUID` segment is required in all topic and group ARNs. You can find your cluster's UUID in the MSK console or by describing the cluster with the AWS CLI.
225
+
226
+
{% hint style="info" %}
227
+
For detailed IAM policy configuration, consult your AWS administrator or refer to the [AWS MSK documentation](https://docs.aws.amazon.com/msk/latest/developerguide/iam-access-control.html).
Fluent Bit 4.0.4 and later supports authentication to Amazon MSK (Managed Streaming for Apache Kafka) clusters using AWS IAM for the Kafka output plugin. This lets you securely send data to MSK brokers with AWS credentials, leveraging IAM roles and policies for access control.
240
+
Starting with version 4.0.4, Fluent Bit supports AWS IAM authentication for Amazon MSK clusters. This allows you to use your AWS credentials and IAM policies to control access to Kafka topics.
241
241
242
242
### Prerequisites
243
243
244
-
If you are compiling Fluent Bit from source, ensure the following requirements are met to enable AWS MSK IAM support:
244
+
- Access to an AWS MSK cluster with IAM authentication enabled
IAM policies and permissions can be complex and can vary depending on your organization's security requirements. If you are unsure about the correct permissions or best practices, consult with your AWS administrator or an AWS expert who is familiar with MSK and IAM security.
339
+
Fluent Bit uses the standard AWS credentials chain to authenticate:
298
340
299
-
The AWS credentials used by Fluent Bit must have permission to connect to your MSK cluster. Here is a minimal example policy:
Replace `REGION`, `ACCOUNT`, `CLUSTER_NAME`, `CLUSTER_UUID`, and topic name with your actual values.
372
+
373
+
**Note:** The `CLUSTER_UUID` segment is required in all topic ARNs. You can find your cluster's UUID in the MSK console or by describing the cluster with the AWS CLI.
374
+
375
+
{% hint style="info" %}
376
+
For detailed IAM policy configuration, consult your AWS administrator or refer to the [AWS MSK documentation](https://docs.aws.amazon.com/msk/latest/developerguide/iam-access-control.html).
0 commit comments