Skip to content

fix: Changing Scope of Log Group Lookup in DataDogStepFunctions construct - #667

Open
mjdean94 wants to merge 1 commit into
DataDog:mainfrom
mjdean94:fix-scope-for-statemachine-log-groups
Open

fix: Changing Scope of Log Group Lookup in DataDogStepFunctions construct#667
mjdean94 wants to merge 1 commit into
DataDog:mainfrom
mjdean94:fix-scope-for-statemachine-log-groups

Conversation

@mjdean94

@mjdean94 mjdean94 commented Aug 11, 2026

Copy link
Copy Markdown

What does this PR do?

fixes #666

This updates the scope of the log group lookup in DatadogStepFunctions to be consistent with the scope of a newly-created log group in the same construct. Previously, newly-created log groups used the state machine as their scope while lookups used the DatadogStepFunctions construct itself.

Motivation

My team encountered a synth error when using this construct with multiple statemachines that had predefined log groups because of a name collision in LogGroup constructs.

Testing Guidelines

I verified that all existing unit tests passed.

Additional Notes

My assumption is that this was a miss in the original implementation of this construct, as I don't see any reason why the scopes would be different. While I can see the potential for this to be a breaking change, I also don't think anyone would've been able to use this construct with predefined log groups unless they only had exactly one statemachine in their stack.

Types of Changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog

@mjdean94
mjdean94 requested a review from a team as a code owner August 11, 2026 17:00
@mjdean94
mjdean94 requested a review from avangelillo August 11, 2026 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DataDogStepFunctions with Multiple add_state_machines Invocations Fails Due to LogGroup Collision

1 participant