From dad4d6d55cb4919526bd917c44d3ccbc5b17c616 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Wed, 4 Mar 2026 16:48:14 +0000 Subject: [PATCH] give engine permission to read and write necessary s3 buckets --- infrastructure/terraform/lambda/engine/main.tf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/infrastructure/terraform/lambda/engine/main.tf b/infrastructure/terraform/lambda/engine/main.tf index ee1bf2e2..23c5261e 100644 --- a/infrastructure/terraform/lambda/engine/main.tf +++ b/infrastructure/terraform/lambda/engine/main.tf @@ -67,4 +67,8 @@ module "lambda" { ) } -# Policies and IAM \ No newline at end of file +# Policies and IAM +resource "aws_iam-role_policy_attachment" "engine_s3_read_and_write" { + role = module.lambda.role_name + policy_arn = data.terraform_remote_state.shared.outputs.engine_s3_read_and_write_arn +} \ No newline at end of file