Skip to content

Commit 1b0eff8

Browse files
committed
Add account id to lambda module
1 parent 9de9c4f commit 1b0eff8

39 files changed

+43
-1
lines changed

infrastructure/lambda-access-audit.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ module "access-audit-lambda" {
6262
module.access_audit_dynamodb_table.dynamodb_write_policy_document
6363
]
6464
kms_deletion_window = var.kms_deletion_window
65+
account_id = data.aws_caller_identity.current.account_id
6566
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
6667
resource_id = module.access-audit-gateway.gateway_resource_id
6768
http_methods = ["POST"]

infrastructure/lambda-authoriser.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module "authoriser-lambda" {
99
module.ndr-app-config.app_config_policy
1010
]
1111
kms_deletion_window = var.kms_deletion_window
12+
account_id = data.aws_caller_identity.current.account_id
1213
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
1314
api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn
1415
lambda_environment_variables = {

infrastructure/lambda-back-channel-logout.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module "back_channel_logout_lambda" {
2020
module.ndr-app-config.app_config_policy
2121
]
2222
kms_deletion_window = var.kms_deletion_window
23+
account_id = data.aws_caller_identity.current.account_id
2324
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
2425
resource_id = module.back-channel-logout-gateway.gateway_resource_id
2526
http_methods = ["POST"]

infrastructure/lambda-bulk-upload-metadata-preprocessor.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module "bulk_upload_metadata_preprocessor_lambda" {
99
module.ndr-app-config.app_config_policy
1010
]
1111
kms_deletion_window = var.kms_deletion_window
12+
account_id = data.aws_caller_identity.current.account_id
1213
rest_api_id = null
1314
api_execution_arn = null
1415

infrastructure/lambda-bulk-upload-metadata.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module "bulk-upload-metadata-lambda" {
1313
]
1414

1515
kms_deletion_window = var.kms_deletion_window
16+
account_id = data.aws_caller_identity.current.account_id
1617
rest_api_id = null
1718
api_execution_arn = null
1819

infrastructure/lambda-bulk-upload-report.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module "bulk-upload-report-lambda" {
1313
module.ndr-app-config.app_config_policy
1414
]
1515
kms_deletion_window = var.kms_deletion_window
16+
account_id = data.aws_caller_identity.current.account_id
1617
rest_api_id = null
1718
api_execution_arn = null
1819

infrastructure/lambda-bulk-upload.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module "bulk-upload-lambda" {
2121
module.ndr-app-config.app_config_policy
2222
]
2323
kms_deletion_window = var.kms_deletion_window
24+
account_id = data.aws_caller_identity.current.account_id
2425
rest_api_id = null
2526
api_execution_arn = null
2627

infrastructure/lambda-create-doc-ref.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ module "create-doc-ref-lambda" {
7272
module.ndr-app-config.app_config_policy,
7373
]
7474
kms_deletion_window = var.kms_deletion_window
75+
account_id = data.aws_caller_identity.current.account_id
7576
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
7677
resource_id = module.create_document_reference_gateway.gateway_resource_id
7778
http_methods = ["POST"]

infrastructure/lambda-data-collection.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ module "data-collection-lambda" {
6161
aws_iam_policy.cloudwatch_log_query_policy.policy
6262
]
6363
kms_deletion_window = var.kms_deletion_window
64+
account_id = data.aws_caller_identity.current.account_id
6465
rest_api_id = null
6566
api_execution_arn = null
6667

infrastructure/lambda-delete-doc-object.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ module "delete-document-object-lambda" {
5454
aws_iam_policy.dynamodb_stream_delete_object_policy.policy
5555
]
5656
kms_deletion_window = var.kms_deletion_window
57+
account_id = data.aws_caller_identity.current.account_id
5758
rest_api_id = null
5859
api_execution_arn = null
5960
lambda_environment_variables = {

0 commit comments

Comments
 (0)