Skip to content

CCM-19812: Fix eventpub queue names#224

Open
simonlabarere wants to merge 5 commits into
mainfrom
feature/CCM-19812_fix_eventpub_queue_names
Open

CCM-19812: Fix eventpub queue names#224
simonlabarere wants to merge 5 commits into
mainfrom
feature/CCM-19812_fix_eventpub_queue_names

Conversation

@simonlabarere

@simonlabarere simonlabarere commented Jun 29, 2026

Copy link
Copy Markdown

Description

The purpose of this PR is to:

  • Remove a redundant eventbus DLQ now that the eventbus lambda is behind an SQS queue module which creates its own DLQ.
  • Update the eventbus lambda to return errors as batch item failures instead of putting items manually on a DLQ.
  • Update the Queue and DLQ names created for the eventbus lambda in order to remove a duplicate csi component. For example, it used to show as nhs-main-dl-nhs-main-dl-eventpub-queue in the Digital Letters bounded context, with this update it will now show as nhs-main-dl-eventpub-queue.

This is a breaking change as it will delete existing queues and create new ones. A plan needs to be put in place for bounded context that want to use this version.

More testing done as part of https://github.com/NHSDigital/nhs-notify-digital-letters/pull/416

image

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@simonlabarere simonlabarere requested a review from a team as a code owner June 29, 2026 10:01
@simonlabarere simonlabarere force-pushed the feature/CCM-19812_fix_eventpub_queue_names branch from 53356cf to 43ec5a4 Compare June 29, 2026 10:04
Comment thread infrastructure/terraform/modules/eventpub/module_sqs_queue.tf
Ian-Hodges
Ian-Hodges previously approved these changes Jul 1, 2026
Comment thread infrastructure/terraform/modules/eventpub/lambda/eventpub/src/index.js Outdated
Co-authored-by: Gareth Allan <157592212+gareth-allan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants