Skip to content
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

Add support for check mode to SSM Parameter store #1309

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Jul 5, 2022

SUMMARY
  • Adds support for check_mode
  • Adds basic waiters for create/delete
  • Fixes bug where module wasn't consistently idempotent
ISSUE TYPE
  • Bugfix Pull Request
  • Feature Pull Request
COMPONENT NAME

plugins/modules/aws_ssm_parameter_store.py

ADDITIONAL INFORMATION

Module was using a deprecated parameter when calling describe_parameters (Filters). This deprecated parameter appears to have some form of caching applied to it and would sometimes return old values. By switching to the ParameterFilters replacement things seem to be more consistent.

@tremble tremble added the backport-4 PR should be backported to the stable-4 branch label Jul 5, 2022
@ansibullbot ansibullbot added bug This issue/PR relates to a bug community_review integration tests/integration module module plugins plugin (any type) tests tests labels Jul 5, 2022
@tremble tremble force-pushed the check_mode/aws_ssm_parameter_store branch from 9aa5dc6 to 3c620ac Compare July 5, 2022 09:57
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 5m 29s (non-voting)
✔️ build-ansible-collection SUCCESS in 5m 35s
✔️ ansible-test-sanity-docker-devel SUCCESS in 12m 45s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 12m 09s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 12m 55s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 12m 51s
✔️ ansible-test-units-community-aws-python38 SUCCESS in 9m 38s
✔️ ansible-test-units-community-aws-python39 SUCCESS in 7m 25s
✔️ ansible-test-splitter SUCCESS in 3m 35s
✔️ integration-community.aws-1 SUCCESS in 9m 39s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED

@tremble tremble changed the title Add support for check mode to SSM Parameter Add support for check mode to SSM Parameter store Jul 5, 2022
@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Jul 5, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

✔️ ansible-galaxy-importer SUCCESS in 5m 29s (non-voting)
✔️ build-ansible-collection SUCCESS in 5m 21s
✔️ ansible-test-sanity-docker-devel SUCCESS in 11m 32s (non-voting)
✔️ ansible-test-sanity-docker-milestone SUCCESS in 10m 52s
✔️ ansible-test-sanity-docker-stable-2.12 SUCCESS in 11m 08s
✔️ ansible-test-sanity-docker-stable-2.13 SUCCESS in 11m 43s
✔️ ansible-test-units-community-aws-python38 SUCCESS in 6m 02s
✔️ ansible-test-units-community-aws-python39 SUCCESS in 6m 31s
✔️ ansible-test-splitter SUCCESS in 2m 48s
✔️ integration-community.aws-1 SUCCESS in 6m 59s
⚠️ integration-community.aws-2 SKIPPED
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 29ab90e into ansible-collections:main Jul 5, 2022
@patchback
Copy link

patchback bot commented Jul 5, 2022

Backport to stable-4: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-4/29ab90ebd567bbc8fab1d907304b4b2d79bbe5c8/pr-1309

Backported as #1312

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jul 5, 2022
Add support for check mode to SSM Parameter store

SUMMARY

Adds support for check_mode
Adds basic waiters for create/delete
Fixes bug where module wasn't consistently idempotent

ISSUE TYPE

Bugfix Pull Request
Feature Pull Request

COMPONENT NAME
plugins/modules/aws_ssm_parameter_store.py
ADDITIONAL INFORMATION
Module was using a deprecated parameter when calling describe_parameters (Filters).  This deprecated parameter appears to have some form of caching applied to it and would sometimes return old values.  By switching to the ParameterFilters replacement things seem to be more consistent.

Reviewed-by: Alina Buzachis <None>
(cherry picked from commit 29ab90e)
@github-actions
Copy link

github-actions bot commented Jul 5, 2022

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

softwarefactory-project-zuul bot pushed a commit that referenced this pull request Jul 5, 2022
[PR #1309/29ab90eb backport][stable-4] Add support for check mode to SSM Parameter store

This is a backport of PR #1309 as merged into main (29ab90e).
SUMMARY

Adds support for check_mode
Adds basic waiters for create/delete
Fixes bug where module wasn't consistently idempotent

ISSUE TYPE

Bugfix Pull Request
Feature Pull Request

COMPONENT NAME
plugins/modules/aws_ssm_parameter_store.py
ADDITIONAL INFORMATION
Module was using a deprecated parameter when calling describe_parameters (Filters).  This deprecated parameter appears to have some form of caching applied to it and would sometimes return old values.  By switching to the ParameterFilters replacement things seem to be more consistent.

Reviewed-by: Mark Chappell <None>
@tremble tremble deleted the check_mode/aws_ssm_parameter_store branch July 7, 2022 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-4 PR should be backported to the stable-4 branch bug This issue/PR relates to a bug community_review integration tests/integration mergeit Merge the PR (SoftwareFactory) module module plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants