Skip to content

Conversation

@rickardl
Copy link
Contributor

@rickardl rickardl commented Jun 8, 2020

The below change hopefully resolves all issues we encountered in #272

  • support larger number of entries of SSM parameters by using the paginator method of operation (using the paginator helper)
  • being able iterate over empty descriptions, by handling the Description issue correctly (and defaulting to empty string)
  • By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@rickardl rickardl changed the title Support paginator for tags and empty descriptions in moved to root lambda Support paginator for parameters and empty descriptions in moved to root lambda Jun 8, 2020
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):
Copy link
Collaborator

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

Copy link
Contributor Author

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!

Copy link
Collaborator

@sbkok sbkok left a 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.

@sbkok sbkok requested a review from thomasmcgannon May 21, 2021 13:35
Copy link

@deltagarrett deltagarrett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sbkok sbkok merged commit da7ac5f into awslabs:master May 25, 2021
@sbkok sbkok added this to the v3.2.0 milestone Nov 9, 2021
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

Successfully merging this pull request may close these issues.

3 participants