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

fix: Step function enrichment #149

Merged

Conversation

Engerim
Copy link
Contributor

@Engerim Engerim commented Jan 16, 2025

Description

  1. Fixes policy creation for step function enrichment
  2. Adds a new variable to allow to create only the event bridge pipe role

Motivation and Context

The new variable allows to create the iam role only for pipe, for the cases where nothing else is created besides pipes, as for now you would end up with an additional role which is not needed

Breaking Changes

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

@Engerim Engerim changed the title fix: step function enrichment fix: Step function enrichment Jan 16, 2025
@Engerim
Copy link
Contributor Author

Engerim commented Jan 23, 2025

@antonbabenko could you have a look, please

@@ -33,7 +33,7 @@ locals {
matching_services = ["lambda"]
},
step_functions = {
values = [v.target, try(aws_cloudwatch_event_api_destination.this[v.enrichment].arn, null)],
values = [v.target, try(v.enrichment, null)],
Copy link
Member

Choose a reason for hiding this comment

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

Why do you change this?

Copy link
Contributor Author

@Engerim Engerim Jan 23, 2025

Choose a reason for hiding this comment

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

because the matching service is states and that can never be fulfilled by an api destination.

iam.tf Outdated Show resolved Hide resolved
Co-authored-by: Anton Babenko <anton@antonbabenko.com>
@antonbabenko antonbabenko merged commit 8e1c345 into terraform-aws-modules:master Jan 28, 2025
15 checks passed
antonbabenko pushed a commit that referenced this pull request Jan 28, 2025
## [3.14.3](v3.14.2...v3.14.3) (2025-01-28)

### Bug Fixes

* Step function enrichment ([#149](#149)) ([8e1c345](8e1c345))
@antonbabenko
Copy link
Member

This PR is included in version 3.14.3 🎉

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