-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document default and third party providers in YAML reference #12339
Conversation
@@ -116,23 +116,34 @@ There are at least two reasons to explicitly define providers in YAML, or explic | |||
1. Using explicit versions enables pinning the dependencies used, a technique used to improve build reliability. | |||
2. Using explicit providers enables controlling the options for providers used by each resource, as described in [Unlock Programmatic Control by Disabling Default Providers](/blog/disable-default-providers/). | |||
|
|||
#### Resource version | |||
If a specific provider version is necessary, we prefer the approaches in the order described here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want users to fall into "pit of success" here, a program with default providers is more likely to be correct than one with explicit providers passed to multiple resources or setting these options on individual resources.
#### Explicit provider | ||
|
||
To create an explicit provider instance, preferably with a specific version, use the [`resources`](#resources) section. For the `type` property, prefix the name of the provider with `pulumi:providers`. | ||
To declare an explicit provider instance for specific resources, declare a provider resource the [`resources`](#resources) section. For the `type` property, prefix the name of the provider with `pulumi:providers`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bit of a nit fixed here, Pulumi programs don't create resources, they declare them.
Your site preview for commit 71fe48b is ready! 🎉 http://www-testing-pulumi-docs-origin-pr-12339-71fe48b4.s3-website.us-west-2.amazonaws.com. |
Proposed changes
Documents how to set a default provider for multiple resources and how to use
pluginDownloadURL
with third party providers, whether community or customer managed.