localstack / localstack

💻 A fully functional local AWS cloud stack. Develop and test your cloud & Serverless apps offline
https://localstack.cloud
Other
53.77k stars 3.9k forks source link

ECS not supported in Event Bus target #11302

Open bking0 opened 1 month ago

bking0 commented 1 month ago

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

localstack-bot commented 1 month ago

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.

MarcelStranak commented 1 month ago

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.