generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13fc395
commit 9488bf5
Showing
73 changed files
with
716 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 113 additions & 0 deletions
113
...ata-platform/data-product-metadata-json-schema/v1.1.0/moj_data_product_metadata_spec.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"type": "object", | ||
"title": "Data Product Metadata", | ||
"description": "Specification for MoJ Data Platform Data Product metadata", | ||
"required": [ | ||
"name", | ||
"description", | ||
"domain", | ||
"dataProductOwner", | ||
"dataProductOwnerDisplayName", | ||
"email", | ||
"status", | ||
"dpiaRequired" | ||
], | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the Data Product. Must contain only lowercase letters, numbers, and the underscore character.", | ||
"pattern": "^[a-z0-9_]+$", | ||
"example": "my_data_product" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "Detailed description about what functional area this Data Product is representing, what purpose it has and business related information.", | ||
"example": "this data product hold lots of useful information I want to share with those who may have use for it." | ||
}, | ||
"domain": { | ||
"type": "string", | ||
"description": "The identifier of the domain this Data Product belongs to. Should be one of HQ, HMPPS, OPG, LAA, HMCTS, CICA, or Platforms", | ||
"example": "HMPPS" | ||
}, | ||
"dataProductOwner": { | ||
"type": "string", | ||
"description": "Data Product owner, the unique identifier of the actual user that owns, manages, and receives notifications about the Data Product. To make it technology independent it is usually the email address of the owner.", | ||
"example": "[email protected]" | ||
}, | ||
"dataProductOwnerDisplayName": { | ||
"type": "string", | ||
"description": "The human-readable version of dataProductOwner", | ||
"example": "Jane Doe" | ||
}, | ||
"dataProductMaintainer": { | ||
"type": "string", | ||
"description": "Secondary party who is able to approve DPIA access requests, but who may or may not be legally responsible for the data", | ||
"example": "[email protected]" | ||
}, | ||
"dataProductMaintainerDisplayName": { | ||
"type": "string", | ||
"description": "The human-readable version of dataProductMaintainer", | ||
"example": "Jonny Data" | ||
}, | ||
"email": { | ||
"type": "string", | ||
"description": "point of contact between consumers and maintainers of the Data Product. It could be the owner or a distribution list, but must be reliable and responsive.", | ||
"example": "[email protected]" | ||
}, | ||
"status": { | ||
"type": "string", | ||
"description": "this is an enum representing the status of this version of the Data Product. Allowed values are: [draft|published|retired]. This is a metadata that communicates the overall status of the Data Product but is not reflected to the actual deployment status.", | ||
"enum": ["draft", "published", "retired"] | ||
}, | ||
"dpiaRequired": { | ||
"type": "boolean", | ||
"description": "Bool for if a data privacy impact assessment (dpia) is required to access this data product", | ||
"example": true | ||
}, | ||
"dpiaLocation": { | ||
"type": "string", | ||
"description": "Data Privacy Impact Assessment (DPIA) file s3 location for this data product. Generated by data platform." | ||
}, | ||
"retentionPeriod": { | ||
"type": "integer", | ||
"description": "Retention period of the data in this data product in days.", | ||
"example": 3650 | ||
}, | ||
"tags": { | ||
"type": "object", | ||
"description": "Additional tags to add.", | ||
"example": { "sandbox": true } | ||
}, | ||
"version": { | ||
"type": "string", | ||
"description": "Data product version of form [major].[minor]. Generated by data platform." | ||
}, | ||
"id": { | ||
"type": "string", | ||
"description": "Data product unique id. Generated by data platform.", | ||
"example": "dp:civil-courts-data:v1.1" | ||
}, | ||
"lastUpdated": { | ||
"type": "string", | ||
"description": "Last data upload date to this data product. Generated by data platform." | ||
}, | ||
"creationDate": { | ||
"type": "string", | ||
"description": "Creation date of the data product. Generated by data platform." | ||
}, | ||
"s3Location": { | ||
"type": "string", | ||
"description": "S3 path to data in this data product. Generated by data platform." | ||
}, | ||
"rowCount": { | ||
"type": "object", | ||
"description": "Total row count of all tables in the data product, as a heuristic. Generated by data platform." | ||
}, | ||
"schemas": { | ||
"type": "array", | ||
"description": "This contains a list of schemas or tables that are part of the data product. Generated by data platform" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
terraform/environments/delius-core/modules/environment_all_components/ldap_datasync.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
resource "aws_datasync_location_efs" "destination" { | ||
count = var.ldap_config.efs_datasync_destination_arn != null ? 1 : 0 | ||
ec2_config { | ||
security_group_arns = [aws_security_group.ldap_efs.arn] | ||
subnet_arn = "arn:aws:ec2:${var.account_info.region}:${var.account_info.id}:subnet/${var.account_config.private_subnet_ids[0]}" | ||
} | ||
efs_file_system_arn = var.ldap_config.efs_datasync_destination_arn | ||
} | ||
|
||
resource "aws_datasync_location_efs" "source" { | ||
ec2_config { | ||
security_group_arns = [aws_security_group.ldap_efs.arn] | ||
subnet_arn = "arn:aws:ec2:${var.account_info.region}:${var.account_info.id}:subnet/${var.account_config.private_subnet_ids[0]}" | ||
} | ||
efs_file_system_arn = aws_efs_file_system.ldap.arn | ||
} | ||
|
||
resource "aws_datasync_task" "ldap_refresh_task" { | ||
count = var.ldap_config.efs_datasync_destination_arn != null ? 1 : 0 | ||
destination_location_arn = aws_datasync_location_efs.destination[0].arn | ||
source_location_arn = aws_datasync_location_efs.source.arn | ||
|
||
name = "ldap-datasync-task-push-from-${var.env_name}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
terraform/environments/delius-core/modules/environment_all_components/output.tf
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
terraform/environments/delius-core/modules/environment_all_components/outputs.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## | ||
# Output variables here | ||
## | ||
|
||
output "ldap_efs_location" { | ||
value = aws_efs_file_system.ldap.arn | ||
} | ||
|
||
output "ldap_efs_security_group_id" { | ||
value = aws_security_group.ldap.id | ||
} |
Oops, something went wrong.