Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot create index with opensearch serverless collection #195

Closed
sfloresk opened this issue Jun 14, 2024 · 4 comments
Closed

[BUG] Cannot create index with opensearch serverless collection #195

sfloresk opened this issue Jun 14, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@sfloresk
Copy link

What is the bug?

Cannot create index with opensearch serverless collection

How can one reproduce the bug?

provider "opensearch" {
  url = "OPENSEARCH_SERVERLESS_COLLECTION_ENDPOINT"
}


resource "opensearch_index" "test-simple-index" {
  name               = "terraform-test"
  number_of_shards   = "1"
  number_of_replicas = "1"
  mappings           = <<EOF
{
  "properties": {
    "name": {
      "type": "text"
    }
  }
}
EOF
}

On terraform apply:

╷
│ Error: EOF
│ 
│   with opensearch_index.test-simple-index,
│   on main.tf line 451, in resource "opensearch_index" "test-simple-index":
│  451: resource "opensearch_index" "test-simple-index" {
│ 
╵

What is the expected behavior?

The index to get created

What is your host/environment?

Reproduced in Mac OS and Linux environments

Do you have any screenshots?

N/A

Do you have any additional context?

The problem seems to be solved if I use the latest code (cloning the repo, building and then using TF_REATTACH_PROVIDERS env variable before "terraform apply"

It seems that this problem will be solved in the next release, do you have an estimated date on when the next release will be published?

@sfloresk sfloresk added bug Something isn't working untriaged labels Jun 14, 2024
@prudhvigodithi
Copy link
Member

[Triage]
Adding @rblcoder looks to me like this bug should be fixed in the upcoming release v2.2.2, can you please confirm and if so share the fixed PR here ?
Thank you

@rblcoder
Copy link
Collaborator

Yes @prudhvigodithi , here is the PR #180

@prudhvigodithi
Copy link
Member

Thanks @rblcoder, closing this issue, @sfloresk please feel-free to re-open if required.

@sfloresk
Copy link
Author

Working as expected using the 2.3.0 release. Thank you!

@sfloresk sfloresk changed the title [BUG] [BUG] Cannot create index with opensearch serverless collection Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants