Skip to content

Commit dfc23f1

Browse files
authored
Merge pull request #54 from nhsconnect/kb-pipeline-prod
EhrHardDeletion.py zip is now copied between prod plan/apply stages
2 parents 6ba5300 + c8860fd commit dfc23f1

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed
File renamed without changes.

gocd/pipeline.gocd.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ common:
88
- build:
99
source: generate-cost-report-lambda/build/generate-cost-report-lambda.zip
1010
destination: generate-cost-report-lambda/build/
11+
- build:
12+
source: ehr-hard-deletion-lambda/build/ehr-hard-deletion-lambda.zip
13+
destination: ehr-hard-deletion-lambda/build/
1114
resources:
1215
- docker
1316
tasks:
@@ -206,6 +209,9 @@ pipelines:
206209
- build:
207210
source: generate-cost-report-lambda/build/generate-cost-report-lambda.zip
208211
destination: generate-cost-report-lambda/build/
212+
- build:
213+
source: ehr-hard-deletion-lambda/build/ehr-hard-deletion-lambda.zip
214+
destination: ehr-hard-deletion-lambda/build/
209215
tasks:
210216
- exec:
211217
command: /bin/bash
@@ -260,6 +266,9 @@ pipelines:
260266
- build:
261267
source: generate-cost-report-lambda/build/generate-cost-report-lambda.zip
262268
destination: generate-cost-report-lambda/build/
269+
- build:
270+
source: ehr-hard-deletion-lambda/build/ehr-hard-deletion-lambda.zip
271+
destination: ehr-hard-deletion-lambda/build/
263272
tasks:
264273
- exec:
265274
command: /bin/bash
@@ -317,6 +326,12 @@ pipelines:
317326
source: generate-cost-report-lambda/build/generate-cost-report-lambda.zip
318327
destination: generate-cost-report-lambda/build/
319328
is_file: yes
329+
- fetch:
330+
stage: plan_prod
331+
job: plan
332+
source: ehr-hard-deletion-lambda/build/ehr-hard-deletion-lambda.zip
333+
destination: ehr-hard-deletion-lambda/build/
334+
is_file: yes
320335
- exec:
321336
command: /bin/bash
322337
arguments:

terraform/ehr_deletion_lambda.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ data "aws_iam_policy" "lambda_dynamodb_execution_role" {
9999

100100
data "archive_file" "ehr_hard_deletion_lambda" {
101101
type = "zip"
102-
source_file = "modules/utils/scripts/EhrHardDeletion.py"
102+
source_file = "../ehr-hard-deletion-lambda/EhrHardDeletion.py"
103103
output_path = var.ehr_hard_deletion_lambda_zip
104104
output_file_mode = "0644"
105105
}

0 commit comments

Comments
 (0)