localstack icon indicating copy to clipboard operation
localstack copied to clipboard

ECS not supported in Event Bus target

Open bking0 opened this issue 1 year ago • 2 comments

I am attempting to use an ECS Cluster/Task as a target of an Event Bus Rule and getting the following warning/error:

2024-08-02 10:37:25 2024-08-02T14:37:25.738 DEBUG --- [uncthread215] l.services.events.provider : Notifying 1 targets in response to triggered Events rule dotnet-container-poc-MyEventBridgeRule-dc833983
2024-08-02 10:37:25 2024-08-02T14:37:25.749  WARN --- [uncthread215] l.u.aws.message_forwarding : Unsupported Events rule target ARN: "arn:aws:ecs:us-east-1:000000000000:cluster/rosterapps-cluster"

I'm using the latest pro image: localstack/localstack-pro:latest. I believe I found the condition determining the target service based on the ARN and I don't see ':ecs:' as an option. is this intentional or a bug?

https://github.com/localstack/localstack/blob/96f447ffcc6c56821b4f0b1e2c603a3976949307/localstack-core/localstack/utils/aws/message_forwarding.py#L31

bking0 avatar Aug 02 '24 14:08 bking0

Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide.

localstack-bot avatar Aug 02 '24 14:08 localstack-bot

Hi @bking0,

Thank you for reaching out. As mentioned, ECS is not currently available as a target type for EventBridge rules. For an up-to-date list of supported targets, please consult our documentation at https://docs.localstack.cloud/user-guide/aws/events/#supported-target-types.

I am going to reclassify this issue as a feature request.

MarcelStranak avatar Aug 07 '24 10:08 MarcelStranak

Hello @bking0,

We are pleased to inform you that we have implemented requested support for ECS Event Bus Target.

Kindly update to the latest LocalStack container image. docker pull localstack/localstack-pro:latest

Thank you!

MarcelStranak avatar Dec 11 '24 08:12 MarcelStranak