Scalingo / terraform-provider-scalingo

Terraform provider to provision Scalingo applications and databases
Mozilla Public License 2.0
10 stars 3 forks source link

[Resource Addon][Feature] Add Maintenance Windows and Periodic Backups Config #170

Open josephpage opened 1 year ago

josephpage commented 1 year ago

Now that it's implemented in go-scalingo, we can add maintenance windows and periodic backups configuration here! (https://github.com/Scalingo/go-scalingo/pull/339)

Preview :

resource "scalingo_addon" "redis" {
  provider_id        = "scalingo-redis"
  plan               = "redis-sandbox"
  app                = scalingo_app.test_app.id
  database_features  = ["force-ssl", "redis-aof"]

  # run the maintenance only on Sundays at approximately 2am
  maintenance_window = {
    weekday_utc       = 7
    starting_hour_utc = 2 
  }

  # backup database every day at 1am, disabled if empty or null
  periodic_backups_scheduled_at = [1]
}

Sounds great! I can't wait!

Soulou commented 1 year ago

@josephpage Feature is not yet globally available, it will be added to the provider once done :-D (You're so reactive)

josephpage commented 2 months ago

Hello @Soulou, I've just added the "Periodic Backups Config" to the Issue, which I'd also like to see implemented on the provider. I hope it happens !