Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lambda function in multiple subnets

If a Lambda function is deployed in multiple subnets, how does it decide which subnet to run in when it is invoked? Is it just random?

like image 539
jcgrowley Avatar asked Oct 30 '25 02:10

jcgrowley


1 Answers

I don't think AWS makes this aspect of lambda invoke behavior public, but this answer aligns with my experience - the lambda will be invoked in a random subnet from the defined subnet_ids:

What triggers ENIs to be created for AWS Lambdas accessing VPC resources

like image 56
Jon Medwig Avatar answered Oct 31 '25 16:10

Jon Medwig



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!