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

Error deleting snapshot resources manually #37

Closed
cmanzur opened this issue Jan 20, 2022 · 3 comments · Fixed by #40
Closed

Error deleting snapshot resources manually #37

cmanzur opened this issue Jan 20, 2022 · 3 comments · Fixed by #40
Assignees
Labels
bug Something isn't working

Comments

@cmanzur
Copy link

cmanzur commented Jan 20, 2022

This is a bug report:

1- Create this resource and terraform apply

resource "elasticstack_elasticsearch_snapshot_repository" "s3" {
  name = "s3"

  s3 {
    bucket = "backups"
    compress  = true
  }
}

2- Manually delete the repository from KIBANA UI.

3- Run terraform apply again

Error: Unable to get the information about snapshot repository: s3

Failed with:
{"error":{"root_cause":[{"type":"repository_missing_exception","reason":"[s3]
missing"}],"type":"repository_missing_exception","reason":"[s3]
missing"},"status":404}

Same applies for: elasticstack_elasticsearch_snapshot_lifecycle

Notes:
To use s3, you must install the plugin: bin/elasticsearch-plugin install --batch repository-s3

ES version: docker.elastic.co/elasticsearch/elasticsearch:7.16.3

@cmanzur cmanzur changed the title Error deleting elasticsearch_snapshot_repository manually Error deleting snapshot resources manually Jan 20, 2022
@olksdr olksdr self-assigned this Jan 20, 2022
@olksdr olksdr added the bug Something isn't working label Jan 20, 2022
@olksdr
Copy link
Contributor

olksdr commented Jan 20, 2022

Hey @cmanzur, thanks for reporting this issue! I'll be looking into this in the beginning of the next week.

@olksdr
Copy link
Contributor

olksdr commented Jan 25, 2022

I have a PR pending #40 to address this issue.

@olksdr
Copy link
Contributor

olksdr commented Jan 27, 2022

New version of the provider was published, see: v0.2.0

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

Successfully merging a pull request may close this issue.

2 participants