mirror of https://github.com/pulumi/pulumi.git
6e39175f8d
This PR follows https://github.com/pulumi/pulumi/pull/17673 by adding a `configure` method to Node.js dynamic providers. The `configure` method of the `ResourceProvider` interface is called with a `ConfigureRequest` that holds the stack’s configuration, and allows the provider implementation to retrieve and store configuration values for later use. ```typescript class MyResourceProvider implements pulumi.dynamic.ResourceProvider { private password: string; async configure(req: pulumi.dynamic.ConfigureRequest): Promise<void> { this.password = req.config.require("password"); } async create(props: any): Promise<pulumi.dynamic.CreateResult> { // use self.password } } ``` --------- Co-authored-by: Will Jones <will@sacharissa.co.uk> |
||
---|---|---|
.. | ||
Pulumi.yaml | ||
index.ts | ||
package.json |