Skip to content

Conversation

@jasjaapdua
Copy link

@jasjaapdua jasjaapdua commented Nov 29, 2025

Motivation

SSM put_parameter events currently always emit operation: "Create", even when overwriting an existing parameter. AWS emits operation: "Update" on overwrite, so downstream listeners see incorrect event detail in LocalStack.

Changes

  • Set the SSM event operation to "Update" when put_parameter returns a version > 1, otherwise "Create".
  • Added a unit test to assert Create→Update emission when overwriting.

Tests

  • python -m pytest tests/unit/test_ssm_put_parameter_events.py
  • make lint
  • make format

Related

@localstack-bot
Copy link
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

Copy link
Contributor

@localstack-bot localstack-bot left a comment

Choose a reason for hiding this comment

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

Welcome to LocalStack! Thanks for raising your first Pull Request and landing in your contributions. Our team will reach out with any reviews or feedbacks that we have shortly. We recommend joining our Slack Community and share your PR on the #community channel to share your contributions with us. Please make sure you are following our contributing guidelines and our Code of Conduct.

@jasjaapdua
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

@jasjaapdua
Copy link
Author

The CI checks have failed because of missing labels and I don't have the permission to edit the labels now.

Could a maintainer please add the following labels?

  • docs:skip
  • notes:skip
  • semver:patch

This PR is a small bugfix that aligns the SSM PutParameter event behaviour with that of AWS. Thanks!

@viren-nadkarni viren-nadkarni added semver: patch Non-breaking changes which can be included in patch releases docs: skip Pull request does not require documentation changes notes: skip Pull request does not have to be mentioned in the release notes labels Dec 3, 2025
Copy link
Member

@viren-nadkarni viren-nadkarni 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 raising the PR!

Copy link
Member

Choose a reason for hiding this comment

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

Could you write a AWS-validated integration test instead of this unit test? You can read more about them here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs: skip Pull request does not require documentation changes notes: skip Pull request does not have to be mentioned in the release notes semver: patch Non-breaking changes which can be included in patch releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: ssm parameter update should send "Update" event, but sends "Create" event

3 participants