Skip to content
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

[Step Function] 8.1 Fix subscription filter creation failure #164

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

lym953
Copy link
Contributor

@lym953 lym953 commented Jan 15, 2025

Context of this PR series

Right now the Datadog Serverless CloudFormation Macro only supports instrumenting Lambda functions. This series of PRs makes it also support instrumenting Step Functions.

Instead of merging every PR into main branch, I'm going to merge them into a feature branch yiming.luo/step-function to avoid releasing partial support for step functions

Problem this PR solves

When I deploy an application stack that includes a step function and uses our CloudFormation Macro, deployment fails when creating the log group subscription filter. It says the log group is not found.

What does this PR do?

Add a DependsOn field to specify that the subscription filter depends on the log group.

Testing Guidelines

Automated testing

Deploy the CloudFormation Macro stack then the application stack. The application stack could deploy successfully. Both the log group and the subscription filter were created.

Additional Notes

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

@lym953 lym953 force-pushed the yiming.luo/step-function-23 branch from da50a70 to a043764 Compare January 16, 2025 16:40
@lym953 lym953 marked this pull request as ready for review January 16, 2025 16:40
@lym953 lym953 requested a review from a team as a code owner January 16, 2025 16:40
Copy link

@kimi-p kimi-p left a comment

Choose a reason for hiding this comment

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

Lgtm

@lym953 lym953 force-pushed the yiming.luo/step-function-22 branch from 14a1fb8 to 0a1df02 Compare January 17, 2025 17:29
Base automatically changed from yiming.luo/step-function-22 to yiming.luo/step-function January 17, 2025 17:30
@lym953 lym953 force-pushed the yiming.luo/step-function-23 branch from a043764 to 975a7cd Compare January 17, 2025 17:30
@lym953 lym953 merged commit e1589ae into yiming.luo/step-function Jan 17, 2025
9 checks passed
@lym953 lym953 deleted the yiming.luo/step-function-23 branch January 17, 2025 17:30
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.

2 participants