add connection string to finance app [ci skip]
This commit is contained in:
parent
a35aeb9f7b
commit
e2efe7e681
5 changed files with 10 additions and 0 deletions
2
main.tf
2
main.tf
|
|
@ -48,6 +48,7 @@ variable "monitoring_idrac_password" {}
|
|||
variable "alertmanager_slack_api_url" {}
|
||||
variable "home_assistant_configuration" {}
|
||||
variable "shadowsocks_password" {}
|
||||
variable "finance_app_db_connection_string" {}
|
||||
variable "finance_app_monzo_client_id" {}
|
||||
variable "finance_app_monzo_client_secret" {}
|
||||
variable "finance_app_sqlite_db_path" {}
|
||||
|
|
@ -279,4 +280,5 @@ module "kubernetes_cluster" {
|
|||
finance_app_oauth_google_client_id = var.finance_app_oauth_google_client_id
|
||||
finance_app_oauth_google_client_secret = var.finance_app_oauth_google_client_secret
|
||||
finance_app_graphql_api_secret = var.finance_app_graphql_api_secret
|
||||
finance_app_db_connection_string = var.finance_app_db_connection_string
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@ variable "prod_graphql_endpoint" {
|
|||
variable "oauth_google_client_id" {}
|
||||
variable "oauth_google_client_secret" {}
|
||||
variable "graphql_api_secret" {}
|
||||
variable "db_connection_string" {
|
||||
}
|
||||
|
||||
|
||||
resource "kubernetes_namespace" "finance_app" {
|
||||
|
|
@ -100,6 +102,10 @@ resource "kubernetes_deployment" "finance_app" {
|
|||
image = "viktorbarzin/finance-app"
|
||||
name = "finance-app"
|
||||
|
||||
env {
|
||||
name = "DB_CONNECTION_STRING"
|
||||
value = var.db_connection_string
|
||||
}
|
||||
env {
|
||||
name = "MONZO_CLIENT_ID"
|
||||
value = var.monzo_client_id
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ variable "idrac_password" {}
|
|||
variable "alertmanager_slack_api_url" {}
|
||||
variable "home_assistant_configuration" {}
|
||||
variable "shadowsocks_password" {}
|
||||
variable "finance_app_db_connection_string" {}
|
||||
variable "finance_app_monzo_client_id" {}
|
||||
variable "finance_app_monzo_client_secret" {}
|
||||
variable "finance_app_sqlite_db_path" {}
|
||||
|
|
@ -271,6 +272,7 @@ module "finance_app" {
|
|||
oauth_google_client_id = var.finance_app_oauth_google_client_id
|
||||
oauth_google_client_secret = var.finance_app_oauth_google_client_secret
|
||||
graphql_api_secret = var.finance_app_graphql_api_secret
|
||||
db_connection_string = var.finance_app_db_connection_string
|
||||
}
|
||||
|
||||
module "excalidraw" {
|
||||
|
|
|
|||
Binary file not shown.
BIN
terraform.tfvars
BIN
terraform.tfvars
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue