-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
Description
Hello,
It would be nice to have different resources for database instances and the databases itself.
This would allow us to manage also the databases with Terraform directly.
Example:
locals {
zone = "ch-dk-2"
}
resource "exoscale_database_instance" "pg_prod" {
zone = local.zone
name = "pg-prod"
type = "pg"
plan = "startup-4"
maintenance_dow = "sunday"
maintenance_time = "23:00:00"
termination_protection = true
pg {
version = "13"
backup_schedule = "04:00"
}
}
resource "exoscale_database" "my_database" {
database_instance = exoscale_database_instance.pg_prod
database_name = "<DATABASE_NAME>"
}
Links from other projects:
calmyournerves, SebiSpace and tstrohmeier