Skip to content

VED-1233: Replace manual release steps#1437

Open
Thomas-Boyle wants to merge 3 commits intomasterfrom
ved-1233-replace-manual-release-steps
Open

VED-1233: Replace manual release steps#1437
Thomas-Boyle wants to merge 3 commits intomasterfrom
ved-1233-replace-manual-release-steps

Conversation

@Thomas-Boyle
Copy link
Copy Markdown
Contributor

  • Added steps to set the Terraform workspace and manage shared Lambda triggers during blue/green deployments in the deploy-backend.yml workflow.
  • Introduced a new script, manage_blue_green_event_source_mappings.sh, to handle the preparation and cleanup of event source mappings for Lambda functions.
  • Updated README.md to document the new blue/green Lambda trigger handoff process, removing manual steps from the deployment flow.

Automated blue/green Lambda trigger handoff in deployment by adding pre-plan state adoption and pre-apply stale-trigger cleanup steps to the backend workflow.
Added manage_blue_green_event_source_mappings.sh to resolve live mapping UUIDs, re-import shared delta and id-sync event source mappings into the target Terraform workspace, and delete obsolete side-specific mappings.
This removes the manual release checklist steps (“Disable delta” and “Disable ID sync”), making releases faster and reducing risk of human error during blue/green cutovers.

- Added steps to set the Terraform workspace and manage shared Lambda triggers during blue/green deployments in the deploy-backend.yml workflow.
- Introduced a new script, manage_blue_green_event_source_mappings.sh, to handle the preparation and cleanup of event source mappings for Lambda functions.
- Updated README.md to document the new blue/green Lambda trigger handoff process, removing manual steps from the deployment flow.
@github-actions
Copy link
Copy Markdown
Contributor

This branch is working on a ticket in the NHS England VED JIRA Project. Here's a handy link to the ticket:

VED-1233

@Thomas-Boyle Thomas-Boyle temporarily deployed to internal-dev-sandbox April 22, 2026 10:30 — with GitHub Actions Inactive
@Thomas-Boyle Thomas-Boyle temporarily deployed to internal-dev-sandbox April 22, 2026 10:30 — with GitHub Actions Inactive
@Thomas-Boyle Thomas-Boyle temporarily deployed to internal-dev-sandbox April 22, 2026 10:31 — with GitHub Actions Inactive
@Thomas-Boyle Thomas-Boyle added feature New feature or request infrastructure Pull requests that update terraform code labels Apr 22, 2026
Comment thread utilities/scripts/manage_blue_green_event_source_mappings.sh Outdated
Comment thread utilities/scripts/manage_blue_green_event_source_mappings.sh Outdated
Comment thread utilities/scripts/manage_blue_green_event_source_mappings.sh Outdated
Comment thread utilities/scripts/manage_blue_green_event_source_mappings.sh Outdated
…gs.sh

- Introduced a new function, require_value, to streamline the validation of required environment variables.
- Replaced individual checks for ENVIRONMENT, SUB_ENVIRONMENT, and RESOURCE_SCOPE with calls to the new function for improved code clarity and maintainability.
@sonarqubecloud
Copy link
Copy Markdown

@Thomas-Boyle Thomas-Boyle temporarily deployed to internal-dev-sandbox April 27, 2026 12:17 — with GitHub Actions Inactive
@Thomas-Boyle Thomas-Boyle temporarily deployed to internal-dev-sandbox April 27, 2026 12:20 — with GitHub Actions Inactive
@Thomas-Boyle Thomas-Boyle temporarily deployed to internal-dev-sandbox April 27, 2026 12:21 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request infrastructure Pull requests that update terraform code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants