Skip to content

Instantly share code, notes, and snippets.

@tomlarkworthy
Created April 9, 2020 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomlarkworthy/b839d4d93cebe59c718572939f12ca10 to your computer and use it in GitHub Desktop.
Save tomlarkworthy/b839d4d93cebe59c718572939f12ca10 to your computer and use it in GitHub Desktop.
resource "google_sql_database_instance" "camunda-db" {
name = "camunda-db-postgres"
database_version = "POSTGRES_11"
region = local.config.region
settings {
# Very small instance for testing.
tier = "db-f1-micro"
ip_configuration {
ipv4_enabled = true
}
}
}
resource "google_sql_user" "user" {
name = "camunda"
instance = google_sql_database_instance.camunda-db.name
password = "futurice"
}
resource "google_sql_database" "database" {
name = "camunda"
instance = google_sql_database_instance.camunda-db.name
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment