terraform-google-vm icon indicating copy to clipboard operation
terraform-google-vm copied to clipboard

feat(template): Adds provisioning_model to support SPOT preemptible instances

Open gcaracuel opened this issue 3 years ago • 2 comments

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.

gcaracuel avatar Aug 17 '22 15:08 gcaracuel

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.

google-cla[bot] avatar Aug 17 '22 15:08 google-cla[bot]

Thanks for the PR! 🚀
✅ Lint checks have passed.

comment-bot-dev avatar Aug 17 '22 15:08 comment-bot-dev

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

github-actions[bot] avatar Dec 18 '22 23:12 github-actions[bot]