diff --git a/terraform/modules/opensearch/data.tf b/terraform/modules/opensearch/data.tf index 443f5109..4bf43786 100644 --- a/terraform/modules/opensearch/data.tf +++ b/terraform/modules/opensearch/data.tf @@ -39,7 +39,6 @@ data "aws_iam_policy_document" "access_policy" { type = "AWS" identifiers = ["*"] } - #resources = ["${aws_opensearch_domain.this.arn}/*"] resources = ["arn:aws:es:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:domain/${var.resource_prefix}-opensearch/*"] } } @@ -90,9 +89,7 @@ data "aws_iam_policy_document" "snapshot" { effect = "Allow" actions = ["es:ESHttpPut"] resources = [ - #"${aws_opensearch_domain.this.arn}/*", "arn:aws:es:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:domain/${var.resource_prefix}-opensearch/*", - #"${aws_opensearch_domain.this.arn}/*/*" "arn:aws:es:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:domain/${var.resource_prefix}-opensearch/*/*" ] } diff --git a/terraform/modules/opensearch/outputs.tf b/terraform/modules/opensearch/outputs.tf index 63bab5e4..a297a4d7 100644 --- a/terraform/modules/opensearch/outputs.tf +++ b/terraform/modules/opensearch/outputs.tf @@ -4,11 +4,11 @@ output "arn" { sensitive = false } -# output "dashboard_endpoint" { -# value = aws_opensearch_domain.this.dashboard_endpoint -# description = "The endpoint of the OpenSearch domain dashboard" -# sensitive = false -# } +output "dashboard_endpoint" { + value = aws_opensearch_domain.this.dashboard_endpoint + description = "The endpoint of the OpenSearch domain dashboard" + sensitive = false +} output "domain_id" { value = aws_opensearch_domain.this.domain_id