Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CheckFunctionConcurrency only shows first 50 result #207

Open
saddafk opened this issue Jul 27, 2022 · 0 comments
Open

CheckFunctionConcurrency only shows first 50 result #207

saddafk opened this issue Jul 27, 2022 · 0 comments

Comments

@saddafk
Copy link

saddafk commented Jul 27, 2022

The CheckFunctionConcurrency.py only shows first 50 result, you have to use paginate to get all the function names

replace line #62 with below

paginator = client.get_paginator('list_functions')
response_iterator = paginator.paginate()

Replace the next for loop with below

for function in response_iterator:
if "NextMarker" in function:
#print(function['NextMarker'])
response_iterator = paginator.paginate(
PaginationConfig={
'StartingToken': function['NextMarker']
}
)
function_list=function['Functions']
i=0
for i in range(len(function_list)):
functionList.append(function_list[i]['FunctionName'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant