Exemple #1
0
func newCloudFormationCustomResourceProvisioner(db *empire.DB, c *cli.Context) (*cloudformation.CustomResourceProvisioner, error) {
	ctx, err := newRootContext(c)
	if err != nil {
		return nil, err
	}

	p := cloudformation.NewCustomResourceProvisioner(db.DB.DB(), newConfigProvider(c))
	p.QueueURL = c.String(FlagCustomResourcesQueue)
	p.Context = ctx
	return p, nil
}
Exemple #2
0
func newCloudFormationCustomResourceProvisioner(e *empire.Empire, c *Context) *cloudformation.CustomResourceProvisioner {
	p := cloudformation.NewCustomResourceProvisioner(e, c)
	p.QueueURL = c.String(FlagCustomResourcesQueue)
	p.Context = c
	return p
}