Skip to content

Commit 826d210

Browse files
[ndr-297] renamed var in script
1 parent cfaa710 commit 826d210

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pre_core/policy_tool.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ def tidy_resource_file(aws_account_id, env, source):
5959
output.append(f' count = var.environment == "{env}" ? 1 : 0')
6060
continue
6161

62-
# line = line.replace(aws_account_id, "${var.aws_account_id}")
63-
output.append(line.replace(aws_account_id, "${var.aws_account_id}"))
62+
output.append(line.replace(aws_account_id, "${data.aws_caller_identity.current.account_id}"))
6463

6564
return "\n".join(output)
6665

0 commit comments

Comments
 (0)