![](https://i0.wp.com/media.dev.to/cdn-cgi/image/width=1000,height=500,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6htxgqcehlnji28zq5i1.png?w=1320&ssl=1)
We need
- A lambda function:
- No need Function URL enabled
- VPC configs to be in the same VPC and subnet with main VPC used by ALB
- Security group with inbound from main VPC CIDR block (eg: 10.1.0.0/16) and outbound to internet (eg: 0.0.0.0/0)
- Permission set to accept both ALB arn and Target group arn
- A target group set to lambda function
- An application load balancer has a listener to lambda target group above
Discover more from Coursity
Subscribe to get the latest posts sent to your email.