- Newest
- Most votes
- Most comments
Hello.
I also gave a similar answer at the URL below.
https://repost.aws/ja/questions/QUNI1ztS6tSDORMDOZ60R7kA/lambda%EC%97%90-rds%EC%97%B0%EA%B2%B0-%EC%8B%9C-iot-core-mqtt-client%EC%97%90-%EB%8D%B0%EC%9D%B4%ED%84%B0-%EC%A0%84%EC%86%A1-%EC%98%A4%EB%A5%98
Is your MQTT client EC2?
Are you connecting to an MQTT client with Lambda?
If the MQTT client is hosted on EC2, please check whether the security group allows connections from Lambda.
I think you will need a NAT Gateway to connect to IoT Core from Lambda connected to your VPC.
https://repost.aws/knowledge-center/internet-access-lambda-function
If your parsing Lambda is located within a VPC to reach RDS, you can create a private endpoint for the IoT Core data plane (MQTT endpoint). Note the are additional charges for VPC endpoints (PrivateLink) when transiting data this wya.
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 10 months ago