From 9c4a8e11dba8f8a1644abb56be88603b3660d9a3 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 10 Mar 2026 15:15:21 +0000 Subject: [PATCH] correct s3 policy attachment --- infrastructure/terraform/lambda/fast-api/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/terraform/lambda/fast-api/main.tf b/infrastructure/terraform/lambda/fast-api/main.tf index cb4c923d..e339b582 100644 --- a/infrastructure/terraform/lambda/fast-api/main.tf +++ b/infrastructure/terraform/lambda/fast-api/main.tf @@ -149,7 +149,7 @@ module "fastapi_sqs_policy" { } -resource "aws_iam_role_policy_attachment" "fastapi_sqs_send" { +resource "aws_iam_role_policy_attachment" "fastapi_sqs_read_and_write" { role = module.fastapi.role_name - policy_arn = module.fastapi_sqs_policy.policy_arn + policy_arn = data.terraform_remote_state.shared.outputs.fast_api_s3_read_and_write_arn } \ No newline at end of file