Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant