Skip to content

Commit

Permalink
Changes deprected aws:SourceOwner to aws:SourceAccount to keep the co…
Browse files Browse the repository at this point in the history
…de consistent

Signed-off-by: Stefan Wessels Beljaars <[email protected]>
  • Loading branch information
stefanwb committed Jan 2, 2024
1 parent b269707 commit ba32452
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion files/sns/iam_activity_topic_policy.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"Resource": "${sns_topic}",
"Condition": {
"StringEquals": {
"AWS:SourceOwner": "${audit_account_id}"
"AWS:SourceAccount": "${audit_account_id}"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion files/sns/security_hub_topic_policy.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"Resource": "${sns_topic}",
"Condition": {
"StringEquals": {
"AWS:SourceOwner": "${account_id}"
"AWS:SourceAccount": "${account_id}"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion iam_activity_logging.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ data "aws_iam_policy_document" "sns_feedback" {

condition {
test = "StringEquals"
variable = "AWS:SourceOwner"
variable = "AWS:SourceAccount"
values = [data.aws_caller_identity.audit.account_id]
}
}
Expand Down

0 comments on commit ba32452

Please sign in to comment.