-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Arunsai14
committed
Nov 14, 2024
1 parent
961c798
commit e36890f
Showing
29 changed files
with
1,891 additions
and
661 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
locals { | ||
|
||
## OpenSearch Serverless Domain | ||
access_policy_rules = [ | ||
{ | ||
resource_type = "collection" | ||
resource = ["collection/${var.name}"] | ||
permissions = ["aoss:CreateCollectionItems", "aoss:DeleteCollectionItems", "aoss:UpdateCollectionItems", "aoss:DescribeCollectionItems"] | ||
}, | ||
] | ||
|
||
data_lifecycle_policy_rules = [ | ||
{ | ||
indexes = ["index1", "index2"] | ||
retention = "30d" | ||
}, | ||
{ | ||
indexes = ["index3"] | ||
retention = "24h" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
output "opensearch_domain_endpoint" { | ||
description = "The endpoint of the OpenSearch domain." | ||
value = module.opensearch.opensearch_domain_endpoint | ||
} | ||
|
||
output "opensearch_domain_arn" { | ||
description = "The ARN of the OpenSearch domain." | ||
value = module.opensearch.opensearch_domain_arn | ||
} | ||
|
||
output "opensearch_domain_id" { | ||
description = "The unique identifier for the OpenSearch domain." | ||
value = trimprefix(module.opensearch.opensearch_domain_id, "${data.aws_caller_identity.current.account_id}/") | ||
} | ||
|
||
############################################### | ||
## Outputs for OpenSearch Serverless Module | ||
############################################### | ||
|
||
output "opensearch_serverless_arn" { | ||
description = "The ARN of the OpenSearch Serverless collection." | ||
value = module.opensearch_serverless.opensearch_serverless_collection_arn | ||
} | ||
|
||
output "opensearch_serverless_collection_id" { | ||
description = "The ID of the OpenSearch Serverless collection" | ||
value = module.opensearch_serverless.opensearch_serverless_collection_id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.