Skip to content

Terraform module for deploying AWS CloudWatch Agent inside a pre-existing EKS cluster.

License

Notifications You must be signed in to change notification settings

DNXLabs/terraform-aws-eks-cloudwatch-metrics

Repository files navigation

terraform-aws-eks-cloudwatch-metrics

Lint Status LICENSE

Terraform module for deploying AWS CloudWatch Agent inside a pre-existing EKS cluster.

Usage

module "cloudwatch_metrics" {
  source = "git::https://github.com/DNXLabs/terraform-aws-eks-cloudwatch-metrics.git"

  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
}

Requirements

Name Version
terraform >= 0.13
aws >= 3.13
helm >= 1.0
kubernetes >= 1.10.0

Providers

Name Version
aws >= 3.13
helm >= 1.0
kubernetes >= 1.10.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
enabled Variable indicating whether deployment is enabled. bool true no
helm_chart_name CloudWatch Agent Helm chart name. string "aws-cloudwatch-metrics" no
helm_chart_release_name CloudWatch Agent Helm release name. string "aws-cloudwatch-metrics" no
helm_chart_repo CloudWatch Agent Helm repository name. string "https://aws.github.io/eks-charts" no
helm_chart_version CloudWatch Agent Helm chart version. string "0.0.4" 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 CloudWatch Agent Helm chart. string "aws-cloudwatch-metrics" no
service_account_name cloudwatch-metrics service account name. string "aws-cloudwatch-metrics" 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.