Invoke remote lambda function in terraform

Viewed 344

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

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.

Related