Skip to content

Commit

Permalink
add DB_CONNECTION env variable
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sokołowski <[email protected]>
  • Loading branch information
jakubgs committed Jul 29, 2019
1 parent 3e4faf4 commit e4bb7f6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,11 @@ secrets:
aws_access_key = \"$(shell pass cloud/AWS/access-key)\"\n\
aws_secret_key = \"$(shell pass cloud/AWS/secret-key)\"\n\
gandi_api_token = \"$(shell pass cloud/Gandi/api-token)\"\n\
dap_ps_admin_user = \"$(shell pass service/app/admin-user)\"\n\
dap_ps_admin_pass = \"$(shell pass service/app/admin-pass)\"\n\
dap_ps_smtp_user = \"$(shell pass cloud/AWS/ses/smtp-user)\"\n\
dap_ps_smtp_pass = \"$(shell pass cloud/AWS/ses/smtp-secret-key)\"\n\
dap_ps_admin_user = \"$(shell pass service/dev/app/admin-user)\"\n\
dap_ps_admin_pass = \"$(shell pass service/dev/app/admin-pass)\"\n\
dap_ps_db_uri = \"$(shell pass service/dev/mongodb/uri)\"\n\
" > terraform.tfvars

cleanup:
Expand Down
3 changes: 3 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ locals {
ADMIN_USER = "${var.dap_ps_admin_user}"
ADMIN_PASSWORD = "${var.dap_ps_admin_pass}"

/* Database */
DB_CONNECTION = "${var.dap_ps_db_uri}"

/* BlockChain */
BLOCKCHAIN_CONNECTION_POINT = "wss://ropsten.infura.io/ws/v3/8675214b97b44e96b70d05326c61fd6a"
DISCOVER_CONTRACT = "0x17e7a7330d23fc6a2ab8578a627408f815396662"
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ variable dap_ps_smtp_pass {
description = "Password for accessing AWS SES SMTP endpoint."
}

variable dap_ps_db_uri {
description = "An URI for MongoDB database including auth information."
/* https://docs.mongodb.com/manual/reference/connection-string/ */
}

/* SES FORWARDER --------------------------------*/

variable ses_forwarder_bucket_name {
Expand Down

0 comments on commit e4bb7f6

Please sign in to comment.