I have a lambda function that calls an external API (which takes more than 30 seconds) and returns data. Based on the step function docs, I thought that I could avoid the lambda timeout limit of 30 seconds by calling the lambda function through a scheduled cloudwatch event. That doesn't seem to be the case. How can I call a long running lambda function? I've tried:
aws lambda invoke...
TIMES OUTaws stepfunctions start-execution...
TIMES OUTAs per the AWS docs here the function timeout limit on a Lambda functions is 900 seconds / 15 minutes.
To resolve your issue, extend the function timeout limit on your Lambda function to the required duration.