diff --git a/Makefile b/Makefile index 908be4e..65c892f 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/main.tf b/main.tf index 39950ee..5b986c7 100644 --- a/main.tf +++ b/main.tf @@ -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" diff --git a/variables.tf b/variables.tf index e2eec79..372de86 100644 --- a/variables.tf +++ b/variables.tf @@ -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 {