This message was deleted.
# general
s
This message was deleted.
b
can you not just pass the provider through to your component resource?
p
this is what I was saying just above, but not sure if this was the "correct" way to do it
b
every resource in your Component will inherit the provider you pass, I think passing it as an opt is the right way to handle this
p
are you missing then the type for region?
Copy code
declare class Provider extends pulumi.ProviderResource {
    /**
     * Returns true if the given object is an instance of Provider.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj: any): obj is Provider;
    /**
     * The access key for API operations. You can retrieve this from the 'Security & Credentials' section of the AWS console.
     */
    readonly accessKey: pulumi.Output<string | undefined>;
    /**
     * The profile for API operations. If not set, the default profile created with `aws configure` will be used.
     */
    readonly profile: pulumi.Output<string | undefined>;
    /**
     * The secret key for API operations. You can retrieve this from the 'Security & Credentials' section of the AWS console.
     */
    readonly secretKey: pulumi.Output<string | undefined>;
    /**
     * The path to the shared credentials file. If not set this defaults to ~/.aws/credentials.
     */
    readonly sharedCredentialsFile: pulumi.Output<string | undefined>;
    /**
     * session token. A session token is only required if you are using temporary security credentials.
     */
    readonly token: pulumi.Output<string | undefined>;
    /**
     * Create a Provider resource with the given unique name, arguments, and options.
     *
     * @param name The _unique_ name of the resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param opts A bag of options that control this resource's behavior.
     */
    constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
}
for
aws.Provider
, ts complains because it's not accessible