Skip to content

Commit a5242b9

Browse files
author
Steve Huff
committed
attach access policies to es domain
1 parent d2e9548 commit a5242b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,9 @@ resource "aws_elasticsearch_domain" "es" {
4747
}
4848
}
4949

50+
resource "aws_elasticsearch_domain_policy" "es_management_access" {
51+
domain_name = "tf-${var.domain_name}"
52+
access_policies = "${data.aws_iam_policy_document.es_management_access.json}"
53+
}
54+
5055
# vim: set et fenc= ff=unix ft=terraform sts=2 sw=2 ts=2 :

0 commit comments

Comments
 (0)