8000 bug: EventBridge event target pointing on API destination is not expanding header_parameters · Issue #12062 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content
bug: EventBridge event target pointing on API destination is not expanding header_parameters #12062
Closed
@gemyago

Description

@gemyago

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I have EventBus event target configured similarly to the below terraform:

resource "aws_cloudwatch_event_api_destination" "http_destination" {
  # .......
}

resource "aws_cloudwatch_event_target" "test_target" {
  # Irrelevant configuration omitted
  arn            = aws_cloudwatch_event_api_destination.http_destination.arn
  http_target {
    header_parameters = {
      # Below are not substituted correctly in localstack setup but working correctly on AWS
      "X-Message-ID"     = "$.id"
    }
  }
}

When message is delivered to the configured API destination, it has http header containing: x-message-id: $.id

Expected Behavior

When message is delivered to the configured API destination, it has http header containing similar to: x-message-id: dde026d1-38e1-4bef-c402-3f2bc6b856bd

This behavior has been verified against AWS.

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 run localstack/localstack

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

Deploy terraform mentioned above.

Environment

- OS: OSX 15.1.1 (24B91)
- LocalStack:
  LocalStack version: 4.0.4.dev26
  LocalStack Docker image sha: sha256:f4819f09a5a15b10c91a88026d14bc0d11287bf182676090d746541468fccb1e
  LocalStack build date: 2024-12-10
  LocalStack build git hash: 37a56a501

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0