diff --git a/terraform/environments/analytical-platform-ingestion/s3.tf b/terraform/environments/analytical-platform-ingestion/s3.tf index 07c94c6d6d4..9bd224e9fb2 100644 --- a/terraform/environments/analytical-platform-ingestion/s3.tf +++ b/terraform/environments/analytical-platform-ingestion/s3.tf @@ -22,7 +22,7 @@ data "aws_iam_policy_document" "quarantine_bucket_policy" { effect = "Deny" not_principals { type = "AWS" - identifiers = ["arn:aws:iam::${local.environment}:role/scan"] + identifiers = ["arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/scan"] } actions = ["*"] resources = ["arn:aws:s3:::mojap-ingestion-${local.environment}-quarantine"]