0

Is possible to send $LambdaInput into another Destination Lambda with Asynchronous invocation?

For imagination:

PS Lambda1: $LambdaInput = "ABC"; Write-Host $LambdaInput; $LambdaInput
|
|
----> PS Lambda2: Write-Host "This should be ABC from previous Lambda1 - $LambdaInput"

Lamba-to-lambda

If I hit the test from the Lambda1 it will see ABC from $LambdaInput but I can't see in logs from test button log from second Lambda2. Even in Logs Group Lambda2 has no record.

Am I missing something? Thank you.

0

2 Answers 2

1

Try to take a look at AWS Step Functions : https://aws.amazon.com/fr/step-functions/

Tuto : https://aws.amazon.com/fr/getting-started/tutorials/create-a-serverless-workflow-step-functions-lambda/

Sign up to request clarification or add additional context in comments.

Comments

0

I just realized even input from CloudWatch with constant JSON input is not being passed to second AWS Lambda in case first AWS Lambda fail.

As a workaround I hardcoded fixed input to second lambda function (which is used as a fallback and hardcoded value can be used there).

Anyway If there is possibility to pass input from CloudWatch/First lambda to second Lambda, let me know please in comments.

Thanks!

lambda-chain

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.