Skip to content

Commit

Permalink
added cart db creation in terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
abidknashtech committed Nov 17, 2023
1 parent 9fb8cbe commit b8f68a8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 22 deletions.
22 changes: 0 additions & 22 deletions cart-service/src/main/java/com/nashtech/car/cart/WebConfig.java

This file was deleted.

5 changes: 5 additions & 0 deletions deployment/gcpresources/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ resource "google_sql_database" "shipment_db" {
project = var.app_project
instance = google_sql_database_instance.my_sql.name
}
resource "google_sql_database" "cart_db" {
name = var.cart_db_name
project = var.app_project
instance = google_sql_database_instance.my_sql.name
}

# create user
resource "random_id" "user_password" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ variable shipment_db_name {
description = "Name of the default database to create"
default = "shipment_db"
}

# cart database
variable cart_db_name {
description = "Name of the default database to create"
default = "cart_db"
}

# user settings
variable user_name {
description = "The name of the default user"
Expand Down

0 comments on commit b8f68a8

Please sign in to comment.