Skip to content
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

Merged
merged 4 commits into from
Jul 23, 2024

Conversation

AaronFriel
Copy link
Contributor

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.

@@ -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.
Copy link
Contributor Author

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`.
Copy link
Contributor Author

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.

@pulumi-bot
Copy link
Collaborator

@AaronFriel AaronFriel merged commit 4b44a44 into master Jul 23, 2024
7 checks passed
@AaronFriel AaronFriel deleted the AaronFriel-patch-1 branch July 23, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants