Open kuisathaverat opened 2 years ago
This is currently not supported with the provider. Hence its not a bug.
indeed it is half supported and we are using it, you have to set the trust relationship between the deployments, and use the following configuration in the Terrafrom file of the new deployments:
elasticsearch {
autoscale = true
trust_account {
account_id = "1234566789"
trust_all = true
}
}
then you can use the API to add the new remote cluster, this is the part is missing in the terraform provider
curl -L -X PUT -u 'username:password' -H 'Content-Type: application/json' 'https://example.us-east-1.aws.found.io/_cluster/settings' -d ' {
"persistent": {
"cluster": {
"remote": {
"new_remote_cluster": {
"skip_unavailable": false,
"mode": "proxy",
"proxy_address": "example-1.us-east-1.aws.found.io:9400",
"proxy_socket_connections": 3,
"server_name": "example-1.us-east-1.aws.found.io",
"seeds": null,
"node_connections": null
}
}
}
}
}'
We are interested in slightly different modification of this. We would like to configure CCR/CCS with a Elasticsearch installation that is not a part of Elastic Cloud and is self-hosted. The self-hosted Elasticsearch would be the remote one with the leader index.
Readiness Checklist
Expected Behavior
When you configure a remote cluster in the same organization(or a different organization that you trust) a remote cluster is configured to use CCS.
Current Behavior
If you configure a remote cluster where the remote cluster is in a different organization the deployment fails with the following error:
Sample configuration snippet
checking the traces seems that these are the request that failed:
Terraform definition
Steps to Reproduce
Context
Possible Solution
Your Environment