Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invoke remote lambda function in terraform

How can I invoke an existing lambda function from one of my AWS accounts in my terraform code?

i have the lambda name, arn and ID alongside with account number that is hosting the lambda

like image 979
Dalal Alghomlas Avatar asked May 12 '26 01:05

Dalal Alghomlas


1 Answers

You can use aws_lambda_invocation:

Use this data source to invoke custom lambda functions as data source. The lambda function is invoked with RequestResponse invocation type.

like image 178
Marcin Avatar answered May 14 '26 21:05

Marcin



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!