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