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
changing describe_parameters call to use paginator #45632
Conversation
Hi @eisjcormier, Thank you for the pullrequest, just so you are aware we have a dedicated Working Group for aws. |
It's very strange that the parameters are an empty list for the first page! |
Hi Sloane, If the service reaches an internal limit while processing the results, it stops the operation and returns the matching values up to that point and a NextToken So it appears that limit is 50 parameters ( similar to how the UI displays parameters). |
Ah, I see. Thanks @eisjcormier, curiosity satiated. :-) |
Thanks Sloane! |
Thanks for fixing it! I'm going to open a backport PR so this can be included in 2.7.x as well. |
SUMMARY
updated create_update_parameter() to use a paginator for the describe_parameter method when updating an existing parameter. I ran into an issue where the parameter I needed to update was not in the first result set of items returned by: client.get_parameter(Name=args['Name'], WithDecryption=True)
See ADDITIONAL INFORMATION for details
ISSUE TYPE
COMPONENT NAME
aws_ssm_parameter_store
ANSIBLE VERSION
ADDITIONAL INFORMATION
I ran into an issue where the parameter I needed to update was not in the first result set of items returned by: client.get_parameter(Name=args['Name'], WithDecryption=True)
I got this error when running my playbook:
The call to client.get_parameter(Name=args['Name'], WithDecryption=True) was actually returning this: