Hi,
How can I specify that a MongoDB Atlas cluster should have a search deployment with two nodes that are using the S40 storage optimized tier?
Here is the terraform code that I am using
resource "mongodbatlas_search_deployment" "cluster_search_deployment" {
provider = mongodbatlas
count = var.search_deployment_enabled && var.create_cluster ? 1 : 0
project_id = mongodbatlas_advanced_cluster.cluster[0].project_id
cluster_name = mongodbatlas_advanced_cluster.cluster[0].name
specs = [
{
instance_size = var.atlas_search_node_instance_size
node_count = var.atlas_search_nodes
}
]
}
I have tried setting it to S40_STORAGE_OPTIMIZED and S40_STORAGEOPTIMIZED, but I am getting an error stating
│ Error: error during search deployment update
│
│ with module.cluster.mongodbatlas_search_deployment.cluster_search_deployment[0],
│ on .terraform/modules/cluster/main.tf line 131, in resource "mongodbatlas_search_deployment" "cluster_search_deployment":
│ 131: resource "mongodbatlas_search_deployment" "cluster_search_deployment" {
│
│ https://cloud.mongodb.com/api/atlas/v2/groups/[redacted]/clusters/my-cluster/search/deployment
│ PATCH: HTTP 400 Bad Request (Error code: "INVALID_ENUM_VALUE") Detail: An
│ invalid enumeration value S40_STORAGE_OPTIMIZED was specified. Reason: Bad
│ Request. Params: [S40_STORAGE_OPTIMIZED], BadRequestDetail:
╵
What is the correct value to use the S40 storage optimized tier for search nodes in terraform?