diff --git a/infrastructure/lambda-delete-doc-ref.tf b/infrastructure/lambda-delete-doc-ref.tf index 5f17c061..09de8914 100644 --- a/infrastructure/lambda-delete-doc-ref.tf +++ b/infrastructure/lambda-delete-doc-ref.tf @@ -73,7 +73,8 @@ module "delete-doc-ref-lambda" { "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", "arn:aws:iam::aws:policy/CloudWatchLambdaInsightsExecutionRolePolicy", module.ndr-app-config.app_config_policy_arn, - module.stitch_metadata_reference_dynamodb_table.dynamodb_policy + module.stitch_metadata_reference_dynamodb_table.dynamodb_policy, + module.sqs-nrl-queue.sqs_policy ] rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id resource_id = module.delete-doc-ref-gateway.gateway_resource_id @@ -88,6 +89,7 @@ module "delete-doc-ref-lambda" { LLOYD_GEORGE_DYNAMODB_NAME = "${terraform.workspace}_${var.lloyd_george_dynamodb_table_name}" STITCH_METADATA_DYNAMODB_NAME = "${terraform.workspace}_${var.stitch_metadata_dynamodb_table_name}" WORKSPACE = terraform.workspace + NRL_SQS_QUEUE_URL = module.sqs-nrl-queue.sqs_url } depends_on = [ aws_api_gateway_rest_api.ndr_doc_store_api,