-
Notifications
You must be signed in to change notification settings - Fork 398
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
aws_ssm_parameter_store update fails if no description element was defined before #1471
Comments
Files identified in the description: If these files are inaccurate, please update the |
Files identified in the description:
If these files are inaccurate, please update the |
Potential solution is probably to consider
|
@cergfix, It would be really nice if you can run above reproduce steps with |
I'm opening a PR now. |
Fix KeyError when Description is not present in ssm_parameter SUMMARY Fixes #1471 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ssm_parameter ADDITIONAL INFORMATION Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Mark Chappell <None>
Fix KeyError when Description is not present in ssm_parameter SUMMARY Fixes #1471 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ssm_parameter ADDITIONAL INFORMATION Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Mark Chappell <None> (cherry picked from commit 3cf69cd)
Fix KeyError when Description is not present in ssm_parameter SUMMARY Fixes #1471 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ssm_parameter ADDITIONAL INFORMATION Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Mark Chappell <None> (cherry picked from commit 3cf69cd)
…#1631) [PR #1627/3cf69cd4 backport][stable-5] Fix KeyError when Description is not present in ssm_parameter This is a backport of PR #1627 as merged into main (3cf69cd). SUMMARY Fixes #1471 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ssm_parameter ADDITIONAL INFORMATION Reviewed-by: Mark Chappell <None>
…#1630) [PR #1627/3cf69cd4 backport][stable-4] Fix KeyError when Description is not present in ssm_parameter This is a backport of PR #1627 as merged into main (3cf69cd). SUMMARY Fixes #1471 ISSUE TYPE Bugfix Pull Request COMPONENT NAME ssm_parameter ADDITIONAL INFORMATION Reviewed-by: Mark Chappell <None>
Summary
aws_ssm_parameter_store
update fails if no description element was defined before.If an SSM parameter has an empty description already in SSM, then the AWS API (I'm guessing
aws ssm describe-parameters
) doesn't include thedescription
element in the response JSON at all for such item, causing issues incommunity.aws. aws_ssm_parameter_store
handling of such reply (Description element no defined).Issue Type
Bug Report
Component Name
ssm_parameter
Ansible Version
Collection Versions
AWS SDK versions
Configuration
$ ansible-config dump --only-changed
OS / Environment
Ubuntu 22.04
Steps to Reproduce
Expected Results
Second command successfully adding the description element.
Actual Results
Second command fails due to description being empty in SSM.
Code of Conduct
The text was updated successfully, but these errors were encountered: