Description
Is there an existing issue for this?
- I have searched the existing issues
Feature description
LocalStack should implement the EventBridge retry policy feature as described in the AWS documentation [1].
Currently, in LocalStack version 3.7.2, failed events are never retried, which differs from the behaviour of the actual AWS EventBridge service.
According to the AWS documentation, EventBridge has a retry policy for events that aren't successfully delivered to their targets. The default behaviour is to retry sending the event for 24 hours and up to 185 times with exponential backoff and jitter.
Implementing this feature in LocalStack would provide a more accurate simulation of the AWS EventBridge service.
My setup
docker-compose:
localstack:
extra_hosts:
- "host.docker.internal:host-gateway"
image: localstack/localstack:3.7.2
environment:
DEBUG: ${DEBUG-}
DOCKER_HOST: unix:///var/run/docker.sock
SERVICES: s3,secretsmanager,events
GATEWAY_LISTEN: "0.0.0.0:4567"
AWS_ENDPOINT_URL: "http://localstack:4567"
# PROVIDER_OVERRIDE_EVENTS: v2
If I use PROVIDER_OVERRIDE_EVENTS: v2
EventBridge does not work
Setting RetryPolicy
on PutTargetsCommand
does nothing.
I have tested the same code with AWS EventBridge and failed attempts are queued and retried.
[1] https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-retry-policy.html
🧑💻 Implementation
No response
Anything else?
https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-retry-policy.html