You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# module.elasticcloud.ec_snapshot_repository.repository will be created
+ resource "ec_snapshot_repository" "repository" {
+ id = (known after apply)
+ name = "test-repo"
+ s3 = {
+ access_key = "testkey"
+ bucket = "test-bucket"
+ path_style_access = false
+ region = "eu-west-1"
+ secret_key = (sensitive value)
+ server_side_encryption = true
}
}
when applying it, I get the following error:
module.elasticcloud.ec_snapshot_repository.repository: Creating...
│ Error: {"ok":false,"message":"The requested resource could not be found."}
│
│ with module.elasticcloud.ec_snapshot_repository.repository,
│ on ../modules/elastic-cloud-deployment/main.tf line 33, in resource "ec_snapshot_repository" "repository":
│ 33: resource "ec_snapshot_repository" "repository" {
│
│ {"ok":false,"message":"The requested resource could not be found."}
I tried to use the generic config (the role_arn was edited):
For the above terraform code I get the following plan (the role_arn was edited):
# module.elasticcloud.ec_snapshot_repository.repository will be created
+ resource "ec_snapshot_repository" "repository" {
+ generic = {
+ settings = jsonencode(
{
+ base_path = "somepath"
+ bucket = "test-bucket"
+ client = "test"
+ compress = "true"
+ region = "eu-west-1"
+ role_arn = "arn:aws:iam::XXXXXXXXXXX:role/my-role"
+ server_side_encryption = "true"
}
)
+ type = "s3"
}
+ id = (known after apply)
+ name = "test-repo"
}
For the generic config I have also created the ec_deployment_elasticsearch_keystore for both s3.client.test.access_key and s3.client.test.secret_key, which have been created successfully.
But the generic config still throws the exact same error
module.elasticcloud.ec_snapshot_repository.repository: Creating...
│ Error: {"ok":false,"message":"The requested resource could not be found."}
│
│ with module.elasticcloud.ec_snapshot_repository.repository,
│ on ../modules/elastic-cloud-deployment/main.tf line 33, in resource "ec_snapshot_repository" "repository":
│ 33: resource "ec_snapshot_repository" "repository" {
│
│ {"ok":false,"message":"The requested resource could not be found."}
The text was updated successfully, but these errors were encountered:
Elastic EC provider version: 0.12.2
I have an
ec_deployment
up and running, created by terraformbut adding the
ec_snapshot_repository
with the following config, it failsSnapshot Repository terraform code:
When applying, I get this the following plan:
when applying it, I get the following error:
I tried to use the generic config (the
role_arn
was edited):For the above terraform code I get the following plan (the
role_arn
was edited):For the generic config I have also created the
ec_deployment_elasticsearch_keystore
for boths3.client.test.access_key
ands3.client.test.secret_key
, which have been created successfully.But the generic config still throws the exact same error
The text was updated successfully, but these errors were encountered: