iamdevnull / terraform-aws-eks-cloudwatch-logs

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.

Home Page:https://modules.dnx.one

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-aws-eks-cloudwatch-logs

Lint Status LICENSE

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.

Usage

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
}

Requirements

Name Version
terraform >= 0.13
aws >= 3.13, < 4.0
helm >= 1.0, < 3.0
kubernetes >= 1.10.0, < 3.0.0

Providers

Name Version
aws >= 3.13, < 4.0
helm >= 1.0, < 3.0
kubernetes >= 1.10.0, < 3.0.0

Inputs

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

Outputs

No output.

Authors

Module managed by DNX Solutions.

License

Apache 2 Licensed. See LICENSE for full details.

About

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.

https://modules.dnx.one

License:Apache License 2.0


Languages

Language:HCL 100.0%