mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
add repository to terraform
This commit is contained in:
parent
24cdd393d8
commit
4155e95725
1 changed files with 8 additions and 1 deletions
|
@ -55,7 +55,7 @@ resource "google_sql_database_instance" "petclinic" {
|
||||||
resource "google_sql_user" "users" {
|
resource "google_sql_user" "users" {
|
||||||
name = var.app
|
name = var.app
|
||||||
instance = google_sql_database_instance.petclinic.name
|
instance = google_sql_database_instance.petclinic.name
|
||||||
password = "changeme"
|
password = POSTGRES_PASSWORD
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "google_sql_database" "database" {
|
resource "google_sql_database" "database" {
|
||||||
|
@ -104,3 +104,10 @@ resource "google_compute_router_nat" "nat" {
|
||||||
filter = "ERRORS_ONLY"
|
filter = "ERRORS_ONLY"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "google_artifact_registry_repository" "petclinic_repo" {
|
||||||
|
location = "asia"
|
||||||
|
repository_id = "petclinic"
|
||||||
|
description = "Repository of petclinic app"
|
||||||
|
format = "DOCKER"
|
||||||
|
}
|
Loading…
Reference in a new issue