Skip to content

Commit

Permalink
fix: Create a domain policy that implicitly depends_on domain (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
hougang512 authored Jun 28, 2024
1 parent 7eb6c86 commit 473ba5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ locals {
resource "aws_opensearch_domain_policy" "this" {
count = var.create && var.enable_access_policy && (local.create_access_policy || var.access_policies != null) ? 1 : 0

domain_name = var.domain_name
domain_name = aws_opensearch_domain.this[0].domain_name
access_policies = local.create_access_policy ? data.aws_iam_policy_document.this[0].json : var.access_policies
}

Expand Down

0 comments on commit 473ba5d

Please sign in to comment.