Skip to content

terraform-provider-mongodbatlas_v1.6.0 plugin crashed #935

Closed
@ppiankov

Description

@ppiankov

Terraform CLI and Terraform MongoDB Atlas Provider Version

❯ terraform version
Terraform v1.3.5
on darwin_amd64
+ provider registry.terraform.io/hashicorp/aws v4.40.0
+ provider registry.terraform.io/hashicorp/kubernetes v2.16.0
+ provider registry.terraform.io/mongodb/mongodbatlas v1.6.0

same was with
Terraform v1.3.3

Terraform Configuration File

terraform {
  required_providers {
    mongodbatlas = {
      source = "mongodb/mongodbatlas"
      version = "1.6.0"
    }
  }
}

resource "mongodbatlas_search_index" "textSearch" {
  name = "textSearch"
  project_id = local.mdb_project_id
  cluster_name = local.mdb_cluster_main

  analyzer = "lucene.standard"
  collection_name = "offers"
  database = "offers-test"
  mappings_dynamic = false
  mappings_fields = <<-EOF
{
  "brand": {
    "fields": {
      "name": {
        "analyzer": "lucene.standard",
        "searchAnalyzer": "lucene.standard",
        "type": "string",
        "norms": "omit",
      }
    },
    "type": "document"
  },
  "settings": {
    "fields": {
      "description": {
        "analyzer": "lucene.standard",
        "searchAnalyzer": "lucene.standard",
        "type": "string",
        "norms": "omit"
      },
      "title": {
        "analyzer": "lucene.standard",
        "searchAnalyzer": "lucene.standard",
        "type": "string",
        "norms": "omit"
      }
    },
    "type": "document"
  }
}
EOF

  search_analyzer = "lucene.standard"
}

Steps to Reproduce

  1. terraform init
  2. terraform apply

Expected Behavior

the existing index should get updated

Actual Behavior

crash dump

Crash Output

https://gist.github.com/ppiankov/2ed7249c41f942bdf9f179fd2e8bc3fa

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions