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
Setting cloudwatch_log_group_retention_in_days makes no difference.
I have just tried to add these 3 settings to an existing RDS Aurora postgres instance:
If I include that then everything works as expected, but as I had already created the log group I had to remove it first from cloudwatch, then I could apply it with this extra line, so in the end it looks like this:
I would argue that if you set enabled_cloudwatch_logs_exports then either that should also cause create_cloudwatch_log_group to be set to true, or it gives an error and forces you to set it
Description
Setting cloudwatch_log_group_retention_in_days makes no difference.
I have just tried to add these 3 settings to an existing RDS Aurora postgres instance:
It has created the cloudwatch log group and I can see the logs in it but it has a retention of "Never Expire"
If I try to change the value of cloudwatch_log_group_retention_in_days, then plan shows no differences and no change is made when applied.
I have checked the code here:
terraform-aws-rds-aurora/main.tf
Line 425 in 685b01b
and can confirm that We're not using "cluster_use_name_prefix" so I don't think there should be a problem here
Versions
Module version [Required]: 9.11.0
Terraform version: 1.3.4
Provider version(s):
"hashicorp/aws" - 5.84.0
Reproduction Code [Required]
Steps to reproduce the behavior:
Comment out these lines:
And run the code to build the instance
uncomment them and do a terraform apply again
Expected behavior
Cloudwatch log group created with an expiration of 7 days (or whatever you set for cloudwatch_log_group_retention_in_days)
Actual behavior
The cloudwatch log group is created buthas no expiration and any change to cloudwatch_log_group_retention_in_days makes no difference
The text was updated successfully, but these errors were encountered: