Skip to content

Commit

Permalink
[PRPM-1284] Create NRL pointer, document upload (#226)
Browse files Browse the repository at this point in the history
* [PRMP-1284] add env variables and permissions to upload-confirm-result lambda
* [PRMP-1284] remove read nrl sqs read policy from lambda
  • Loading branch information
steph-torres-nhs authored Jan 17, 2025
1 parent 779f240 commit 88ffa90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion infrastructure/lambda-bulk-upload.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ module "bulk-upload-lambda" {
module.lloyd_george_reference_dynamodb_table.dynamodb_write_policy_document,
module.bulk_upload_report_dynamodb_table.dynamodb_read_policy_document,
module.bulk_upload_report_dynamodb_table.dynamodb_write_policy_document,
module.sqs-nrl-queue.sqs_read_policy_document,
module.sqs-nrl-queue.sqs_write_policy_document,
module.sqs-lg-bulk-upload-metadata-queue.sqs_read_policy_document,
module.sqs-lg-bulk-upload-metadata-queue.sqs_write_policy_document,
Expand Down
3 changes: 3 additions & 0 deletions infrastructure/lambda-upload-confirm-result.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ module "upload_confirm_result_lambda" {
module.document_reference_dynamodb_table.dynamodb_write_policy_document,
module.lloyd_george_reference_dynamodb_table.dynamodb_read_policy_document,
module.lloyd_george_reference_dynamodb_table.dynamodb_write_policy_document,
module.sqs-nrl-queue.sqs_write_policy_document,
]
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
resource_id = module.upload_confirm_result_gateway.gateway_resource_id
Expand All @@ -92,6 +93,8 @@ module "upload_confirm_result_lambda" {
DOCUMENT_STORE_DYNAMODB_NAME = "${terraform.workspace}_${var.docstore_dynamodb_table_name}"
LLOYD_GEORGE_DYNAMODB_NAME = "${terraform.workspace}_${var.lloyd_george_dynamodb_table_name}"
WORKSPACE = terraform.workspace
APIM_API_URL = data.aws_ssm_parameter.apim_url.value
NRL_SQS_URL = module.sqs-nrl-queue.sqs_url
}
depends_on = [
aws_api_gateway_rest_api.ndr_doc_store_api,
Expand Down

0 comments on commit 88ffa90

Please sign in to comment.