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
new Provider(name: string, args: ProviderArgs, opts?: CustomResourceOptions);
def Provider(resource_name: str, opts: Optional[ResourceOptions] = None, add_address_to_env: Optional[str] = None, address: Optional[str] = None, auth_logins: Optional[Sequence[ProviderAuthLoginArgs]] = None, ca_cert_dir: Optional[str] = None, ca_cert_file: Optional[str] = None, client_auths: Optional[Sequence[ProviderClientAuthArgs]] = None, headers: Optional[Sequence[ProviderHeaderArgs]] = None, max_lease_ttl_seconds: Optional[int] = None, max_retries: Optional[int] = None, namespace: Optional[str] = None, skip_tls_verify: Optional[bool] = None, token: Optional[str] = None, token_name: Optional[str] = None)
func NewProvider(ctx *Context, name string, args ProviderArgs, opts ...ResourceOption) (*Provider, error)
public Provider(string name, ProviderArgs args, 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:
- Address string
URL of the root of the target Vault server.
- Token string
Token to use to authenticate to Vault.
- Add
Address stringTo Env If true, adds the value of the
address
argument to the Terraform process environment.- Auth
Logins List<ProviderAuth Login Args> Login to vault with an existing auth method using auth/
/login - Ca
Cert stringDir Path to directory containing CA certificate files to validate the server’s certificate.
- Ca
Cert stringFile Path to a CA certificate file to validate the server’s certificate.
- Client
Auths List<ProviderClient Auth Args> Client authentication credentials.
- Headers
List<Provider
Header Args> The headers to send with each Vault request.
- Max
Lease intTtl Seconds Maximum TTL for secret leases requested by this provider It can also be sourced from the following environment variable:
TERRAFORM_VAULT_MAX_TTL
- Max
Retries int Maximum number of retries when a 5xx error code is encountered. It can also be sourced from the following environment variable:
VAULT_MAX_RETRIES
- Namespace string
The namespace to use. Available only for Vault Enterprise
- Skip
Tls boolVerify Set this to true only if the target Vault server is an insecure development instance. It can also be sourced from the following environment variable:
VAULT_SKIP_VERIFY
- Token
Name string Token name to use for creating the Vault child token.
- Address string
URL of the root of the target Vault server.
- Token string
Token to use to authenticate to Vault.
- Add
Address stringTo Env If true, adds the value of the
address
argument to the Terraform process environment.- Auth
Logins []ProviderAuth Login Login to vault with an existing auth method using auth/
/login - Ca
Cert stringDir Path to directory containing CA certificate files to validate the server’s certificate.
- Ca
Cert stringFile Path to a CA certificate file to validate the server’s certificate.
- Client
Auths []ProviderClient Auth Client authentication credentials.
- Headers
[]Provider
Header The headers to send with each Vault request.
- Max
Lease intTtl Seconds Maximum TTL for secret leases requested by this provider It can also be sourced from the following environment variable:
TERRAFORM_VAULT_MAX_TTL
- Max
Retries int Maximum number of retries when a 5xx error code is encountered. It can also be sourced from the following environment variable:
VAULT_MAX_RETRIES
- Namespace string
The namespace to use. Available only for Vault Enterprise
- Skip
Tls boolVerify Set this to true only if the target Vault server is an insecure development instance. It can also be sourced from the following environment variable:
VAULT_SKIP_VERIFY
- Token
Name string Token name to use for creating the Vault child token.
- address string
URL of the root of the target Vault server.
- token string
Token to use to authenticate to Vault.
- add
Address stringTo Env If true, adds the value of the
address
argument to the Terraform process environment.- auth
Logins ProviderAuth Login[] Login to vault with an existing auth method using auth/
/login - ca
Cert stringDir Path to directory containing CA certificate files to validate the server’s certificate.
- ca
Cert stringFile Path to a CA certificate file to validate the server’s certificate.
- client
Auths ProviderClient Auth[] Client authentication credentials.
- headers
Provider
Header[] The headers to send with each Vault request.
- max
Lease numberTtl Seconds Maximum TTL for secret leases requested by this provider It can also be sourced from the following environment variable:
TERRAFORM_VAULT_MAX_TTL
- max
Retries number Maximum number of retries when a 5xx error code is encountered. It can also be sourced from the following environment variable:
VAULT_MAX_RETRIES
- namespace string
The namespace to use. Available only for Vault Enterprise
- skip
Tls booleanVerify Set this to true only if the target Vault server is an insecure development instance. It can also be sourced from the following environment variable:
VAULT_SKIP_VERIFY
- token
Name string Token name to use for creating the Vault child token.
- address str
URL of the root of the target Vault server.
- token str
Token to use to authenticate to Vault.
- add_
address_ strto_ env If true, adds the value of the
address
argument to the Terraform process environment.- auth_
logins Sequence[ProviderAuth Login Args] Login to vault with an existing auth method using auth/
/login - ca_
cert_ strdir Path to directory containing CA certificate files to validate the server’s certificate.
- ca_
cert_ strfile Path to a CA certificate file to validate the server’s certificate.
- client_
auths Sequence[ProviderClient Auth Args] Client authentication credentials.
- headers
Sequence[Provider
Header Args] The headers to send with each Vault request.
- max_
lease_ intttl_ seconds Maximum TTL for secret leases requested by this provider It can also be sourced from the following environment variable:
TERRAFORM_VAULT_MAX_TTL
- max_
retries int Maximum number of retries when a 5xx error code is encountered. It can also be sourced from the following environment variable:
VAULT_MAX_RETRIES
- namespace str
The namespace to use. Available only for Vault Enterprise
- skip_
tls_ boolverify Set this to true only if the target Vault server is an insecure development instance. It can also be sourced from the following environment variable:
VAULT_SKIP_VERIFY
- 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
- 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 Mapping[str, str]
ProviderClientAuth
ProviderHeader
Package Details
- Repository
- https://github.com/pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vault
Terraform Provider.