Skip to content

bug: Event rule target fails to execute when SF with input transformers #13336

@youngkwangk

Description

@youngkwangk

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Looks like a regression of #11970, maybe different issue.

When I set up the rule with InputPath, and try to trigger the event, I get the following error:

{"ErrorCode": "TargetDeliveryFailure", "ErrorMessage": "Failed to deliver to target Target0: 'id'"}
    "TestRule": {
      "Properties": {
        "EventBusName": "TestEventBus",
        "EventPattern": {
          "detail-type": [
            "Initiated",
          ],
          "source": [
            "payments",
          ],
        },
        "State": "ENABLED",
        "Targets": [
          {
            "Arn": {
              "Ref": "TestWorkflowMachine",
            },
            "Id": "Target0",
            "InputPath": "$.detail",
            "RoleArn": {
              "Fn::GetAtt": [
                "TestEventsRole",
                "Arn",
              ],
            },
          },
        ],
      },
      "Type": "AWS::Events::Rule",
    },

Without InputPath, the stepfunction gets triggered correctly.

Expected Behavior

Step Function should run with input

How are you starting LocalStack?

With a docker-compose file

Steps To Reproduce

How are you starting localstack (e.g., bin/localstack command, arguments, or docker-compose.yml)

docker-compose up

Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)

    await client.send(
    new PutEventsCommand({
      Entries: [
        {
          EventBusName: `TestEventBus`,
          Time: new Date(),
          DetailType: msgParams.type,
          Detail: JSON.stringify(msgParams.payload),
          Source: msgParams.source
        }
      ]
    })
  )

Environment

- OS: MacOS 26.1
- LocalStack:
  LocalStack version: 4.9.2
  LocalStack build date: 2025-10-06
  LocalStack build git hash: b3feaf83b
  LocalStack Docker image sha: 3fede41866ffe8918a6df01959f32a679a6c20e91ad59f902e0945ade61ec18b

Anything else?

Let me know if there's more information needed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions