famous-jelly-72366
02/16/2023, 10:40 AMgreat-sunset-355
02/16/2023, 12:36 PMfamous-jelly-72366
02/16/2023, 12:37 PM{providers: {aws: myProvider} }
, always errors saying getRegion tries using default providergreat-sunset-355
02/16/2023, 12:39 PMsynced-folder
code is just not well written with custom providers in mind.
So you have to fork it and fix it so that you can pass your provider in 😞awsx
and all pre-built components unfortunatelyfamous-jelly-72366
02/16/2023, 12:40 PMgreat-sunset-355
02/16/2023, 12:41 PMfamous-jelly-72366
02/16/2023, 12:41 PMgreat-sunset-355
02/16/2023, 12:42 PMparent
with all resources inside the component resource otherwise they'll try to spawn default providerfamous-jelly-72366
02/16/2023, 12:43 PMgreat-sunset-355
02/16/2023, 12:44 PMfamous-jelly-72366
02/16/2023, 12:46 PMgreat-sunset-355
02/16/2023, 12:47 PMawsnative
or gcp native
pulumi of sadnessfamous-jelly-72366
02/16/2023, 12:48 PMawsnative
a chance on new project ... but couldn't even build a basic VPC without running into things that weren't supported yetgreat-sunset-355
02/16/2023, 12:51 PMfamous-jelly-72366
02/16/2023, 12:51 PMgreat-sunset-355
02/16/2023, 12:53 PMexport function registerAutoTags(autoTags: Record<string, string>): void {
if (!pulumi.runtime.getStackResource()) {
return;
}
pulumi.runtime.registerStackTransformation((args) => {
if ("tags" in args.props) {
args.props["tags"] = { ...args.props["tags"], ...autoTags };
return { props: args.props, opts: args.opts };
}
return undefined;
});
}
limited-rainbow-51650
02/16/2023, 1:59 PMaws.getRegion()
call here:
https://github.com/pulumi/pulumi-synced-folder/blob/main/provider/cmd/pulumi-resource-synced-folder/s3-bucket-folder.ts#L39famous-jelly-72366
02/16/2023, 2:00 PMlimited-rainbow-51650
02/16/2023, 2:00 PMfamous-jelly-72366
02/16/2023, 2:35 PMgreat-sunset-355
02/16/2023, 2:58 PMlimited-rainbow-51650
02/16/2023, 9:58 PMfamous-jelly-72366
02/20/2023, 8:29 AMlimited-rainbow-51650
02/26/2023, 8:34 PMfamous-jelly-72366
02/27/2023, 7:34 AMlimited-rainbow-51650
02/27/2023, 7:51 AMproviders
(plural) resource option.famous-jelly-72366
02/27/2023, 7:53 AMprovider: myProvider
and the synced_folder had something like: parent: myBucket
limited-rainbow-51650
02/27/2023, 7:54 AMfamous-jelly-72366
02/27/2023, 7:55 AMlimited-rainbow-51650
02/27/2023, 7:56 AMfamous-jelly-72366
02/27/2023, 7:57 AMaws
how would I easily be able to realize that this wouldn't work with S3 bucket? To me (as the user of the aws package) a S3 bucket is just a resource like a VPClimited-rainbow-51650
02/27/2023, 8:02 AMparent
of each child resource to it’s wrapping component resource, you only have to pass your custom provider to the component and the provider lookup mechanism will do it’s magic.famous-jelly-72366
02/27/2023, 8:04 AM