Skip to content

Commit

Permalink
reverted debug
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-fleming committed Jun 20, 2024
1 parent 57e6e7f commit 332f0e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
3 changes: 0 additions & 3 deletions terraform/modules/opensearch/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"]
}
}
Expand Down Expand Up @@ -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/*/*"
]
}
Expand Down
10 changes: 5 additions & 5 deletions terraform/modules/opensearch/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 332f0e9

Please sign in to comment.