Skip to content

feat: Prefix the CloudWatch Log group name with /aws/vendedlogs/states/ #52

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

plukevdh
Copy link
Contributor

@plukevdh plukevdh commented May 5, 2023

per https://docs.aws.amazon.com/step-functions/latest/dg/bp-cwl.html

Co-authored-by: @njorden

Description

The AWS StepFunction docs suggest prefixing the log group for step functions with "/aws/vendedlogs/states" to avoid message size limits. This is also the default for any group created via the console itself. This seems like a reasonable default for log groups created implicitly (i.e., when not named by the TF config).

Vendors like Datadog also expects logs to be prefixed as such in order to tag the logging as source:stepfunction.

Motivation and Context

AWS provides what appears to be a best practice guidance here that I think is worth following for implicit log group creation. It doesn't break anywhere that people already name their log groups.

Resolves #36

Breaking Changes

Does not break anything but will cause destructive changes to anyone using this module.

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

@plukevdh plukevdh changed the title prefix the cwl group name with "/aws/vendedlogs/states/" feat: prefix the cwl group name with /aws/vendedlogs/states/ May 5, 2023
@plukevdh plukevdh changed the title feat: prefix the cwl group name with /aws/vendedlogs/states/ feat: Prefix the CloudWatch Log group name with /aws/vendedlogs/states/ May 5, 2023
@bryantbiggs bryantbiggs merged commit 3964cb3 into terraform-aws-modules:master May 17, 2023
antonbabenko pushed a commit that referenced this pull request May 17, 2023
## [3.1.0](v3.0.0...v3.1.0) (2023-05-17)

### Features

* Prefix the CloudWatch Log group name with  `/aws/vendedlogs/states/` ([#52](#52)) ([3964cb3](3964cb3))
@antonbabenko
Copy link
Member

This PR is included in version 3.1.0 🎉

@plukevdh plukevdh deleted the luq/prefix-statefn-log-groups branch May 17, 2023 14:47
@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 Jun 17, 2023
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 aws/vendedlogs/states prefix to cloudwatch_log_group_name variable
3 participants