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.28k stars 1.72k forks source link

Add support for Future Reservations in Compute Engine: `google_compute_future_reservation` #18489

Open scott-whitbread-db opened 2 months ago

scott-whitbread-db commented 2 months ago

Community Note

Description

Recently, Google released new features in reservations that allows users to make 'Future Reservations' for Google Compute Engine (GCE) resources via the usual methods (console, gcloud, REST). This request is to add in these new features and fields for future reservations into the existing terraform resource (google_compute_reservation).

More details on Future Reservations can be found here - https://cloud.google.com/compute/docs/instances/future-reservations-overview

New or Affected Resource(s)

google_compute_reservation

Potential Terraform Configuration

References

b/303690299

SarahFrench commented 2 months ago

Note from triage: the Beta version of the Compute API separates futureReservations from reservations, the latter being what google_compute_reservation manages. This suggests a new resource google_compute_future_reservation would be needed: https://cloud.google.com/compute/docs/reference/rest/beta/futureReservations

Edit 2024-09-04: futureReservations is present in the GA API now too