terraform-google-vm
terraform-google-vm copied to clipboard
feat(template): Adds provisioning_model to support SPOT preemptible instances
Provider version 4.11.0 added field provisioning_model to scheduling section.
This field provides access to https://cloud.google.com/spot-vms
Unfortunately API does not support value to be set to STANDARD when preemptible is true
Error: Error creating instance template: googleapi: Error 400: Invalid value for field 'resource.properties.scheduling.provisioningModel': 'STANDARD'. For preemptible, only allowed provisioning_model value is SPOT., invalid
SPOT instances are a good way to save some costs when applications supports this which is quite common on autoscaling instances.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
Thanks for the PR! 🚀
✅ Lint checks have passed.
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days