Closed malolnaor closed 6 months ago
After reviewing the code I found a way to do this:
sqs = {
event_source_arn = aws_sqs_queue.example.arn
function_response_types = ["ReportBatchItemFailures"]
scaling_config = {
maximum_concurrency = 20
}
}
sqs2 = {
event_source_arn = aws_sqs_queue.example2.arn
function_response_types = ["ReportBatchItemFailures"]
scaling_config = {
maximum_concurrency = 20
}
}
I'm closing this ticket
I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is your request related to a problem? Please describe.
We want to invoke lambda function using event source mapping with multiple sqs queues. The following example in the docs seems to support only 1 sqs queue.
Describe the solution you'd like.
There are 2 options I think of - The first one is to make event_source_arn sqs a list:
The second one is to create sqs twice(in current version only the second sqs definition is applied)
Any other syntax is accepted.