diff --git a/third_party/terraform/resources/resource_compute_instance_template.go b/third_party/terraform/resources/resource_compute_instance_template.go index 3c812234b82d..191e315d5f70 100644 --- a/third_party/terraform/resources/resource_compute_instance_template.go +++ b/third_party/terraform/resources/resource_compute_instance_template.go @@ -598,6 +598,9 @@ func buildDisks(d *schema.ResourceData, config *Config) ([]*computeBeta.Attached disk.AutoDelete = d.Get(prefix + ".auto_delete").(bool) if v, ok := d.GetOk(prefix + ".boot"); ok { + if v.(bool) && i != 0 { + return nil, fmt.Errorf("Only the first disk specified in instance_template can be a boot disk") + } disk.Boot = v.(bool) }