You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add options to manage log group RDSOSMetrics
Usually RDSOSMetrics is created by a DB instance itself when enhanced
monitoring is enabled. The new options allow make this log group managed
so that:
- non-default retention could be configured (AWS default is 30 days)
- tags could be assigned (tags are not propagated from the DB instance)
- the log group is removed if not used
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -246,11 +246,13 @@ No resources.
246
246
| <aname="input_character_set_name"></a> [character\_set\_name](#input\_character\_set\_name)| The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS and Collations and Character Sets for Microsoft SQL Server for more information. This can only be set on creation |`string`|`null`| no |
247
247
| <aname="input_cloudwatch_log_group_class"></a> [cloudwatch\_log\_group\_class](#input\_cloudwatch\_log\_group\_class)| Specified the log class of the log group. Possible values are: STANDARD or INFREQUENT\_ACCESS |`string`|`null`| no |
248
248
| <aname="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 |
249
+
| <aname="input_cloudwatch_log_group_rdsosmetrics_retention_in_days"></a> [cloudwatch\_log\_group\_rdsosmetrics\_retention\_in\_days](#input\_cloudwatch\_log\_group\_rdsosmetrics\_retention\_in\_days)| The number of days to retain CloudWatch logs for RDSOSMetrics log group |`number`|`30`| no |
249
250
| <aname="input_cloudwatch_log_group_retention_in_days"></a> [cloudwatch\_log\_group\_retention\_in\_days](#input\_cloudwatch\_log\_group\_retention\_in\_days)| The number of days to retain CloudWatch logs for the DB instance |`number`|`7`| no |
250
251
| <aname="input_cloudwatch_log_group_skip_destroy"></a> [cloudwatch\_log\_group\_skip\_destroy](#input\_cloudwatch\_log\_group\_skip\_destroy)| Set to true if you do not wish the log group (and any logs it may contain) to be deleted at destroy time, and instead just remove the log group from the Terraform state |`bool`|`null`| no |
251
252
| <aname="input_cloudwatch_log_group_tags"></a> [cloudwatch\_log\_group\_tags](#input\_cloudwatch\_log\_group\_tags)| Additional tags for the CloudWatch log group(s) |`map(string)`|`{}`| no |
252
253
| <aname="input_copy_tags_to_snapshot"></a> [copy\_tags\_to\_snapshot](#input\_copy\_tags\_to\_snapshot)| On delete, copy all Instance tags to the final snapshot |`bool`|`false`| no |
253
254
| <aname="input_create_cloudwatch_log_group"></a> [create\_cloudwatch\_log\_group](#input\_create\_cloudwatch\_log\_group)| Determines whether a CloudWatch log group is created for each `enabled_cloudwatch_logs_exports`|`bool`|`false`| no |
255
+
| <aname="input_create_cloudwatch_log_group_rdsosmetrics"></a> [create\_cloudwatch\_log\_group\_rdsosmetrics](#input\_create\_cloudwatch\_log\_group\_rdsosmetrics)| Determines whether a RDSOSMetrics CloudWatch log group is created by and managed by Terraform (otherwise it's created by RDS). This is useful only if monitoring\_interval > 0 |`bool`|`false`| no |
254
256
| <aname="input_create_db_instance"></a> [create\_db\_instance](#input\_create\_db\_instance)| Whether to create a database instance |`bool`|`true`| no |
255
257
| <aname="input_create_db_option_group"></a> [create\_db\_option\_group](#input\_create\_db\_option\_group)| Create a database option group |`bool`|`true`| no |
256
258
| <aname="input_create_db_parameter_group"></a> [create\_db\_parameter\_group](#input\_create\_db\_parameter\_group)| Whether to create a database parameter group |`bool`|`true`| no |
Copy file name to clipboardExpand all lines: modules/db_instance/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,12 +49,14 @@ No modules.
49
49
| <aname="input_character_set_name"></a> [character\_set\_name](#input\_character\_set\_name)| The character set name to use for DB encoding in Oracle instances. This can't be changed. See Oracle Character Sets Supported in Amazon RDS and Collations and Character Sets for Microsoft SQL Server for more information. This can only be set on creation. |`string`|`null`| no |
50
50
| <aname="input_cloudwatch_log_group_class"></a> [cloudwatch\_log\_group\_class](#input\_cloudwatch\_log\_group\_class)| Specified the log class of the log group. Possible values are: STANDARD or INFREQUENT\_ACCESS |`string`|`null`| no |
51
51
| <aname="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 |
52
+
| <aname="input_cloudwatch_log_group_rdsosmetrics_retention_in_days"></a> [cloudwatch\_log\_group\_rdsosmetrics\_retention\_in\_days](#input\_cloudwatch\_log\_group\_rdsosmetrics\_retention\_in\_days)| The number of days to retain CloudWatch logs for RDSOSMetrics log group |`number`|`30`| no |
52
53
| <aname="input_cloudwatch_log_group_retention_in_days"></a> [cloudwatch\_log\_group\_retention\_in\_days](#input\_cloudwatch\_log\_group\_retention\_in\_days)| The number of days to retain CloudWatch logs for the DB instance |`number`|`7`| no |
53
54
| <aname="input_cloudwatch_log_group_skip_destroy"></a> [cloudwatch\_log\_group\_skip\_destroy](#input\_cloudwatch\_log\_group\_skip\_destroy)| Set to true if you do not wish the log group (and any logs it may contain) to be deleted at destroy time, and instead just remove the log group from the Terraform state |`bool`|`null`| no |
54
55
| <aname="input_cloudwatch_log_group_tags"></a> [cloudwatch\_log\_group\_tags](#input\_cloudwatch\_log\_group\_tags)| Additional tags for the CloudWatch log group(s) |`map(string)`|`{}`| no |
55
56
| <aname="input_copy_tags_to_snapshot"></a> [copy\_tags\_to\_snapshot](#input\_copy\_tags\_to\_snapshot)| On delete, copy all Instance tags to the final snapshot |`bool`|`false`| no |
56
57
| <aname="input_create"></a> [create](#input\_create)| Whether to create this resource or not? |`bool`|`true`| no |
57
58
| <aname="input_create_cloudwatch_log_group"></a> [create\_cloudwatch\_log\_group](#input\_create\_cloudwatch\_log\_group)| Determines whether a CloudWatch log group is created for each `enabled_cloudwatch_logs_exports`|`bool`|`false`| no |
59
+
| <aname="input_create_cloudwatch_log_group_rdsosmetrics"></a> [create\_cloudwatch\_log\_group\_rdsosmetrics](#input\_create\_cloudwatch\_log\_group\_rdsosmetrics)| Determines whether a RDSOSMetrics CloudWatch log group is created by and managed by Terraform (otherwise it's created by RDS). This is useful only if monitoring\_interval > 0 |`bool`|`false`| no |
58
60
| <aname="input_create_monitoring_role"></a> [create\_monitoring\_role](#input\_create\_monitoring\_role)| Create IAM role with a defined name that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. |`bool`|`false`| no |
59
61
| <aname="input_custom_iam_instance_profile"></a> [custom\_iam\_instance\_profile](#input\_custom\_iam\_instance\_profile)| RDS custom iam instance profile |`string`|`null`| no |
60
62
| <aname="input_db_instance_tags"></a> [db\_instance\_tags](#input\_db\_instance\_tags)| A map of additional tags for the DB instance |`map(string)`|`{}`| no |
description="Determines whether a RDSOSMetrics CloudWatch log group is created by and managed by Terraform (otherwise it's created by RDS). This is useful only if monitoring_interval > 0"
description="Determines whether a RDSOSMetrics CloudWatch log group is created by and managed by Terraform (otherwise it's created by RDS). This is useful only if monitoring_interval > 0"
0 commit comments