Skip to content

Commit 9eab1da

Browse files
pr comments
1 parent 540df3e commit 9eab1da

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

infrastructure/gateway-document-reference.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,6 @@ module "document_reference_id_gateway" {
3636
request_parameters = {
3737
"method.request.path.id" = true
3838
}
39+
40+
depends_on = [module.document_reference_gateway]
3941
}

infrastructure/lambda-get-doc-ref.tf

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,16 @@ module "get-doc-ref-lambda" {
4343
name = "GetDocRefLambda"
4444
handler = "handlers.get_document_reference_handler.lambda_handler"
4545
iam_role_policy_documents = [
46-
module.ndr-lloyd-george-store.s3_write_policy_document,
4746
module.ndr-lloyd-george-store.s3_read_policy_document,
48-
module.lloyd_george_reference_dynamodb_table.dynamodb_write_policy_document,
4947
module.lloyd_george_reference_dynamodb_table.dynamodb_read_policy_document,
5048
aws_iam_policy.ssm_access_policy.policy,
5149
module.ndr-app-config.app_config_policy,
50+
module.cloudfront_edge_dynamodb_table.dynamodb_write_policy_document
5251
]
5352
kms_deletion_window = var.kms_deletion_window
5453
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
5554
resource_id = module.document_reference_id_gateway.gateway_resource_id
5655
http_methods = ["GET"]
57-
memory_size = 512
5856

5957
api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn
6058
lambda_environment_variables = {
@@ -69,13 +67,8 @@ module "get-doc-ref-lambda" {
6967
CLOUDFRONT_URL = module.cloudfront-distribution-lg.cloudfront_url
7068
}
7169
depends_on = [
72-
module.document_reference_gateway,
7370
aws_api_gateway_rest_api.ndr_doc_store_api,
74-
module.lloyd_george_reference_dynamodb_table,
75-
module.ndr-lloyd-george-store,
76-
module.ndr-app-config,
7771
module.cloudfront-distribution-lg,
78-
module.cloudfront_edge_dynamodb_table,
7972
module.document_reference_id_gateway
8073
]
8174
}

infrastructure/lambda-update-doc-ref.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ module "update-doc-ref-lambda" {
5858
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
5959
resource_id = module.document_reference_id_gateway.gateway_resource_id
6060
http_methods = ["PUT"]
61-
memory_size = 512
6261

6362
api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn
6463
lambda_environment_variables = {

infrastructure/moved-resources.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#PRMP-594
1+
#release V1.6.7
22
moved {
33
from = module.update_doc_ref_lambda
44
to = module.update-doc-ref-lambda

0 commit comments

Comments
 (0)