Skip to main content

DockerSecret

Resource DockerSecret in pulumi-portainer.
3 min read

Resource DockerSecret in pulumi-portainer.

Pulumi type: portainer:index/dockerSecret:DockerSecret.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
datastringnoBase64-encoded secret data (stored in Terraform state).
dataWostringnoNOTE: This field is write-only and its value will not be updated in state as part of read operations. Write-only secret data (supports ephemeral values; not stored in Terraform state).
dataWoVersionnumbernoVersion flag for write-only data; must be set when using dataWo to trigger updates.
dockerSecretIdstringno
driver{ [key: string]: string }noExternal secret driver configuration used to fetch the secret value at runtime.
endpointIdnumberyesID of the Portainer environment (Docker Swarm) where the secret is created.
labels{ [key: string]: string }noKey/value labels attached to the Docker Swarm secret.
namestringnoName of the Docker Swarm secret.
templating{ [key: string]: string }noTemplating driver configuration applied to the secret payload at runtime.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
datastringnoBase64-encoded secret data (stored in Terraform state).
dataWostringnoNOTE: This field is write-only and its value will not be updated in state as part of read operations. Write-only secret data (supports ephemeral values; not stored in Terraform state).
dataWoVersionnumbernoVersion flag for write-only data; must be set when using dataWo to trigger updates.
dockerSecretIdstringno
driver{ [key: string]: string }noExternal secret driver configuration used to fetch the secret value at runtime.
endpointIdnumbernoID of the Portainer environment (Docker Swarm) where the secret is created.
labels{ [key: string]: string }noKey/value labels attached to the Docker Swarm secret.
namestringnoName of the Docker Swarm secret.
resourceControlIdnumberyesID of the Portainer resource control associated with this Docker Swarm secret.
templating{ [key: string]: string }noTemplating driver configuration applied to the secret payload at runtime.