-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Open
Labels
enhancementRequests to existing resources that expand the functionality or scope.Requests to existing resources that expand the functionality or scope.service/opensearchIssues and PRs that pertain to the opensearch service.Issues and PRs that pertain to the opensearch service.
Description
Description
Cluster-specific settings like index auto creation can be configured via the OpenSearch API.
We could not find a way to manage the index auto creation setting in Terraform. That is why we use curl
to change the setting outside of the terraform-managed data:
curl -X PUT "https://cluster-domain.example.com/_cluster/settings?pretty" -H 'Content-Type: application/json' -d'
{
"persistent": {
"action.auto_create_index": "false"
}
}'
It would be great if the index auto creation setting (as well as other cluster settings?) could be managed with Terraform.
Affected Resource(s) and/or Data Source(s)
aws_opensearch_domain
aws_opensearch_domain
->cluster_config
Potential Terraform Configuration
resource "aws_opensearch_domain" "os-cluster" {
cluster_config {
settings {
action_auto_create_index = false
}
}
}
References
Would you like to implement a fix?
None
bryanhiestand, salvin-wmp and pflaquerre-figma
Metadata
Metadata
Assignees
Labels
enhancementRequests to existing resources that expand the functionality or scope.Requests to existing resources that expand the functionality or scope.service/opensearchIssues and PRs that pertain to the opensearch service.Issues and PRs that pertain to the opensearch service.