Skip to content

Commit 72b6a85

Browse files
committed
feat: add option to set cloudwatch_log_group_class
1 parent c89d85b commit 72b6a85

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)