-
Notifications
You must be signed in to change notification settings - Fork 235
Support paginator for parameters and empty descriptions in moved to root lambda #273
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
Support paginator for parameters and empty descriptions in moved to root lambda #273
Conversation
src/lambda_codebase/moved_to_root.py
Outdated
| parameters = [param['Name'] for param in parameter_store.client.describe_parameters()['Parameters'] if 'Used by The AWS Deployment Framework' in param['Description']] | ||
| for parameter in parameters: | ||
| parameter_store.delete_parameter(parameter) | ||
| for page in paginator(parameter_store.client.describe_parameters): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please change this to use the Boto3 paginator instead?
See the docs in boto3 here: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/paginators.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely, I'll update the PR next week!
sbkok
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating the pull request and contributing this fix.
Looks good to me.
deltagarrett
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The below change hopefully resolves all issues we encountered in #272