|
| 1 | +# cloudwatch-log-group |
| 2 | + |
| 3 | +This module creates following resources. |
| 4 | + |
| 5 | +- `aws_cloudwatch_log_group` |
| 6 | +- `aws_cloudwatch_log_stream` (optional) |
| 7 | + |
| 8 | +<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
| 9 | +## Requirements |
| 10 | + |
| 11 | +| Name | Version | |
| 12 | +|------|---------| |
| 13 | +| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.2 | |
| 14 | +| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.22 | |
| 15 | + |
| 16 | +## Providers |
| 17 | + |
| 18 | +| Name | Version | |
| 19 | +|------|---------| |
| 20 | +| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.22.0 | |
| 21 | + |
| 22 | +## Modules |
| 23 | + |
| 24 | +No modules. |
| 25 | + |
| 26 | +## Resources |
| 27 | + |
| 28 | +| Name | Type | |
| 29 | +|------|------| |
| 30 | +| [aws_cloudwatch_log_group.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource | |
| 31 | +| [aws_cloudwatch_log_stream.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_stream) | resource | |
| 32 | +| [aws_resourcegroups_group.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/resourcegroups_group) | resource | |
| 33 | + |
| 34 | +## Inputs |
| 35 | + |
| 36 | +| Name | Description | Type | Default | Required | |
| 37 | +|------|-------------|------|---------|:--------:| |
| 38 | +| <a name="input_name"></a> [name](#input\_name) | (Required) The name of the CloudWatch log group. | `string` | n/a | yes | |
| 39 | +| <a name="input_encryption_kms_key"></a> [encryption\_kms\_key](#input\_encryption\_kms\_key) | (Optional) The ARN of the KMS Key to use when encrypting log data. Please note, after the AWS KMS CMK is disassociated from the log group, AWS CloudWatch Logs stops encrypting newly ingested data for the log group. All previously ingested data remains encrypted, and AWS CloudWatch Logs requires permissions for the CMK whenever the encrypted data is requested. | `string` | `null` | no | |
| 40 | +| <a name="input_module_tags_enabled"></a> [module\_tags\_enabled](#input\_module\_tags\_enabled) | (Optional) Whether to create AWS Resource Tags for the module informations. | `bool` | `true` | no | |
| 41 | +| <a name="input_resource_group_description"></a> [resource\_group\_description](#input\_resource\_group\_description) | (Optional) The description of Resource Group. | `string` | `"Managed by Terraform."` | no | |
| 42 | +| <a name="input_resource_group_enabled"></a> [resource\_group\_enabled](#input\_resource\_group\_enabled) | (Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. | `bool` | `true` | no | |
| 43 | +| <a name="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name) | (Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with `AWS` or `aws`. | `string` | `""` | no | |
| 44 | +| <a name="input_retention_in_days"></a> [retention\_in\_days](#input\_retention\_in\_days) | (Optional) Specify the number of days to retain log events in the log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653, and 0. If you select 0, the events in the log group are always retained and never expire. Default to `90` days. | `number` | `90` | no | |
| 45 | +| <a name="input_streams"></a> [streams](#input\_streams) | (Optional) A list of log streams for the CloudWatch log group. | `set(string)` | `[]` | no | |
| 46 | +| <a name="input_tags"></a> [tags](#input\_tags) | (Optional) A map of tags to add to all resources. | `map(string)` | `{}` | no | |
| 47 | + |
| 48 | +## Outputs |
| 49 | + |
| 50 | +| Name | Description | |
| 51 | +|------|-------------| |
| 52 | +| <a name="output_arn"></a> [arn](#output\_arn) | The ARN of the CloudWatch log group. | |
| 53 | +| <a name="output_encryption_kms_key"></a> [encryption\_kms\_key](#output\_encryption\_kms\_key) | The ARN of the KMS Key for log data encryption. | |
| 54 | +| <a name="output_id"></a> [id](#output\_id) | The ID of the CloudWatch log group. | |
| 55 | +| <a name="output_name"></a> [name](#output\_name) | The name of CloudWatch log group. | |
| 56 | +| <a name="output_retention_in_days"></a> [retention\_in\_days](#output\_retention\_in\_days) | The number of days to retain log events in the log group. | |
| 57 | +| <a name="output_streams"></a> [streams](#output\_streams) | The list of log streams for the log group. | |
| 58 | +<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
0 commit comments