简体   繁体   中英

AWS lambda Step Functions Activities and RDS

Is it possible to get Step Functions Activities and query RDS in a single lambda?

I've followed the VPC setting and can reach RDS and S3 endpoint in a single lambda. (ref : https://gist.github.com/reggi/dc5f2620b7b4f515e68e46255ac042a7 )

But when I write a lambda with getActivityTask and RDS, it will response a timeout for connecting to https://states.us-west-2.amazonaws.com:443 . (Caused by: java.net.SocketTimeoutException: connect timed out)

I am sure I have already set the IAM role correctly. I can't figure out if it's a configuration problem or it's simply not possible.

Thanks.

Finally I found out my VPC setting is wrong,

I missed the route tables setting for private subnet (which should be point to public subnet's NAT gateway), so can't connect to AWS public endpoint.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM