Is there possibility to setup forwarder to work with localstack?
DraqunTheWorker opened this issue · comments
HI. I want use your forwarder to work locally with a localstack. Is it possible?
My docker-compose env looks like this.
# This won't be used by CI/CD. This is just for local development
version: '3.8'
services:
localstack:
image: localstack/localstack-pro
container_name: localstack
networks:
- internal-net
...
rabbitmq-forwarder:
image: airhelp/rabbit-amazon-forwarder:latest
networks:
- internal-net
environment:
AWS_REGION: eu-central-1
MAPPING_FILE: /config/mapping.json
AWS_ACCESS_KEY_ID: <MY_DUMMY_KEY_ID>
AWS_SECRET_ACCESS_KEY: <MY_DUMMY_ACCESS_KEY>
AWS_ENDPOINT_URL: http://localstack:4566
depends_on:
- rabbitmq
- localstack
volumes:
- "./rabbitmq-forwarder/mapping.json:/config/mapping.json"
But when I send an event I've got the following error
{
"error": "UnrecognizedClientException: The security token included in the request is invalid.\n\tstatus code: 403, request id: c9d1f1c4-7034-459e-9654-38b7d1639fed",
"forwarderName": "test-lambda",
"level": "error",
"msg": "Could not forward message","time":"2023-12-07T07:47:20Z"
}
Thanks for all. Any help will be appreciated
Best regards.
Draqun