Provider

The provider type for the vault package. By default, resources use package-wide configuration settings, however an explicit Provider instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the documentation for more information.

Create a Provider Resource

def Provider(resource_name, opts=None, add_address_to_env=None, address=None, auth_logins=None, ca_cert_dir=None, ca_cert_file=None, client_auths=None, headers=None, max_lease_ttl_seconds=None, max_retries=None, namespace=None, skip_tls_verify=None, token=None, token_name=None, __props__=None);
func NewProvider(ctx *Context, name string, args *ProviderArgs, opts ...ResourceOption) (*Provider, error)
public Provider(string name, ProviderArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ProviderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ProviderArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ProviderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Provider Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Provider resource accepts the following input properties:

AddAddressToEnv string

If true, adds the value of the address argument to the Terraform process environment.

Address string

URL of the root of the target Vault server.

AuthLogins List<ProviderAuthLoginArgs>

Login to vault with an existing auth method using auth//login

CaCertDir string

Path to directory containing CA certificate files to validate the server’s certificate.

CaCertFile string

Path to a CA certificate file to validate the server’s certificate.

ClientAuths List<ProviderClientAuthArgs>

Client authentication credentials.

Headers List<ProviderHeaderArgs>

The headers to send with each Vault request.

MaxLeaseTtlSeconds int

Maximum TTL for secret leases requested by this provider

MaxRetries int

Maximum number of retries when a 5xx error code is encountered.

Namespace string

The namespace to use. Available only for Vault Enterprise

SkipTlsVerify bool

Set this to true only if the target Vault server is an insecure development instance.

Token string

Token to use to authenticate to Vault.

TokenName string

Token name to use for creating the Vault child token.

AddAddressToEnv string

If true, adds the value of the address argument to the Terraform process environment.

Address string

URL of the root of the target Vault server.

AuthLogins []ProviderAuthLogin

Login to vault with an existing auth method using auth//login

CaCertDir string

Path to directory containing CA certificate files to validate the server’s certificate.

CaCertFile string

Path to a CA certificate file to validate the server’s certificate.

ClientAuths []ProviderClientAuth

Client authentication credentials.

Headers []ProviderHeader

The headers to send with each Vault request.

MaxLeaseTtlSeconds int

Maximum TTL for secret leases requested by this provider

MaxRetries int

Maximum number of retries when a 5xx error code is encountered.

Namespace string

The namespace to use. Available only for Vault Enterprise

SkipTlsVerify bool

Set this to true only if the target Vault server is an insecure development instance.

Token string

Token to use to authenticate to Vault.

TokenName string

Token name to use for creating the Vault child token.

addAddressToEnv string

If true, adds the value of the address argument to the Terraform process environment.

address string

URL of the root of the target Vault server.

authLogins ProviderAuthLogin[]

Login to vault with an existing auth method using auth//login

caCertDir string

Path to directory containing CA certificate files to validate the server’s certificate.

caCertFile string

Path to a CA certificate file to validate the server’s certificate.

clientAuths ProviderClientAuth[]

Client authentication credentials.

headers ProviderHeader[]

The headers to send with each Vault request.

maxLeaseTtlSeconds number

Maximum TTL for secret leases requested by this provider

maxRetries number

Maximum number of retries when a 5xx error code is encountered.

namespace string

The namespace to use. Available only for Vault Enterprise

skipTlsVerify boolean

Set this to true only if the target Vault server is an insecure development instance.

token string

Token to use to authenticate to Vault.

tokenName string

Token name to use for creating the Vault child token.

add_address_to_env str

If true, adds the value of the address argument to the Terraform process environment.

address str

URL of the root of the target Vault server.

auth_logins List[ProviderAuthLogin]

Login to vault with an existing auth method using auth//login

ca_cert_dir str

Path to directory containing CA certificate files to validate the server’s certificate.

ca_cert_file str

Path to a CA certificate file to validate the server’s certificate.

client_auths List[ProviderClientAuth]

Client authentication credentials.

headers List[ProviderHeader]

The headers to send with each Vault request.

max_lease_ttl_seconds float

Maximum TTL for secret leases requested by this provider

max_retries float

Maximum number of retries when a 5xx error code is encountered.

namespace str

The namespace to use. Available only for Vault Enterprise

skip_tls_verify bool

Set this to true only if the target Vault server is an insecure development instance.

token str

Token to use to authenticate to Vault.

token_name str

Token name to use for creating the Vault child token.

Outputs

All input properties are implicitly available as output properties. Additionally, the Provider resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Supporting Types

ProviderAuthLogin

See the input API doc for this type.

See the input API doc for this type.

See the input API doc for this type.

Path string
Namespace string
Parameters Dictionary<string, string>
Path string
Namespace string
Parameters map[string]string
path string
namespace string
parameters {[key: string]: string}
path str
namespace str
parameters Dict[str, str]

ProviderClientAuth

See the input API doc for this type.

See the input API doc for this type.

See the input API doc for this type.

CertFile string
KeyFile string
CertFile string
KeyFile string
certFile string
keyFile string
certFile str
keyFile str

ProviderHeader

See the input API doc for this type.

See the input API doc for this type.

See the input API doc for this type.

Name string
Value string
Name string
Value string
name string
value string
name str
value str

Package Details

Repository
https://github.com/pulumi/pulumi-vault
License
Apache-2.0
Notes
This Pulumi package is based on the vault Terraform Provider.