An open API service indexing awesome lists of open source software.

https://github.com/kabisa/terraform-aws-eks-cloudwatch


https://github.com/kabisa/terraform-aws-eks-cloudwatch

aws cloudwatch eks terraform

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# terraform-aws-eks-cloudwatch

This module requires our [openid connect module](https://github.com/kabisa/terraform-aws-eks-openid-connect)

Example usage:

```hcl-terraform
module "eks-cloudwatch" {
source = "git@github.com: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
}
```

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 0.13 |
| [aws](#requirement\_aws) | >= 3.5.0 |
| [kubectl](#requirement\_kubectl) | >= 1.7.0 |
| [kubernetes](#requirement\_kubernetes) | >= 1.13 |

## Providers

| Name | Version |
|------|---------|
| [aws](#provider\_aws) | >= 3.5.0 |
| [helm](#provider\_helm) | n/a |
| [kubernetes](#provider\_kubernetes) | >= 1.13 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [aws_cloudwatch_log_group.cloudwatch-application](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource |
| [aws_cloudwatch_log_group.cloudwatch-dataplane](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource |
| [aws_cloudwatch_log_group.cloudwatch-host](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource |
| [aws_cloudwatch_log_group.cloudwatch-performance](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource |
| [aws_cloudwatch_log_group.fluentbit](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource |
| [aws_iam_policy.cloudwatch-agent](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | resource |
| [aws_iam_policy.fluentbit](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | resource |
| [aws_iam_role.cloudwatch-agent](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |
| [aws_iam_role.fluentbit](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |
| [aws_iam_role_policy_attachment.cloudwatch-agent](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
| [aws_iam_role_policy_attachment.fluentbit](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
| [helm_release.cloudwatch-agent](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource |
| [helm_release.fluentbit](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource |
| [kubernetes_config_map.cluster-info](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/config_map) | resource |
| [kubernetes_namespace.amazon-cloudwatch](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [account\_id](#input\_account\_id) | The AWS account ID | `string` | n/a | yes |
| [eks\_cluster\_name](#input\_eks\_cluster\_name) | Name of the EKS cluster | `string` | n/a | yes |
| [enable\_cloudwatch\_agent](#input\_enable\_cloudwatch\_agent) | Boolean to enable cloudwatch agent | `bool` | n/a | yes |
| [enable\_fluentbit](#input\_enable\_fluentbit) | Boolean to enable fluentbit | `bool` | n/a | yes |
| [fluentbit\_full\_log](#input\_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](#input\_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](#input\_log\_retention\_in\_days) | Number of days to retain log events | `number` | `90` | no |
| [oidc\_host\_path](#input\_oidc\_host\_path) | n/a | `string` | n/a | yes |
| [region](#input\_region) | The AWS region to deploy to | `string` | n/a | yes |

## Outputs

No outputs.