Skip to content

Commit

Permalink
Change storage from postgres to S3
Browse files Browse the repository at this point in the history
  • Loading branch information
driverdan committed Feb 13, 2019
1 parent 73d7eca commit 52fd259
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 39 deletions.
24 changes: 12 additions & 12 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
{
"name": "vault server",
"description": "deploy a dev vault server to heroku",
"repository": "https://github.com/pallavkothari/vault",
"repository": "https://github.com/crowdbotics/heroku-vault",
"keywords": ["vault", "server"],
"env": {
"AWS_ACCESS_KEY_ID": {
"required": true
},
"AWS_SECRET_ACCESS_KEY": {
"required": true
},
"AWS_S3_BUCKET": {
"required": true
}
},
"buildpacks": [
{
"url": "https://github.com/iAnanich/heroku-buildpack-vault"
Expand All @@ -11,17 +22,6 @@
"url": "https://github.com/pallavkothari/heroku-buildpack-nginx"
}
],
"addons": [
{
"plan": "heroku-postgresql",
"options": {
"version": "9.5"
}
}
],
"scripts": {
"postdeploy": "psql ${DATABASE_URL} -q -f vault-kv.sql"
},
"formation": {
"web": {
"quantity": 1,
Expand Down
12 changes: 0 additions & 12 deletions aws-policy.json

This file was deleted.

9 changes: 3 additions & 6 deletions dev-config.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/bin/bash
#!/bin/bash

set -e
set -e

cat << EOF
disable_mlock = true
storage "postgresql" {
connection_url = "${DATABASE_URL:?}"
storage "s3" {
}
listener "tcp" {
Expand All @@ -15,5 +14,3 @@ listener "tcp" {
}
EOF


9 changes: 0 additions & 9 deletions vault-kv.sql

This file was deleted.

0 comments on commit 52fd259

Please sign in to comment.