Hello! In pulumi.yaml I can define: ```resources: ...
# typescript
b
Hello! In pulumi.yaml I can define:
Copy code
resources:
  providers:
    aws-provider-1:
      type: pulumi:providers:aws
      ....
    aws-provider-2:
      type: pulumi:providers:aws
      ....
etc and so forth. In typescript code when creating AWS resources how can I reference these providers that have been defined here? They're not available via the pulumi.Config API nor can I see them defined. The AI tool of course is just wrong whole sale so that's out..
b
For any other language aside YAML you must create the provider instance in your code. https://www.pulumi.com/registry/packages/aws/api-docs/provider/ and reference the respective instance via the
ResourceOptions
for resources https://www.pulumi.com/docs/concepts/options/provider/ or
InvokeOptions
for functions (data sources).
b
So to be clear, resources defined in YAML can’t be then used / referred to in most cases in Typescript? They’re scoped to just YAML references?