In a previous post we have set up the vault server on docker, but using a file backend to persist our data.
In this tutorial we will configure vault to use amazon s3 as a storage backend to persist our data for vault.
Provision S3 Bucket
Create the S3 Bucket where our data will reside:
1
|
|
Vault Config
Create the vault config, where we will provide details about our storage backend and configuration for the vault server:
1
|
|
Populate the config file with the following details, you will just need to provide your own credentials:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
Docker Compose
As we are using docker to deploy our vault server, our docker-compose.yml:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
Deploy the vault server:
1
|
|
Go ahead and create some secrets, then deploy the docker container on another host to test out the data persistence.