Skip to content

Conversation

@stevebux
Copy link
Contributor

Description

Context

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
  • If I have used the 'skip-trivy-package' label I have done so responsibly and in the knowledge that this is being fixed as part of a separate ticket/PR.

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.

@stevebux stevebux requested review from a team as code owners January 22, 2026 16:03
@stevebux stevebux force-pushed the feature/CCM-12951-Maintain-Letter-Status branch 2 times, most recently from b2a5207 to 94171d9 Compare January 26, 2026 14:32
@stevebux stevebux force-pushed the feature/CCM-12951-Maintain-Letter-Status branch from 94171d9 to 966f6eb Compare January 26, 2026 15:50
return {
s3Client: new S3Client(),
sqsClient: new SQSClient(),
snsClient: new SNSClient(),
Copy link
Contributor

Choose a reason for hiding this comment

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

for these clients we don't specify the region.
Are we sure they are assigned the correct region?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As I understand it, when you create an AWS client inside a lambda, it inherits the region from where the lambda is executed. (Which will be eu-west-2 as that's what's configured in the terraform in the nhs-notify-internal project). I suppose that might be an issue for services that are only available in a limited number of regions, but that doesn't seem to be a problem here.

sidnhs
sidnhs previously approved these changes Jan 27, 2026
@stevebux stevebux dismissed stale reviews from sidnhs and Vlasis-Perdikidis via e5b9274 February 4, 2026 11:05
masl2
masl2 previously approved these changes Feb 9, 2026
@stevebux stevebux force-pushed the feature/CCM-12951-Maintain-Letter-Status branch from 5bf0071 to d11f96f Compare February 10, 2026 10:27
@stevebux stevebux force-pushed the feature/CCM-12951-Maintain-Letter-Status branch from 94f88f0 to 630d113 Compare February 12, 2026 10:16
@stevebux stevebux changed the title Switch letter_status_update lambda to use eventsub SNS topic Feature/ccm 12951 Switch letter_status_update lambda to use eventsub SNS topic Feb 12, 2026
Comment on lines +1 to +11
# Moved blocks to handle resource renames without destroy/recreate

moved {
from = module.letter_status_updates_queue
to = module.amendments_queue
}

moved {
from = module.letter_status_update
to = module.amendment_event_transformer
}
Copy link
Contributor

Choose a reason for hiding this comment

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

For the lambda a destory and recreate is fine (and would likely happen anyway given the package changes)

For the queue I'd suggest we add the new one with the updated subscriptions without deleting the original
then in a subsequent release we can remove it once we're sure it's empty

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.

5 participants