Skip to content

Conversation

farazbyk
Copy link
Contributor

Description

Add ECS task definition as target to EventBridge Pipes which is currently no supported.

Motivation and Context

ECS should be integrated with Eventbridge Pipes are its commonly used

Breaking Changes

No

How Has This Been Tested? Yes

module.eventbridge_pipes.aws_pipes_pipe.this["example_pipe"] will be created

  • resource "aws_pipes_pipe" "this" {
    • arn = (known after apply)

    • description = "Managed by Terraform"

    • desired_state = "RUNNING"

    • id = (known after apply)

    • name = "example-pipe-pipe"

    • name_prefix = (known after apply)

    • role_arn = "arn:aws:iam::xxxxx:role/service-role/Amazon_EventBridge"

    • source = "arn:aws:sqs:ap-southeast-1:xxxxd:/abc-staging"

    • tags_all = (known after apply)

    • target = "arn:aws:ecs:ap-southeast-1:xxxxx:cluster/abc-staging"

    • source_parameters {

      • activemq_broker_parameters (known after apply)
      • dynamodb_stream_parameters (known after apply)
      • kinesis_stream_parameters (known after apply)
      • managed_streaming_kafka_parameters (known after apply)
      • rabbitmq_broker_parameters (known after apply)
      • self_managed_kafka_parameters (known after apply)
      • sqs_queue_parameters {
        • batch_size = 10
        • maximum_batching_window_in_seconds = 30
          }
          }
    • target_parameters {

      • ecs_task_parameters {
        • enable_ecs_managed_tags = false

        • enable_execute_command = false

        • launch_type = "FARGATE"

        • platform_version = "LATEST"

        • task_count = 1

        • task_definition_arn = "arn:aws:ecs:ap-southeast-1:xxxxx:task-definition/abc-staging"

        • network_configuration {

          • aws_vpc_configuration {
            • assign_public_ip = "DISABLED"
            • subnets = [
              • "subnet-xxxxx",
              • "subnet-xxxx,
              • "subnet-xxxx",
                ]
                }
                }
        • overrides {

          • container_override {
            • command = []

            • cpu = 0

            • memory = 0

            • memory_reservation = 0

            • name = "abc-staging"

            • environment {

              • name = "SQS_MESSAGE"
              • value = "$.body"
                }
            • environment {

              • name = "SQS_MSG_ATTRIBUTES"
              • value = "$.messageAttributes"
                }
                }
                }
                }
                }
                }

@farazbyk farazbyk changed the title Enable ECS-Task as target in the EventBridge Pipes Feat: Enable ECS-Task as target in the EventBridge Pipes Apr 16, 2025
@farazbyk farazbyk changed the title Feat: Enable ECS-Task as target in the EventBridge Pipes feat: Enable ECS-Task as target in the EventBridge Pipes Apr 16, 2025
Faraz Younus and others added 2 commits April 17, 2025 14:45
@antonbabenko antonbabenko merged commit 85b63f9 into terraform-aws-modules:master Apr 18, 2025
15 checks passed
antonbabenko pushed a commit that referenced this pull request Apr 18, 2025
## [3.16.0](v3.15.0...v3.16.0) (2025-04-18)

### Features

* Enable ECS-Task as target in the EventBridge Pipes ([#160](#160)) ([85b63f9](85b63f9))
@antonbabenko
Copy link
Member

This PR is included in version 3.16.0 🎉

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants