Skip to content

Commit

Permalink
change aws_caller_identity ref (#1555)
Browse files Browse the repository at this point in the history
  • Loading branch information
timburke-hackit authored Jan 16, 2024
1 parent 681cab1 commit e110c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/etl/48-lambda-gov-notify-ingestion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ data "aws_iam_policy_document" "gov_notify_lambda_secret_access" {
"secretsmanager:GetSecretValue",
]
effect = "Allow"
resources = ["arn:aws:secretsmanager:eu-west-2:${data.aws_caller_identity.current.account_id}:secret:housing/gov-notify*"]
resources = ["arn:aws:secretsmanager:eu-west-2:${data.aws_caller_identity.data_platform.account_id}:secret:housing/gov-notify*"]
}
}

Expand All @@ -118,4 +118,4 @@ resource "aws_iam_role_policy_attachment" "gov_notify_lambda_secret_access" {
count = local.is_live_environment && !local.is_production_environment ? 1 : 0
role = aws_iam_role.housing_gov_notify_ingestion[0].name
policy_arn = aws_iam_policy.gov_notify_lambda_secret_access[0].arn
}
}

0 comments on commit e110c17

Please sign in to comment.