diff --git a/infrastructure/terraform/lambda/hubspot_deal_etl/main.tf b/infrastructure/terraform/lambda/hubspot_deal_etl/main.tf index 32f0ba31..48dd6b78 100644 --- a/infrastructure/terraform/lambda/hubspot_deal_etl/main.tf +++ b/infrastructure/terraform/lambda/hubspot_deal_etl/main.tf @@ -74,6 +74,6 @@ module "hubspot_deal_etl_sqs_policy" { } resource "aws_iam_role_policy_attachment" "hubspot_deal_etl_sqs_send" { - role = module.lambda.role_name + role = module.hubspot_deal_etl.role_name policy_arn = module.hubspot_deal_etl_sqs_policy.policy_arn } \ No newline at end of file