can i call a lambda function from ecs fargate instance

0

My question is simple. Is it possible to call a lambda function from an ecs fargate instance in a private subnet? If it's possible how can achieve that.

Thank you.

1 Answer
0
Accepted Answer

Hello ahmet nash,

You can invoke a lambda function from within an ECS Fargate tasks that is running in a private subnet.

For this to work, you can create Interface VPC Endpoints for Lambda in your VPC.

This will establish a network connection between your VPC and AWS Lambda Service, which will allow your ECS tasks to perform Lambda Invoke API operations.

I hope this information is helpful!

profile pictureAWS
SUPPORT ENGINEER
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions