hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.36k stars 1.75k forks source link

Firestore: Add support for configuring backup schedules #15790

Closed IchordeDionysos closed 1 year ago

IchordeDionysos commented 1 year ago

Community Note

Description

Right now it's not possible to configure Firestore backup schedules using Terraform. To effectively configure Firestore via Terraform this is an essential feature.

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_firestore_backup_schedule" "daily_backup" {
  project = "my-project-name"
  database = "(default)"
  retention = "7d"

  daily_recurrence {}
}

resource "google_firestore_backup_schedule" "weekly_backup" {
  project = "my-project-name"
  database = "(default)"
  retention = "7d"

  weekly_recurrence {
    day = "MONDAY"
  }
}

In addition, the following attributes need to be returned:

google_firestore_backup_schedule.daily_backup.name
google_firestore_backup_schedule.daily_backup.create_time
google_firestore_backup_schedule.daily_backup.update_time

References

https://cloud.google.com/firestore/docs/reference/rest/v1/projects.databases.backupSchedules

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.