Skip to content

Commit 724e69b

Browse files
[PRMT-374] deploy jsons as default for the aliases
1 parent 9217ba6 commit 724e69b

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

infrastructure/buckets.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,24 @@ module "ndr-configs-store" {
415415
force_destroy = local.is_force_destroy
416416
}
417417

418+
resource "aws_s3_object" "metadata_aliases_general" {
419+
bucket = module.ndr-configs-store.bucket_id
420+
key = "metadata_aliases/general/general.json"
421+
422+
source = "${path.module}/modules/aliases_config/general/general.json"
423+
etag = filemd5("${path.module}/modules/aliases_config/general/general.json")
424+
content_type = "application/json"
425+
}
426+
427+
resource "aws_s3_object" "metadata_aliases_usb" {
428+
bucket = module.ndr-configs-store.bucket_id
429+
key = "metadata_aliases/usb/usb.json"
430+
431+
source = "${path.module}/modules/aliases_config/usb/usb.json"
432+
etag = filemd5("${path.module}/modules/aliases_config/usb/usb.json")
433+
content_type = "application/json"
434+
}
435+
418436
resource "aws_s3_bucket_lifecycle_configuration" "configs-store-lifecycle-rules" {
419437
bucket = module.ndr-configs-store.bucket_id
420438

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"owner": "Current general aliases",
3+
"file_path": "FILEPATH",
4+
"page_count": "PAGE COUNT",
5+
"gp_practice_code": "GP-PRACTICE-CODE",
6+
"nhs_number": "NHS-NO",
7+
"section": "SECTION",
8+
"sub_section": "SUB-SECTION",
9+
"scan_date": "SCAN-DATE",
10+
"scan_id": "SCAN-ID",
11+
"user_id": "USER-ID",
12+
"upload": "UPLOAD"
13+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"owner": "Current USB aliases",
3+
"file_path": "File Path",
4+
"page_count": "PageCount",
5+
"gp_practice_code": "Practice Code",
6+
"nhs_number": "NHS Number",
7+
"section": "Folder",
8+
"sub_section": "Subfolder",
9+
"scan_date": "Scan Date",
10+
"scan_id": "Scan Id",
11+
"user_id": "User",
12+
"upload": "Upload Date"
13+
}

0 commit comments

Comments
 (0)