Skip to content

Comments

Add notifications container app jobs terraform#349

Merged
steventux merged 18 commits intomainfrom
add-notifications-jobs-terraform
Sep 16, 2025
Merged

Add notifications container app jobs terraform#349
steventux merged 18 commits intomainfrom
add-notifications-jobs-terraform

Conversation

@steventux
Copy link
Contributor

@steventux steventux commented Aug 29, 2025

Description

Private Beta breast screening appointment notifications rely on a series of Container App Jobs (CA Jobs) to process incoming data from MESH, save to the database and send to NHS Notify.
Azure Blob Storage and Azure Queue Storage are used in various places by the CA Jobs to process data. Postgresql connectivity to the Manage database is also required.

This PR adds the Terraform definitions for the CA Jobs.
A lot of the work here was done by @josielsouzanordcloud and @mrlockstar thank you for all the help with managed identity, rbac role assignment and private endpoint config.

Jira link

https://nhsd-jira.digital.nhs.uk/browse/DTOSS-10666

Review notes

The PR intentionally disables the cron trigger config for the CA Jobs, these will be enabled once we have some further connectivity work completed in the application code. The lack of connectivity + cron triggers would only create a lot of errors on the jobs.
See https://nhsd-jira.digital.nhs.uk/browse/DTOSS-10948

@steventux steventux changed the title WIP add notifications container app jobs Add notifications container app jobs Aug 29, 2025
@steventux steventux force-pushed the add-notifications-jobs-terraform branch from 8674bfb to 5e37067 Compare August 29, 2025 14:53
@steventux steventux changed the title Add notifications container app jobs Add notifications container app jobs terraform Aug 29, 2025
@steventux steventux force-pushed the add-notifications-jobs-terraform branch 2 times, most recently from 72691cd to 47f9310 Compare September 2, 2025 17:08
@mrlockstar mrlockstar force-pushed the add-notifications-jobs-terraform branch from d6b9936 to e4f0f96 Compare September 3, 2025 11:04
Adds container app job module configuration for Django Admin commands
necessary to import and process NBSS MESH data and make batch requests
to NHS Notify.
These don't vary per environment.
Improve the definition of environment variables for other jobs.
Expose the MI client IDs in the environment as these will be needed for connectivity to storage.
@steventux steventux force-pushed the add-notifications-jobs-terraform branch from 65ed418 to 39a2a9b Compare September 9, 2025 12:14
@github-actions
Copy link

github-actions bot commented Sep 10, 2025

The review app at this URL has been deleted:
https://pr-349.manage-breast-screening.non-live.screening.nhs.uk

@steventux steventux marked this pull request as ready for review September 10, 2025 14:53
@steventux steventux merged commit d0a5bcd into main Sep 16, 2025
32 of 34 checks passed
@steventux steventux deleted the add-notifications-jobs-terraform branch September 16, 2025 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants