2 KiB
layout | page_title | sidebar_current | description |
---|---|---|---|
docs | Google Cloud - Storage Backends - Configuration | docs-configuration-storage-google-cloud | The Google Cloud storage backend is used to persist Vault's data in Google Cloud Storage. |
Google Cloud Storage Backend
The Google Cloud storage backend is used to persist Vault's data in Google Cloud Storage.
-
No High Availability – the Google Cloud storage backend does not support high availability.
-
Community Supported – the Google Cloud storage backend is supported by the community. While it has undergone review by HashiCorp employees, they may not be as knowledgeable about the technology. If you encounter problems with them, you may be referred to the original author.
storage "gcs" {
bucket = "my-storage-bucket"
credentials_file = "/tmp/credentials.json"
}
gcs
Parameters
-
bucket
(string: <required>)
– Specifies the name of the Google Cloud Storage bucket to use. This bucket must already exist and the provided service account must have permission to read, write, and delete from the bucket. This can also be provided via the environment variableGOOGLE_STORAGE_BUCKET
. -
credentials_file
(string: <required>)
– Specifies the path on disk to a Google Cloud Platform service account private key file in JSON format. This can also be provided via the environment variableGOOGLE_APPLICATION_CREDENTIALS
. -
max_parallel
(int: 128)
– Specifies the maximum number of concurrent requests.
gcs
Examples
Default Example
This example shows a default configuration for the Google Cloud Storage backend.
storage "gcs" {
bucket = "my-storage-bucket"
credentials_file = "/tmp/credentials.json"
}