Skip to content

The array size for Iterator node IteratorNode_1 exceeds the max limit of 50

0

I am trying to use Amazon Bedrock Flow for iterating through a code base which is in S3 bucket and has 150+ files. I created a lambda function for the retrieval of object keys and return it as an array output to the next node which is an Iterator. However when I pass the object keys array to Iterator Node, it is not allowing more than 50 files.

I get the following error message: The array size 148 for Iterator node IteratorNode_1 exceeds the max limit of 50

Has anyone else faced the same issue? Is there any workaround for it?

asked 2 years ago165 views

1 Answer
0

I haven't come across specific documentation that explicitly speaks about the 50-item limit. However, when you try to create or update a flow with an iterator containing more than 50 items, you'll receive a similar error message.

One can resolve this issue by updating the lambda code to chunk the array into multiples of 50 and process those chunks. Alternatively, if processing requirements are complex, consider using Step Functions, which has better handling for large-scale iterations.

Below is a link that talks about endpoints and quotas: https://docs.aws.amazon.com/general/latest/gr/bedrock.html

AWS
EXPERT

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.