Skip to content

Commit d378fac

Browse files
committed
Invert condition for DynamoDB access policies in Lambda configuration
Signed-off-by: NogaNHS <[email protected]>
1 parent 49f5e9a commit d378fac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infrastructure/lambda-mns-notification.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ module "mns-notification-lambda" {
88
module.sqs-mns-notification-queue[0].sqs_write_policy_document,
99
module.lloyd_george_reference_dynamodb_table.dynamodb_write_policy_document,
1010
module.lloyd_george_reference_dynamodb_table.dynamodb_read_policy_document,
11-
!local.is_production ? module.document_review_dynamodb_table[0].dynamodb_write_policy_document : null,
12-
!local.is_production ? module.document_review_dynamodb_table[0].dynamodb_read_policy_document : null,
11+
local.is_production ? null : module.document_review_dynamodb_table[0].dynamodb_write_policy_document,
12+
!local.is_production ? null : module.document_review_dynamodb_table[0].dynamodb_read_policy_document,
1313
aws_iam_policy.ssm_access_policy.policy,
1414
module.ndr-app-config.app_config_policy,
1515
aws_iam_policy.kms_mns_lambda_access[0].policy,

0 commit comments

Comments
 (0)