This message was deleted.
# general
s
This message was deleted.
b
Are you talking about passing it in as an argument or as part of the ComponentResourcOptions parameter?
I've used it as an argument before and explicitly passed it in to the child resources before and that worked
b
As part of the options was my plan
would simplify things a lot 😉
basically:
Copy code
const provider = new Provider(`Provider`, groupConfig[0])
    /**
     * Creting the group that will contain all the subsequent resources
     */
    const group = new Group(`Group`, {
        groupInfo: groupConfig,
        create: shouldCreate.group
    },{
        parent: provider,
        provider: provider        
    })

    /**
     * Network is typically a given for any deployment
     */
    const net = new Network(`Net`, {
        group: group.location,
        groupInfo: groupConfig,
        network: config.getObject("network"),
        subnet: config.getObject("subnets"),
        create: shouldCreate.network
    }, {
        parent: group,
        provider: provider
    });
b
I believe resources can inherit the provider from their parents. So since you should be setting the parent to the component resource for every member, it should get the provider
w