Skip to content

Commit 31e6aa5

Browse files
authored
Merge pull request #463 from NHSDigital/release/2025-01-08
Release/2025 01 08
2 parents 5a9a85f + 3bf71a2 commit 31e6aa5

File tree

14 files changed

+76
-269
lines changed

14 files changed

+76
-269
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: "Destroy: Workspace - Nonprod"
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
account:
7+
description: Account to destroy
8+
required: true
9+
default: qa
10+
type: choice
11+
options:
12+
- dev
13+
- qa
14+
sandbox:
15+
description: Do you want to destroy the sandbox version?
16+
type: boolean
17+
default: false
18+
19+
jobs:
20+
parse-secrets:
21+
runs-on: [self-hosted, ci]
22+
steps:
23+
- id: parse-secrets
24+
run: |
25+
echo "::add-mask::${{ secrets.CI_ROLE_NAME }}"
26+
27+
get-branch-from-workflow-file:
28+
runs-on: [self-hosted, ci]
29+
needs: [parse-secrets]
30+
outputs:
31+
branch_name: ${{ steps.get_branch.outputs.branch_name }}
32+
steps:
33+
- id: get_branch
34+
run: |
35+
workflow_ref=${{ github.workflow_ref }}
36+
branch_name=${workflow_ref#*refs/heads/}
37+
branch_name=${branch_name#*refs/tags/}
38+
echo "branch_name=${branch_name}" >> $GITHUB_OUTPUT
39+
40+
build-base:
41+
runs-on: [self-hosted, ci]
42+
needs: [get-branch-from-workflow-file]
43+
steps:
44+
- uses: actions/checkout@v4
45+
with:
46+
ref: ${{ needs.get-branch-from-workflow-file.outputs.branch_name }}
47+
- uses: ./.github/actions/make/
48+
with:
49+
command: build
50+
save-to-cache: "true"
51+
restore-from-cache: "false"
52+
53+
destroy_persistent_workspace:
54+
runs-on: [self-hosted, ci]
55+
needs: [build-base]
56+
steps:
57+
- name: Checkout code
58+
uses: actions/checkout@v4
59+
with:
60+
ref: ${{ needs.get-branch-from-workflow-file.outputs.branch_name }}
61+
- name: Destroy workspace
62+
uses: ./.github/actions/make/
63+
with:
64+
command: terraform--destroy TERRAFORM_WORKSPACE=${{ inputs.account }}${{ inputs.sandbox == true && '-sandbox' || '' }} TF_CLI_ARGS=${{ env.TF_CLI_ARGS }}
65+
requires-aws: true

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22

3+
## 2025-01-08
4+
- [PI-716] Pipeline enhancements
5+
- [PI-430] Remove Account Wide VPC
6+
37
## 2025-01-02
8+
- [PI-670] Billing Alarms
49
- [PI-688] Changelog ETL - delete an AS
510
- [PI-690] Changelog ETL - modify / add to an MHS
611
- [PI-694] Changelog ETL - modify / remove from an MHS

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025.01.02
1+
2025.01.08

changelog/2025-01-02.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- [PI-670] Billing Alarms
12
- [PI-688] Changelog ETL - delete an AS
23
- [PI-690] Changelog ETL - modify / add to an MHS
34
- [PI-694] Changelog ETL - modify / remove from an MHS

changelog/2025-01-08.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- [PI-716] Pipeline enhancements
2+
- [PI-430] Remove Account Wide VPC

infrastructure/terraform/per_account/dev/main.tf

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,6 @@ module "sds_etl_hscn_vpc" {
9696
prefix = local.project
9797
}
9898

99-
module "vpc" {
100-
source = "../modules/vpc"
101-
environment = terraform.workspace
102-
prefix = local.project
103-
}
104-
105-
10699
# -------- ROUTE 53 ---------
107100

108101
resource "aws_route53_zone" "dev-ns" {

infrastructure/terraform/per_account/int/main.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,6 @@ module "sds_etl_hscn_vpc" {
9696
environment = terraform.workspace
9797
prefix = local.project
9898
}
99-
module "vpc" {
100-
source = "../modules/vpc"
101-
environment = terraform.workspace
102-
prefix = local.project
103-
}
104-
10599

106100
# -------- ROUTE 53 ---------
107101

infrastructure/terraform/per_account/modules/vpc/lambda-connectivity-vpc.tf

Lines changed: 0 additions & 209 deletions
This file was deleted.

infrastructure/terraform/per_account/modules/vpc/vars.tf

Lines changed: 0 additions & 29 deletions
This file was deleted.

infrastructure/terraform/per_account/prod/main.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,6 @@ module "sds_etl_hscn_vpc" {
9595
environment = terraform.workspace
9696
prefix = local.project
9797
}
98-
module "vpc" {
99-
source = "../modules/vpc"
100-
environment = terraform.workspace
101-
prefix = local.project
102-
}
10398

10499
# -------- ROUTE 53 ---------
105100

0 commit comments

Comments
 (0)