code: func NewScheduler(db *sql.DB, config client.ConfigProvider) *Scheduler {
  	return &Scheduler{
  		cloudformation: cloudformation.New(config),
  		ecs:            ecsWithCaching(&ECS{ecs.New(config)}),
  		s3:             s3.New(config),
  		ec2:            ec2.New(config),
  		db:             db,
  		after:          time.After,
  	}
  }
docs: // NewScheduler returns a new Scheduler instance.