Skip to content

Commit 05748cf

Browse files
authored
fix: Change default policy from deprecated SourceOwner to SourceAccount (#61)
1 parent 467cfe7 commit 05748cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.96.1
3+
rev: v1.98.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_wrapper_module_for_each

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ data "aws_iam_policy_document" "this" {
8686
condition {
8787
test = "StringEquals"
8888
values = [data.aws_caller_identity.current.account_id]
89-
variable = "AWS:SourceOwner"
89+
variable = "AWS:SourceAccount"
9090
}
9191
}
9292
}

0 commit comments

Comments
 (0)