diff --git a/infrastructure/terraform/lambda/address2UPRN/main.tf b/infrastructure/terraform/lambda/address2UPRN/main.tf index 12f0a4b3..a6f56074 100644 --- a/infrastructure/terraform/lambda/address2UPRN/main.tf +++ b/infrastructure/terraform/lambda/address2UPRN/main.tf @@ -47,6 +47,6 @@ module "address2uprn" { # Attach S3 read policy to the Lambda execution role resource "aws_iam_role_policy_attachment" "address2uprn_read_and_write" { - role = module.lambda.role_name + role = module.address2uprn.role_name policy_arn = data.terraform_remote_state.shared.outputs.address_2_uprn_s3_read_and_write_arn } \ No newline at end of file