https://github.com/jsok/etcd-vault-transformer
etcdctl migrate transformer for vault
https://github.com/jsok/etcd-vault-transformer
etcd vault
Last synced: about 1 year ago
JSON representation
etcdctl migrate transformer for vault
- Host: GitHub
- URL: https://github.com/jsok/etcd-vault-transformer
- Owner: jsok
- Created: 2018-07-17T07:41:41.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-17T07:50:48.000Z (almost 8 years ago)
- Last Synced: 2025-01-30T03:15:19.542Z (over 1 year ago)
- Topics: etcd, vault
- Language: Go
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# etcd-vault-transformer
An [`etcdctl migrate` transformer](https://github.com/coreos/etcd/tree/master/etcdctl#migrate-options)
to help migrate a [vault](https://www.vaultproject.io/) instance using an
[etcd v2 API storage backend](https://www.vaultproject.io/docs/configuration/storage/etcd.html) to etcd v3 API.
i.e. change `etcd_api = "v2"` to `etcd_api = "v3"`
## Build
```
glide install
go build -o etcd-vault-transformer main.go
```
## Usage
```
etcdctl migrate --data-dir=/var/etcd --transformer=etcd-vault-transformer
```
## References
* https://github.com/hashicorp/vault/blob/v0.10.1/physical/etcd/etcd2.go
* https://github.com/hashicorp/vault/issues/2862
* https://github.com/hongchaodeng/etcdupgrade/blob/master/main.go