Best practices
Last updated
Was this helpful?
Last updated
Was this helpful?
Note
You can set a timeout for your state machine using the TimeoutSeconds
field in your Amazon States Language definition. For more information, see .
Note After you create this Lambda function, make sure you provide its IAM role the appropriate permission to read from an Amazon S3 bucket. For example, attach the AmazonS3ReadOnlyAccess permission to the Lambda function's role.
Note
Unhandled errors in Lambda are reported as Lambda.Unknown
in the error output. These include out-of-memory errors and function timeouts. You can match on Lambda.Unknown
, States.ALL
, or States.TaskFailed
to handle these errors. When Lambda hits the maximum number of invocations, the error is Lambda.TooManyRequestsException
. For more information about Lambda function errors, see in the AWS Lambda Developer Guide.