From 22672d0490df8f7de0930fcb6a5048e98e9758d7 Mon Sep 17 00:00:00 2001 From: Marc Gavanier Date: Wed, 11 Oct 2023 10:08:54 +0200 Subject: [PATCH] fix: add lieux mediation numerique tables indexes as target ressources in policy document --- database.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database.tf b/database.tf index 969c5a4..29f83d6 100644 --- a/database.tf +++ b/database.tf @@ -73,7 +73,7 @@ data "aws_iam_policy_document" "lieux_inclusion_numerique_table_policy_document" "dynamodb:UpdateItem", "dynamodb:DeleteItem", ] - resources = [aws_dynamodb_table.lieux_inclusion_numerique_table.arn] + resources = [aws_dynamodb_table.lieux_inclusion_numerique_table.arn, "${aws_dynamodb_table.lieux_inclusion_numerique_table.arn}/index/*", ] } }