Skip to content

Commit

Permalink
Update example to limit backup policy changes to within the current a…
Browse files Browse the repository at this point in the history
…ccount.
  • Loading branch information
MarkCBell authored Sep 25, 2024
1 parent 14302b4 commit 3eebe9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/docs/r/backup_vault_policy.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Provides an AWS Backup vault policy resource.
## Example Usage

```terraform
data "aws_caller_identity" "current" {}
resource "aws_backup_vault" "example" {
name = "example"
}
Expand All @@ -23,7 +25,7 @@ data "aws_iam_policy_document" "example" {
principals {
type = "AWS"
identifiers = ["*"]
identifiers = [data.aws_caller_identity.current.account_id]
}
actions = [
Expand Down

0 comments on commit 3eebe9d

Please sign in to comment.