package main

import (
	"fmt"

	"go.skia.org/infra/go/gce"
	"go.skia.org/infra/go/gce/server"
)

func SKFEBase(name, ipAddress string) *gce.Instance {
	vm := server.Server20170613(name)
	vm.DataDisk = nil
	vm.ExternalIpAddress = ipAddress
	vm.MachineType = gce.MACHINE_TYPE_STANDARD_4
	vm.Metadata["owner_primary"] = "stephana"
	vm.Metadata["owner_secondary"] = "jcgregorio"
	return vm
}

func Prod(num int, ip string) *gce.Instance {
	return SKFEBase(fmt.Sprintf("skia-skfe-%d", num), ip)
}

func main() {
	server.Main(gce.ZONE_DEFAULT, map[string]*gce.Instance{
		"prod-1": Prod(1, "104.154.112.11"),
		"prod-2": Prod(2, "104.154.112.103"),
	})
}

package main

import (
	"fmt"

	"go.skia.org/infra/go/gce"
	"go.skia.org/infra/go/gce/server"
)

func SKFEBase(name string) *gce.Instance {
	vm := server.Server20170613(name)
	vm.DataDisk = nil
	vm.MachineType = gce.MACHINE_TYPE_STANDARD_4
	vm.Metadata["owner_primary"] = "stephana"
	vm.Metadata["owner_secondary"] = "jcgregorio"
	return vm
}

func Prod(num int) *gce.Instance {
	return SKFEBase(fmt.Sprintf("skia-skfe-%d", num))
}

func main() {
	server.Main(gce.ZONE_DEFAULT, map[string]*gce.Instance{
		"prod-1": Prod(1),
		"prod-2": Prod(2),
	})
}

Use ephemeral IPs for skfe-{1,2}
Use ephemeral IPs for skfe-{1,2}

Bug: skia:6745
Change-Id: Iabd18d033845da02650f97653d2cb8b95330a2d8
Reviewed-on: https://skia-review.googlesource.com/39503
Commit-Queue: Ravi Mistry <9fa2e7438b8cb730f96b74865492597170561628@google.com>
Reviewed-by: Stephan Altmueller <43343ec95731c0e8daa7359daf7f2f3935582b24@google.com>
