-
Notifications
You must be signed in to change notification settings - Fork 343
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
amazon.aws.aws_secret lookup with bypath=true returns only upto 10 values #472
Comments
Files identified in the description: If these files are inaccurate, please update the |
* ec2_vpc_nat_gateway_info: stability * Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls * Add paginator * Document returned data Signed-off-by: Alina Buzachis <[email protected]> This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@b0f438b
* ec2_vpc_nat_gateway_info: stability * Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls * Add paginator * Document returned data Signed-off-by: Alina Buzachis <[email protected]> This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@b0f438b
* ec2_vpc_nat_gateway_info: stability * Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls * Add paginator * Document returned data Signed-off-by: Alina Buzachis <[email protected]> This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@b0f438b
As sugested by mdaniel on Stackoverflow It seems you are ignoring the advice to honor NextToken - |
* ec2_vpc_nat_gateway_info: stability * Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls * Add paginator * Document returned data Signed-off-by: Alina Buzachis <[email protected]> This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@b0f438b
* ec2_vpc_nat_gateway_info: stability * Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls * Add paginator * Document returned data Signed-off-by: Alina Buzachis <[email protected]> This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@b0f438b
* ec2_vpc_nat_gateway_info: stability * Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls * Add paginator * Document returned data Signed-off-by: Alina Buzachis <[email protected]> This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections/community.aws@b0f438b
hi! any update on this issue ? Would good if that could be fixed. |
Hi Greg, can you please try with this patch #591? |
Hi Mandar,
Thank you for letting me know. Would you be so kind and share with me some info on how can I test that ? I'm not so familiar with ansible galaxy and I'm not sure how can I obtain the release containing this patch and how can I use it.
Kindly please let me know.
Thank you and best regards,
Greg
From: Mandar Kulkarni ***@***.***>
Sent: Monday, January 17, 2022 10:56 AM
To: ansible-collections/amazon.aws ***@***.***>
Cc: Grzesiuk, Grzegorz /PL ***@***.***>; Author ***@***.***>
Subject: Re: [ansible-collections/amazon.aws] amazon.aws.aws_secret lookup with bypath=true returns only upto 10 values (#472)
hi! any update on this issue ? Would good if that could be fixed. Thanks! Greg
Hi Greg, can you please try with this patch #591<#591?>?
-
Reply to this email directly, view it on GitHub<#472 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AU3XZPEITG2IWOJZCLVVSRLUWPRSFANCNFSM5CZECBKQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
The information contained in the e-mail or attached document is CONFIDENTIAL and is intended only for the use of the individual to whom it is addressed. If you are not the intended recipient or employee responsible to deliver to the intended recipient, you are hereby notified that any dissemination, distribution or copying of the communication is strictly prohibited. If you have received the e-mail in error, please immediately notify us and return the original message to us at the address above or destroy it
…________________________________
Zawarte w niniejszej wiadomo?ci lub za??czonym dokumencie informacje s? POUFNE i przeznaczone tylko dla oznaczonego adresata. Rozpowszechnianie, ujawnianie i kopiowanie tych informacji jest zabronione. Je?eli niniejsza wiadomo?? trafi?a do Pa?stwa przez pomy?k?, bardzo prosimy o powiadomienie nas o tym fakcie i odes?anie dokumentu lub natychmiastowe jego zniszczenie
________________________________
Sanofi-Aventis Sp. z o.o. z siedzib? w Warszawie, przy ul. Bonifraterskiej 17 , 00-203 Warszawa, wpisana do rejestru przedsi?biorc?w Krajowego Rejestru S?dowego prowadzonego przez S?d Rejonowy dla miasta sto?ecznego Warszawy , XII Wydzia? Gospodarczy Krajowego Rejestru S?dowego, pod numerem KRS 0000036286, NIP 813-01-40-525, kapita? zak?adowy w wysoko?ci 50 738 386,94z?.
|
aws_secret: Handle pagination for bypath=true Depends-On: ansible/ansible-zuul-jobs#1359 Depends-On: ansible/ansible-zuul-jobs#1362 Depends-On: ansible/ansible-zuul-jobs#1364 SUMMARY Currently aws_secret returns only 10 secrets, added manual pagination for getting all the secrets as per the task. Fixes #472. ISSUE TYPE Bugfix Pull Request COMPONENT NAME aws_secret Reviewed-by: Alina Buzachis <None> Reviewed-by: Joseph Torcasso <None>
aws_secret: Handle pagination for bypath=true Depends-On: ansible/ansible-zuul-jobs#1359 Depends-On: ansible/ansible-zuul-jobs#1362 Depends-On: ansible/ansible-zuul-jobs#1364 SUMMARY Currently aws_secret returns only 10 secrets, added manual pagination for getting all the secrets as per the task. Fixes #472. ISSUE TYPE Bugfix Pull Request COMPONENT NAME aws_secret Reviewed-by: Alina Buzachis <None> Reviewed-by: Joseph Torcasso <None> (cherry picked from commit 9f0a616)
[PR #591/9f0a616e backport][stable-3] aws_secret: Handle pagination for bypath=true This is a backport of PR #591 as merged into main (9f0a616). Depends-On: ansible/ansible-zuul-jobs#1359 Depends-On: ansible/ansible-zuul-jobs#1362 Depends-On: ansible/ansible-zuul-jobs#1364 SUMMARY Currently aws_secret returns only 10 secrets, added manual pagination for getting all the secrets as per the task. Fixes #472. ISSUE TYPE Bugfix Pull Request COMPONENT NAME aws_secret
* ec2_vpc_nat_gateway_info: stability * Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls * Add paginator * Document returned data Signed-off-by: Alina Buzachis <[email protected]>
* ec2_vpc_nat_gateway_info: stability * Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls * Add paginator * Document returned data Signed-off-by: Alina Buzachis <[email protected]>
* ec2_vpc_nat_gateway_info: stability * Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls * Add paginator * Document returned data Signed-off-by: Alina Buzachis <[email protected]>
Summary
I found an issue when using ansible lookup plugin. In my ansible playbook ( Ansible 2.10) I'm using lookup plugin to get all secrets from AWS Secrets Manager with the bypath attribute.
It is working fine however I realized that it returns only up to 10 elements.
Is there a way to return all elements or use pagination ? Have you faced similar issue with lookup plugin ?
Issue Type
Bug Report
Component Name
amazon.aws.aws_secret
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
No response
Steps to Reproduce
Expected Results
Lookup plugin should return all secrets from AWS Secret Manager
Actual Results
It returns only up tp 10 results
Code of Conduct
The text was updated successfully, but these errors were encountered: