diff --git a/builder/googlecompute/config.go b/builder/googlecompute/config.go index eebea011f..dc049aa1c 100644 --- a/builder/googlecompute/config.go +++ b/builder/googlecompute/config.go @@ -73,7 +73,13 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) { } if c.ImageName == "" { - c.ImageName = "packer-{{timestamp}}" + img, err := interpolate.Render("packer-{{timestamp}}", nil) + if err != nil { + panic(err) + } + + // Default to packer-{{ unix timestamp (utc) }} + c.ImageName = img } if c.InstanceName == "" {