Skip to content

Commit

Permalink
Merge pull request #33724 from obounaim/d-opensearch_domain_policy
Browse files Browse the repository at this point in the history
Correct provided example
  • Loading branch information
justinretzolk committed Oct 26, 2023
2 parents e95685a + 5f0b40d commit 734f2ed
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions website/docs/r/opensearch_domain_policy.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,22 @@ resource "aws_opensearch_domain" "example" {
}
data "aws_iam_policy_document" "main" {
effect = "Allow"
principals {
type = "*"
identifiers = ["*"]
}
actions = ["es:*"]
resources = ["${aws_opensearch_domain.example.arn}/*"]
condition {
test = "IpAddress"
variable = "aws:SourceIp"
values = "127.0.0.1/32"
statement {
effect = "Allow"
principals {
type = "*"
identifiers = ["*"]
}
actions = ["es:*"]
resources = ["${aws_opensearch_domain.example.arn}/*"]
condition {
test = "IpAddress"
variable = "aws:SourceIp"
values = ["127.0.0.1/32"]
}
}
}
Expand Down

0 comments on commit 734f2ed

Please sign in to comment.