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: {"ok":false,"message":"The requested resource could not be found."} #887

Open
eugeniugoncearuc opened this issue Jan 31, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@eugeniugoncearuc
Copy link

eugeniugoncearuc commented Jan 31, 2025

Hi,

I'm trying to create multiple repositories within elastic with the following resource:

resource "ec_snapshot_repository" "repositories" { for_each = local.repositories name = each.value.name s3 = { bucket = each.value.name access_key = each.value.access_key secret_key = each.value.secret_key region = var.region } }

This have ERRORS:

│ Error: {"ok":false,"message":"The requested resource could not be found."}

│ with module.cache.ec_snapshot_repository.repositories["es_backup"],
│ /main.tf line 561, in resource "ec_snapshot_repository" "repositories":
│ 561: resource "ec_snapshot_repository" "repositories" {

│ {"ok":false,"message":"The requested resource could not be found."}

Question:
How to reference to the resource itself the deployment?
I'm expecting that in the end I would have the repositories itself created inside Elastic Deployment.

I succeeded into creating the repositories + policies in a shell script as per docs:
https://github.com/elastic/terraform-provider-ec/blob/master/examples/deployment_with_init/es_config.sh

  1. Can this resource simulate this behaviour?
  2. Would there be also development on defining the policies as well in TF for elastic cloud?

Best regards

@eugeniugoncearuc eugeniugoncearuc added the bug Something isn't working label Jan 31, 2025
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

1 participant