Skip to content

Commit 1029a5a

Browse files
committed
[NDR-97] add env var
1 parent dff04f2 commit 1029a5a

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

infrastructure/lambda-post-document-fhir.tf

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ module "post-document-references-fhir-lambda" {
2828
http_methods = ["POST"]
2929
api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn
3030
lambda_environment_variables = {
31-
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
32-
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
33-
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
34-
DOCUMENT_STORE_BUCKET_NAME = "${terraform.workspace}-${var.docstore_bucket_name}"
35-
DOCUMENT_STORE_DYNAMODB_NAME = "${terraform.workspace}_${var.docstore_dynamodb_table_name}"
36-
LLOYD_GEORGE_DYNAMODB_NAME = "${terraform.workspace}_${var.lloyd_george_dynamodb_table_name}"
37-
LLOYD_GEORGE_BUCKET_NAME = "${terraform.workspace}-${var.lloyd_george_bucket_name}"
31+
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
32+
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
33+
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
34+
DOCUMENT_STORE_DYNAMODB_NAME = "${terraform.workspace}_${var.docstore_dynamodb_table_name}"
35+
LLOYD_GEORGE_DYNAMODB_NAME = "${terraform.workspace}_${var.lloyd_george_dynamodb_table_name}"
36+
STAGING_STORE_BUCKET_NAME = "${terraform.workspace}-${var.staging_store_bucket_name}"
3837
DOCUMENT_RETRIEVE_ENDPOINT_APIM = "${local.apim_api_url}/DocumentReference"
3938
PDS_FHIR_IS_STUBBED = local.is_sandbox
4039
WORKSPACE = terraform.workspace

0 commit comments

Comments
 (0)