diff --git a/infrastructure/terraform/lambda/hubspot_deal_etl/main.tf b/infrastructure/terraform/lambda/hubspot_deal_etl/main.tf index 051c7154..5a529e85 100644 --- a/infrastructure/terraform/lambda/hubspot_deal_etl/main.tf +++ b/infrastructure/terraform/lambda/hubspot_deal_etl/main.tf @@ -39,6 +39,6 @@ module "hubspot_deal_etl" { } resource "aws_iam_role_policy_attachment" "lambda_s3_policy" { - role = module.lambda.role_name + role = module.hubspot_deal_etl.role_name policy_arn = data.terraform_remote_state.shared.outputs.hubspot_etl_s3_read_and_write_arn } \ No newline at end of file