permalink |
---|
/provider/ |
provider
represents the doppler
Terraform provider config.
This package contains functions and utilities for setting up the provider using Jsonnet code.
new()
doppler.provider.new
injects a new doppler
Terraform provider
block into the root module document.
Optionally, this inserts the provider into the
required_providers terraform
sub block if
the src
and/or version
parameters are set.
Args:
doppler_token
(string
): A Doppler token, either a personal or service tokenhost
(string
): The Doppler API host (i.e. https://api.doppler.com) Whennull
, thehost
field will be omitted from the resulting object.verify_tls
(bool
): Whether or not to verify TLS Whennull
, theverify_tls
field will be omitted from the resulting object.alias
(string
): The provideralias
to set for this instance of the provider block. Whennull
, thealias
field will be omitted from the resulting provider block.src
(string
): The providersource
to set on the resultingrequired_providers
block. Ifsrc
orversion
is set and is notnull
, arequired_providers
block and entry for the provider will be injected into the document.version
(string
): The providerversion
to set on the resultingrequired_providers
block. Ifsrc
orversion
is set and is notnull
, arequired_providers
block and entry for the provider will be injected into the document.
Returns:
- A mixin object that injects the new provider (and optionally,
required_providers
block) into the root Terraform configuration.
newAttrs()
doppler.provider.
constructs a new object with attributes and blocks configured for the doppler
Terraform provider
.
Unlike doppler.provider.new, this function will not inject the provider
block into the root Terraform document. Instead, this must be passed in as the attrs
argument for the
tf.withProvider function to build a complete block.
This is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to injecting into a complete block.
Args:
doppler_token
(string
): A Doppler token, either a personal or service tokenhost
(string
): The Doppler API host (i.e. https://api.doppler.com) Whennull
, thehost
field will be omitted from the resulting object.verify_tls
(bool
): Whether or not to verify TLS Whennull
, theverify_tls
field will be omitted from the resulting object.
Returns:
- An attribute object that can be used with tf.withProvider to construct a new
doppler
provider configuration into the root Terraform configuration.