terraform-aws-modules/terraform-aws-cloudwatch

Cloudwatch log group - is it possible for the aws_cloudwatch_log_group resource to update existing log groups which are created by lambda without destroying them ?

ameynawar opened this issue · 3 comments

I have some log groups which are created by aws for the logging of lambda functions. So i wanted to the change the retention policy for the those log groups . I tried to redeploy those lambdas with attached log groups who have the same name as previous and added the retention policy to it. But it failed so I used terraform import to import existing log groups and add retention policy. It worked but it destroyed current log groups and created it again with the updated log retention policy. So I want to know is there is any workaround in this situation?

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

This issue was automatically closed because of stale in 10 days

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.