feat: Prefix the CloudWatch Log group name with /aws/vendedlogs/states/
#52
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request