Skip to content

Commit 85ea663

Browse files
committed
feat: add option to set cloudwatch_log_group_class
1 parent c89d85b commit 85ea663

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,14 @@ Examples codified under the [`examples`](https://github.com/terraform-aws-module
128128
| Name | Version |
129129
|------|---------|
130130
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
131-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.21 |
131+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.30 |
132132
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.6 |
133133

134134
## Providers
135135

136136
| Name | Version |
137137
|------|---------|
138-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.21 |
138+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.30 |
139139
| <a name="provider_random"></a> [random](#provider\_random) | >= 3.6 |
140140

141141
## Modules
@@ -172,6 +172,7 @@ No modules.
172172
| <a name="input_broker_node_security_groups"></a> [broker\_node\_security\_groups](#input\_broker\_node\_security\_groups) | A list of the security groups to associate with the elastic network interfaces to control who can communicate with the cluster | `list(string)` | `[]` | no |
173173
| <a name="input_broker_node_storage_info"></a> [broker\_node\_storage\_info](#input\_broker\_node\_storage\_info) | A block that contains information about storage volumes attached to MSK broker nodes | `any` | `{}` | no |
174174
| <a name="input_client_authentication"></a> [client\_authentication](#input\_client\_authentication) | Configuration block for specifying a client authentication | `any` | `{}` | no |
175+
| <a name="input_cloudwatch_log_group_class"></a> [cloudwatch\_log\_group\_class](#input\_cloudwatch\_log\_group\_class) | Specifies the log class of the log group. Possible values are: STANDARD or INFREQUENT\_ACCESS. | `bool` | `null` | no |
175176
| <a name="input_cloudwatch_log_group_kms_key_id"></a> [cloudwatch\_log\_group\_kms\_key\_id](#input\_cloudwatch\_log\_group\_kms\_key\_id) | The ARN of the KMS Key to use when encrypting log data | `string` | `null` | no |
176177
| <a name="input_cloudwatch_log_group_name"></a> [cloudwatch\_log\_group\_name](#input\_cloudwatch\_log\_group\_name) | Name of the Cloudwatch Log Group to deliver logs to | `string` | `null` | no |
177178
| <a name="input_cloudwatch_log_group_retention_in_days"></a> [cloudwatch\_log\_group\_retention\_in\_days](#input\_cloudwatch\_log\_group\_retention\_in\_days) | Specifies the number of days you want to retain log events in the log group | `number` | `0` | no |

main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ resource "aws_cloudwatch_log_group" "this" {
291291
name = coalesce(var.cloudwatch_log_group_name, "/aws/msk/${var.name}")
292292
retention_in_days = var.cloudwatch_log_group_retention_in_days
293293
kms_key_id = var.cloudwatch_log_group_kms_key_id
294+
log_group_class = var.cloudwatch_log_group_class
294295

295296
tags = var.tags
296297
}

variables.tf

+7
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ variable "cloudwatch_logs_enabled" {
9898
default = false
9999
}
100100

101+
variable "cloudwatch_log_group_class" {
102+
description = "Specifies the log class of the log group. Possible values are: STANDARD or INFREQUENT_ACCESS."
103+
type = bool
104+
default = null
105+
}
106+
107+
101108
variable "firehose_logs_enabled" {
102109
description = "Indicates whether you want to enable or disable streaming broker logs to Kinesis Data Firehose"
103110
type = bool

versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.21"
7+
version = ">= 5.30"
88
}
99
random = {
1010
source = "hashicorp/random"

0 commit comments

Comments
 (0)