Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions infrastructure/dynamo_db.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ module "lloyd_george_reference_dynamodb_table" {
{
name = "S3FileKey"
type = "S"
},
{
name = "Created"
type = "S"
}
]

Expand All @@ -105,6 +109,7 @@ module "lloyd_george_reference_dynamodb_table" {
{
name = "NhsNumberIndex"
hash_key = "NhsNumber"
range_key = "Created"
projection_type = "ALL"
},
{
Expand Down
10 changes: 5 additions & 5 deletions infrastructure/lambda-search-doc-references.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ module "search-document-references-lambda" {
http_methods = ["GET"]
api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn
lambda_environment_variables = {
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
DYNAMODB_TABLE_LIST = "[\u0022${terraform.workspace}_${var.docstore_dynamodb_table_name}\u0022, \u0022${terraform.workspace}_${var.lloyd_george_dynamodb_table_name}\u0022]"
WORKSPACE = terraform.workspace
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
LLOYD_GEORGE_DYNAMODB_NAME = module.lloyd_george_reference_dynamodb_table.table_name
WORKSPACE = terraform.workspace
}
depends_on = [
aws_api_gateway_rest_api.ndr_doc_store_api,
Expand Down
1 change: 1 addition & 0 deletions infrastructure/lambda-search-document-references-fhir.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module "search-document-references-fhir-lambda" {
DYNAMODB_TABLE_LIST = "[\u0022${module.core_dynamodb_table.table_name}\u0022, \u0022${module.lloyd_george_reference_dynamodb_table.table_name}\u0022]"
DOCUMENT_RETRIEVE_ENDPOINT_APIM = "${local.apim_api_url}/DocumentReference"
WORKSPACE = terraform.workspace
LLOYD_GEORGE_DYNAMODB_NAME = module.lloyd_george_reference_dynamodb_table.table_name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to remove DYNAMODB_TABLE_LIST here too?

}
depends_on = [
aws_api_gateway_rest_api.ndr_doc_store_api,
Expand Down