I notice that the yaml example section of Provider...
# yaml
f
I notice that the yaml example section of Providers in the docs is missing - does this mean it is not possible to create multiple aws:Providers (e.g. for different regions, or different aws accounts), and use them in a Pulumi.yaml file?
a
You can instantiate multiple versions of a provider in YAML, i.e.
Copy code
resources:
  aws1:
    type: pulumi:providers:aws
    defaultProvider: true
    options:
      region: us-east-1
  aws2:
    type: pulumi:providers:aws
    options:
      region: us-west-1
  bucket1:
    type: aws:s3:Bucket
    properties:
      acl: private
      tags:
        Environment: Dev
        Name: Bucket in us-east-1
  bucket2:
    type: aws:s3:Bucket
    properties:
      acl: private
      tags:
        Environment: Dev
        Name: Bucket in us-east-2
    options:
      provider: ${aws2}
How to do so is sort of explained on the YAML reference page, and on the individual provider doc itself, but agree that YAML should be on the Resource providers page
f
Thanks for the detailed answer!