This module requires our openid connect module
Example usage:
module "eks-cloudwatch" {
source = "[email protected]:kabisa/terraform-aws-eks-cloudwatch.git?ref=4.0"
depends_on = [module.eks, module.eks_openid_connect]
account_id = var.account_id
eks_cluster_name = var.eks_cluster_name
enable_cloudwatch_agent = true
enable_fluentbit = false
oidc_host_path = local.oidc_host_path
region = var.region
}
| Name | Version |
|---|---|
| terraform | >= 0.13 |
| aws | >= 3.5.0 |
| kubectl | >= 1.7.0 |
| kubernetes | >= 1.13 |
| Name | Version |
|---|---|
| aws | >= 3.5.0 |
| helm | n/a |
| kubernetes | >= 1.13 |
No modules.
| Name | Type |
|---|---|
| aws_cloudwatch_log_group.cloudwatch-application | resource |
| aws_cloudwatch_log_group.cloudwatch-dataplane | resource |
| aws_cloudwatch_log_group.cloudwatch-host | resource |
| aws_cloudwatch_log_group.cloudwatch-performance | resource |
| aws_cloudwatch_log_group.fluentbit | resource |
| aws_iam_policy.cloudwatch-agent | resource |
| aws_iam_policy.fluentbit | resource |
| aws_iam_role.cloudwatch-agent | resource |
| aws_iam_role.fluentbit | resource |
| aws_iam_role_policy_attachment.cloudwatch-agent | resource |
| aws_iam_role_policy_attachment.fluentbit | resource |
| helm_release.cloudwatch-agent | resource |
| helm_release.fluentbit | resource |
| kubernetes_config_map.cluster-info | resource |
| kubernetes_namespace.amazon-cloudwatch | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| account_id | The AWS account ID | string |
n/a | yes |
| eks_cluster_name | Name of the EKS cluster | string |
n/a | yes |
| enable_cloudwatch_agent | Boolean to enable cloudwatch agent | bool |
n/a | yes |
| enable_fluentbit | Boolean to enable fluentbit | bool |
n/a | yes |
| fluentbit_full_log | Boolean to output full pod/container logs + kubernetes metadata or just the message | bool |
n/a | yes |
| log_preserve_legacy_log_group | When true, preserves the legacy log group. Mainly useful to transition to the new log group format | bool |
true |
no |
| log_retention_in_days | Number of days to retain log events | number |
90 |
no |
| oidc_host_path | n/a | string |
n/a | yes |
| region | The AWS region to deploy to | string |
n/a | yes |
No outputs.