func Reboot(ec2Ref *ec2.EC2, instance Instance) error { logger.Println("Rebooting instance", instance.Id) _, err := ec2Ref.RebootInstances(instance.InstanceId) return err }