The `google_compute_resource_policy` would be created as a standalone TF resource.
e.g.
resource "google_compute_resource_policy" "weekday_hours_policy" {
name = "weekday-hours-policy"
# rest of config
When creating node_pools, we would pass a resource_policy for all the VMs within.
TL;DR
Attaching
google_compute_resource_policy
to GCEs within a Node Pool would allow us to have a sleeping schedule for all the VMs.Terraform Resources
Detailed design
When creating node_pools, we would pass a resource_policy for all the VMs within.
e.g.