Terraform module for deploying AWS Fluent Bit as a daemonSet to send logs to CloudWatch Logs aws-for-fluent-bit inside a pre-existing EKS cluster.
module "cloudwatch_logs" {
source = "git::https://github.com/DNXLabs/terraform-aws-eks-cloudwatch-logs.git"
enabled = true
cluster_name = module.eks_cluster.cluster_id
cluster_identity_oidc_issuer = module.eks_cluster.cluster_oidc_issuer_url
cluster_identity_oidc_issuer_arn = module.eks_cluster.oidc_provider_arn
worker_iam_role_name = module.eks_cluster.worker_iam_role_name
region = data.aws_region.current.name
}
Name | Version |
---|---|
terraform | >= 0.13 |
aws | >= 3.13, < 4.0 |
helm | >= 1.0, < 3.0 |
kubernetes | >= 1.10.0, < 3.0.0 |
Name | Version |
---|---|
aws | >= 3.13, < 4.0 |
helm | >= 1.0, < 3.0 |
kubernetes | >= 1.10.0, < 3.0.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
cluster_identity_oidc_issuer | The OIDC Identity issuer for the cluster. | string |
n/a | yes |
cluster_identity_oidc_issuer_arn | The OIDC Identity issuer ARN for the cluster that can be used to associate IAM roles with a service account. | string |
n/a | yes |
cluster_name | The name of the cluster. | string |
n/a | yes |
create_namespace | Whether to create Kubernetes namespace with name defined by namespace . |
bool |
true |
no |
elasticsearch_enabled | Whether this plugin should be enabled or not. | string |
false |
no |
enabled | Variable indicating whether deployment is enabled. | bool |
true |
no |
firehose_enabled | Whether this plugin should be enabled or not. | string |
false |
no |
helm_chart_name | Install Fluent Bit to send logs from containers to CloudWatch Logs | string |
"aws-for-fluent-bit" |
no |
helm_chart_release_name | Fluent Bit Helm release name. | string |
"aws-for-fluent-bit" |
no |
helm_chart_repo | Fluent Bit Helm repository name. | string |
"https://aws.github.io/eks-charts" |
no |
helm_chart_version | Fluent Bit Helm chart version. | string |
"0.1.7" |
no |
kinesis_enabled | Whether this plugin should be enabled or not. | string |
false |
no |
mod_dependency | Dependence variable binds all AWS resources allocated by this module, dependent modules reference this variable. | any |
null |
no |
namespace | Kubernetes namespace to deploy Fluent Bit Helm chart. | string |
"aws-cloudwatch-logs" |
no |
region | The region for Fluent Bit Cloudwatch Logs | string |
n/a | yes |
service_account_name | Fluent Bit service account name. | string |
"aws-for-fluent-bit" |
no |
settings | Additional settings which will be passed to the Helm chart values. | map |
{} |
no |
worker_iam_role_name | IAM role name for EKS worker groups. | string |
n/a | yes |
No output.
Module managed by DNX Solutions.
Apache 2 Licensed. See LICENSE for full details.