mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-15 00:04:07 +01:00
feat: Add tags for CloudWatch log group only (#2841)
* feature: added cloudwatch log group tags input * fix: terraform docs run
This commit is contained in:
@@ -291,6 +291,7 @@ We are grateful to the community for contributing bugfixes and improvements! Ple
|
||||
| <a name="input_aws_auth_users"></a> [aws\_auth\_users](#input\_aws\_auth\_users) | List of user maps to add to the aws-auth configmap | `list(any)` | `[]` | no |
|
||||
| <a name="input_cloudwatch_log_group_kms_key_id"></a> [cloudwatch\_log\_group\_kms\_key\_id](#input\_cloudwatch\_log\_group\_kms\_key\_id) | If a KMS Key ARN is set, this key will be used to encrypt the corresponding log group. Please be sure that the KMS Key has an appropriate key policy (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/encrypt-log-data-kms.html) | `string` | `null` | no |
|
||||
| <a name="input_cloudwatch_log_group_retention_in_days"></a> [cloudwatch\_log\_group\_retention\_in\_days](#input\_cloudwatch\_log\_group\_retention\_in\_days) | Number of days to retain log events. Default retention - 90 days | `number` | `90` | no |
|
||||
| <a name="input_cloudwatch_log_group_tags"></a> [cloudwatch\_log\_group\_tags](#input\_cloudwatch\_log\_group\_tags) | A map of additional tags to add to the cloudwatch log group created | `map(string)` | `{}` | no |
|
||||
| <a name="input_cluster_additional_security_group_ids"></a> [cluster\_additional\_security\_group\_ids](#input\_cluster\_additional\_security\_group\_ids) | List of additional, externally created security group IDs to attach to the cluster control plane | `list(string)` | `[]` | no |
|
||||
| <a name="input_cluster_addons"></a> [cluster\_addons](#input\_cluster\_addons) | Map of cluster addon configurations to enable for the cluster. Addon name can be the map keys or set with `name` | `any` | `{}` | no |
|
||||
| <a name="input_cluster_addons_timeouts"></a> [cluster\_addons\_timeouts](#input\_cluster\_addons\_timeouts) | Create, update, and delete timeout configurations for the cluster addons | `map(string)` | `{}` | no |
|
||||
|
||||
1
main.tf
1
main.tf
@@ -112,6 +112,7 @@ resource "aws_cloudwatch_log_group" "this" {
|
||||
|
||||
tags = merge(
|
||||
var.tags,
|
||||
var.cloudwatch_log_group_tags,
|
||||
{ Name = "/aws/eks/${var.cluster_name}/cluster" }
|
||||
)
|
||||
}
|
||||
|
||||
@@ -228,6 +228,12 @@ variable "cloudwatch_log_group_kms_key_id" {
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "cloudwatch_log_group_tags" {
|
||||
description = "A map of additional tags to add to the cloudwatch log group created"
|
||||
type = map(string)
|
||||
default = {}
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# Cluster Security Group
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user