It is time to say goodbye: This version of Elastic Cloud Enterprise has reached end-of-life (EOL) and is no longer supported.
The documentation for this version is no longer being maintained. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Snapshotting to Google Cloud Storage (GCS) for Elasticsearch 6.x
editSnapshotting to Google Cloud Storage (GCS) for Elasticsearch 6.x
editSnapshotting to GCS isn’t currently supported in the Cloud UI, but there is a workaround using Application Default Credentials (https://developers.google.com/identity/protocols/application-default-credentials). This method uses keys built in to your GCP instances to login to GCS.
To use the Application Default Credentials it is necessary to make a small change to the Instance Template when you create your GCP instances Google Cloud Platform Configuration.
This method only works for Elasticsearch clusters at version 6.x. If you are using an earlier Elasticsearch version you must upgrade first.
-
Create a Google instance template with access to the Storage API:
When creating an Instance Template, under Identity and API access you need to set either: Allow full access to all Cloud APIs or Set access for each API and select Read Write under Storage
+ image::images/ece-gcp-default-auth.png[Creating an instance template with default auth]
- Log into the Cloud UI.
-
Add the snapshot repository configuration through the Advanced Cluster Configuration:
-
Create a deployment with an Elasticsearch cluster that has the
repository-gcs
plugin enabled. - From your deployment menu, go to the Edit page then go to the bottom of the page and click advanced Elasticsearch configuration.
-
In the Data text area, carefully edit the JSON to add a top-level
gcp_resources
configuration object with your bucket name for snapshotting (test-ece-auth in this case). Also set enabled under snapshot to true.:
-
Create a deployment with an Elasticsearch cluster that has the
- Press the Data section Save button to store the updated cluster data and trigger a plan change.
The cluster should then have snapshots enabled and will begin snapshotting either immediately (if skip_snapshot is false in the plan) or in 30 minutes (the default snapshot interval).