NomadSecretBackend
Import
Nomad secret backend can be imported using the backend
, e.g.
$ pulumi import vault:index/nomadSecretBackend:NomadSecretBackend nomad nomad
Create a NomadSecretBackend Resource
new NomadSecretBackend(name: string, args?: NomadSecretBackendArgs, opts?: CustomResourceOptions);
def NomadSecretBackend(resource_name: str, opts: Optional[ResourceOptions] = None, address: Optional[str] = None, backend: Optional[str] = None, ca_cert: Optional[str] = None, client_cert: Optional[str] = None, client_key: Optional[str] = None, default_lease_ttl_seconds: Optional[int] = None, description: Optional[str] = None, local: Optional[bool] = None, max_lease_ttl_seconds: Optional[int] = None, max_token_name_length: Optional[int] = None, max_ttl: Optional[int] = None, token: Optional[str] = None, ttl: Optional[int] = None)
func NewNomadSecretBackend(ctx *Context, name string, args *NomadSecretBackendArgs, opts ...ResourceOption) (*NomadSecretBackend, error)
public NomadSecretBackend(string name, NomadSecretBackendArgs? args = null, CustomResourceOptions? opts = null)
- name string
- The unique name of the resource.
- args NomadSecretBackendArgs
- 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 NomadSecretBackendArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NomadSecretBackendArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
NomadSecretBackend Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The NomadSecretBackend resource accepts the following input properties:
- Address string
Specifies the address of the Nomad instance, provided as “protocol://host:port” like “http://127.0.0.1:4646".
- Backend string
The unique path this backend should be mounted at. Must not begin or end with a
/
. Defaults tonomad
.- Ca
Cert string CA certificate to use when verifying the Nomad server certificate, must be x509 PEM encoded.
- Client
Cert string Client certificate to provide to the Nomad server, must be x509 PEM encoded.
- Client
Key string Client certificate key to provide to the Nomad server, must be x509 PEM encoded.
- Default
Lease intTtl Seconds Default lease duration for secrets in seconds.
- Description string
Human-friendly description of the mount for the Active Directory backend.
- Local bool
Mark the secrets engine as local-only. Local engines are not replicated or removed by replication.Tolerance duration to use when checking the last rotation time.
- Max
Lease intTtl Seconds Maximum possible lease duration for secrets in seconds.
- Max
Token intName Length Specifies the maximum length to use for the name of the Nomad token generated with Generate Credential. If omitted, 0 is used and ignored, defaulting to the max value allowed by the Nomad version.
- Max
Ttl int Maximum possible lease duration for secrets in seconds.
- Token string
Specifies the Nomad Management token to use.
- Ttl int
Specifies the ttl of the lease for the generated token.
- Address string
Specifies the address of the Nomad instance, provided as “protocol://host:port” like “http://127.0.0.1:4646".
- Backend string
The unique path this backend should be mounted at. Must not begin or end with a
/
. Defaults tonomad
.- Ca
Cert string CA certificate to use when verifying the Nomad server certificate, must be x509 PEM encoded.
- Client
Cert string Client certificate to provide to the Nomad server, must be x509 PEM encoded.
- Client
Key string Client certificate key to provide to the Nomad server, must be x509 PEM encoded.
- Default
Lease intTtl Seconds Default lease duration for secrets in seconds.
- Description string
Human-friendly description of the mount for the Active Directory backend.
- Local bool
Mark the secrets engine as local-only. Local engines are not replicated or removed by replication.Tolerance duration to use when checking the last rotation time.
- Max
Lease intTtl Seconds Maximum possible lease duration for secrets in seconds.
- Max
Token intName Length Specifies the maximum length to use for the name of the Nomad token generated with Generate Credential. If omitted, 0 is used and ignored, defaulting to the max value allowed by the Nomad version.
- Max
Ttl int Maximum possible lease duration for secrets in seconds.
- Token string
Specifies the Nomad Management token to use.
- Ttl int
Specifies the ttl of the lease for the generated token.
- address string
Specifies the address of the Nomad instance, provided as “protocol://host:port” like “http://127.0.0.1:4646".
- backend string
The unique path this backend should be mounted at. Must not begin or end with a
/
. Defaults tonomad
.- ca
Cert string CA certificate to use when verifying the Nomad server certificate, must be x509 PEM encoded.
- client
Cert string Client certificate to provide to the Nomad server, must be x509 PEM encoded.
- client
Key string Client certificate key to provide to the Nomad server, must be x509 PEM encoded.
- default
Lease numberTtl Seconds Default lease duration for secrets in seconds.
- description string
Human-friendly description of the mount for the Active Directory backend.
- local boolean
Mark the secrets engine as local-only. Local engines are not replicated or removed by replication.Tolerance duration to use when checking the last rotation time.
- max
Lease numberTtl Seconds Maximum possible lease duration for secrets in seconds.
- max
Token numberName Length Specifies the maximum length to use for the name of the Nomad token generated with Generate Credential. If omitted, 0 is used and ignored, defaulting to the max value allowed by the Nomad version.
- max
Ttl number Maximum possible lease duration for secrets in seconds.
- token string
Specifies the Nomad Management token to use.
- ttl number
Specifies the ttl of the lease for the generated token.
- address str
Specifies the address of the Nomad instance, provided as “protocol://host:port” like “http://127.0.0.1:4646".
- backend str
The unique path this backend should be mounted at. Must not begin or end with a
/
. Defaults tonomad
.- ca_
cert str CA certificate to use when verifying the Nomad server certificate, must be x509 PEM encoded.
- client_
cert str Client certificate to provide to the Nomad server, must be x509 PEM encoded.
- client_
key str Client certificate key to provide to the Nomad server, must be x509 PEM encoded.
- default_
lease_ intttl_ seconds Default lease duration for secrets in seconds.
- description str
Human-friendly description of the mount for the Active Directory backend.
- local bool
Mark the secrets engine as local-only. Local engines are not replicated or removed by replication.Tolerance duration to use when checking the last rotation time.
- max_
lease_ intttl_ seconds Maximum possible lease duration for secrets in seconds.
- max_
token_ intname_ length Specifies the maximum length to use for the name of the Nomad token generated with Generate Credential. If omitted, 0 is used and ignored, defaulting to the max value allowed by the Nomad version.
- max_
ttl int Maximum possible lease duration for secrets in seconds.
- token str
Specifies the Nomad Management token to use.
- ttl int
Specifies the ttl of the lease for the generated token.
Outputs
All input properties are implicitly available as output properties. Additionally, the NomadSecretBackend 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.
Look up an Existing NomadSecretBackend Resource
Get an existing NomadSecretBackend resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NomadSecretBackendState, opts?: CustomResourceOptions): NomadSecretBackend
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, address: Optional[str] = None, backend: Optional[str] = None, ca_cert: Optional[str] = None, client_cert: Optional[str] = None, client_key: Optional[str] = None, default_lease_ttl_seconds: Optional[int] = None, description: Optional[str] = None, local: Optional[bool] = None, max_lease_ttl_seconds: Optional[int] = None, max_token_name_length: Optional[int] = None, max_ttl: Optional[int] = None, token: Optional[str] = None, ttl: Optional[int] = None) -> NomadSecretBackend
func GetNomadSecretBackend(ctx *Context, name string, id IDInput, state *NomadSecretBackendState, opts ...ResourceOption) (*NomadSecretBackend, error)
public static NomadSecretBackend Get(string name, Input<string> id, NomadSecretBackendState? state, CustomResourceOptions? opts = null)
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Address string
Specifies the address of the Nomad instance, provided as “protocol://host:port” like “http://127.0.0.1:4646".
- Backend string
The unique path this backend should be mounted at. Must not begin or end with a
/
. Defaults tonomad
.- Ca
Cert string CA certificate to use when verifying the Nomad server certificate, must be x509 PEM encoded.
- Client
Cert string Client certificate to provide to the Nomad server, must be x509 PEM encoded.
- Client
Key string Client certificate key to provide to the Nomad server, must be x509 PEM encoded.
- Default
Lease intTtl Seconds Default lease duration for secrets in seconds.
- Description string
Human-friendly description of the mount for the Active Directory backend.
- Local bool
Mark the secrets engine as local-only. Local engines are not replicated or removed by replication.Tolerance duration to use when checking the last rotation time.
- Max
Lease intTtl Seconds Maximum possible lease duration for secrets in seconds.
- Max
Token intName Length Specifies the maximum length to use for the name of the Nomad token generated with Generate Credential. If omitted, 0 is used and ignored, defaulting to the max value allowed by the Nomad version.
- Max
Ttl int Maximum possible lease duration for secrets in seconds.
- Token string
Specifies the Nomad Management token to use.
- Ttl int
Specifies the ttl of the lease for the generated token.
- Address string
Specifies the address of the Nomad instance, provided as “protocol://host:port” like “http://127.0.0.1:4646".
- Backend string
The unique path this backend should be mounted at. Must not begin or end with a
/
. Defaults tonomad
.- Ca
Cert string CA certificate to use when verifying the Nomad server certificate, must be x509 PEM encoded.
- Client
Cert string Client certificate to provide to the Nomad server, must be x509 PEM encoded.
- Client
Key string Client certificate key to provide to the Nomad server, must be x509 PEM encoded.
- Default
Lease intTtl Seconds Default lease duration for secrets in seconds.
- Description string
Human-friendly description of the mount for the Active Directory backend.
- Local bool
Mark the secrets engine as local-only. Local engines are not replicated or removed by replication.Tolerance duration to use when checking the last rotation time.
- Max
Lease intTtl Seconds Maximum possible lease duration for secrets in seconds.
- Max
Token intName Length Specifies the maximum length to use for the name of the Nomad token generated with Generate Credential. If omitted, 0 is used and ignored, defaulting to the max value allowed by the Nomad version.
- Max
Ttl int Maximum possible lease duration for secrets in seconds.
- Token string
Specifies the Nomad Management token to use.
- Ttl int
Specifies the ttl of the lease for the generated token.
- address string
Specifies the address of the Nomad instance, provided as “protocol://host:port” like “http://127.0.0.1:4646".
- backend string
The unique path this backend should be mounted at. Must not begin or end with a
/
. Defaults tonomad
.- ca
Cert string CA certificate to use when verifying the Nomad server certificate, must be x509 PEM encoded.
- client
Cert string Client certificate to provide to the Nomad server, must be x509 PEM encoded.
- client
Key string Client certificate key to provide to the Nomad server, must be x509 PEM encoded.
- default
Lease numberTtl Seconds Default lease duration for secrets in seconds.
- description string
Human-friendly description of the mount for the Active Directory backend.
- local boolean
Mark the secrets engine as local-only. Local engines are not replicated or removed by replication.Tolerance duration to use when checking the last rotation time.
- max
Lease numberTtl Seconds Maximum possible lease duration for secrets in seconds.
- max
Token numberName Length Specifies the maximum length to use for the name of the Nomad token generated with Generate Credential. If omitted, 0 is used and ignored, defaulting to the max value allowed by the Nomad version.
- max
Ttl number Maximum possible lease duration for secrets in seconds.
- token string
Specifies the Nomad Management token to use.
- ttl number
Specifies the ttl of the lease for the generated token.
- address str
Specifies the address of the Nomad instance, provided as “protocol://host:port” like “http://127.0.0.1:4646".
- backend str
The unique path this backend should be mounted at. Must not begin or end with a
/
. Defaults tonomad
.- ca_
cert str CA certificate to use when verifying the Nomad server certificate, must be x509 PEM encoded.
- client_
cert str Client certificate to provide to the Nomad server, must be x509 PEM encoded.
- client_
key str Client certificate key to provide to the Nomad server, must be x509 PEM encoded.
- default_
lease_ intttl_ seconds Default lease duration for secrets in seconds.
- description str
Human-friendly description of the mount for the Active Directory backend.
- local bool
Mark the secrets engine as local-only. Local engines are not replicated or removed by replication.Tolerance duration to use when checking the last rotation time.
- max_
lease_ intttl_ seconds Maximum possible lease duration for secrets in seconds.
- max_
token_ intname_ length Specifies the maximum length to use for the name of the Nomad token generated with Generate Credential. If omitted, 0 is used and ignored, defaulting to the max value allowed by the Nomad version.
- max_
ttl int Maximum possible lease duration for secrets in seconds.
- token str
Specifies the Nomad Management token to use.
- ttl int
Specifies the ttl of the lease for the generated token.
Package Details
- Repository
- https://github.com/pulumi/pulumi-vault
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vault
Terraform Provider.