The problem is we are working with UDP based IoT devices, what we want to achieve is that there's a server which receives the incoming udp packets and we will have a lambda connected to an sqs which sends different packets what comes from the sqs. In order to be able to send packets back to the device, it has to come from the same source, meaning the same IP and PORT.
I'm looking for possible solutions, the main idea is to separate packet processing from packet sending into different services.
Diagram
I think, here is a solution:
It works only for IP address, each time Lambda will send data to IoT device though NAT instance, packet source port will be ephemeral.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With