From ab036905c715e72ef3265f392f8a76d0950e1950 Mon Sep 17 00:00:00 2001 From: Joel Balcaen Date: Mon, 22 Apr 2024 11:02:26 -0300 Subject: [PATCH] change bucket selection --- terraform/modules.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/modules.tf b/terraform/modules.tf index 3efb42b..f5e54d1 100644 --- a/terraform/modules.tf +++ b/terraform/modules.tf @@ -264,6 +264,6 @@ module "email_attachment_saver" { source = "../lambdas/email_attachment_saver" lambda_storage_bucket = aws_s3_bucket.lambda_storage.id aws_region = var.aws_region - allowed_s3_resources = [module.s3_bucket.s3_bucket_arn] + allowed_s3_resources = ["${module.s3_bucket.s3_bucket_arn}/*"] }