Skip to content

feat: Add support for creating CloudWatch log groups #346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

magreenbaum
Copy link
Member

@magreenbaum magreenbaum commented Dec 20, 2022

Description

Add cloudwatch log group management.

Motivation and Context

Breaking Changes

No.

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

Copy link
Member

@bryantbiggs bryantbiggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great - thank you!

@bryantbiggs bryantbiggs changed the title feat: Manage cloudwatch log groups feat: Add support for creating CloudWatch log groups Jan 1, 2023
@bryantbiggs bryantbiggs force-pushed the feat/manage_cloudwatch_log_groups branch from 63bcdb9 to b8f1e67 Compare January 1, 2023 15:57
@bryantbiggs
Copy link
Member

Oy, looks like we'll have to merge this after #335

@Rukeith
Copy link

Rukeith commented Feb 10, 2023

looking forward to this PR.

@@ -442,7 +442,7 @@ resource "aws_db_parameter_group" "this" {
################################################################################

resource "aws_cloudwatch_log_group" "this" {
for_each = toset([for log in var.enabled_cloudwatch_logs_exports : log if local.create_cluster && var.create_cloudwatch_log_group])
for_each = toset([for log in var.enabled_cloudwatch_logs_exports : log if local.create_cluster && var.create_cloudwatch_log_group && !var.cluster_use_name_prefix])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated cloudwatch log group creation based on this feedback which is also relevant to this module.

@bryantbiggs
Copy link
Member

CI is green so merging!

@bryantbiggs bryantbiggs merged commit 40cef84 into terraform-aws-modules:master Mar 6, 2023
antonbabenko pushed a commit that referenced this pull request Mar 6, 2023
## [7.7.0](v7.6.2...v7.7.0) (2023-03-06)

### Features

* Add support for creating CloudWatch log groups ([#346](#346)) ([40cef84](40cef84))
@antonbabenko
Copy link
Member

This PR is included in version 7.7.0 🎉

@github-actions
Copy link

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 13, 2023
@magreenbaum magreenbaum deleted the feat/manage_cloudwatch_log_groups branch January 24, 2024 01:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add cloudwatch log group retention period parameter
4 participants