kubiya_secret
Provides a Kubiya Secret resource to manage sensitive information.
kubiya_secret (Resource)
Provides a Kubiya Secret resource. This allows secrets to be created, updated, and deleted on the Kubiya platform. Secrets store sensitive information that can be securely accessed by Kubiya agents.
Example Usage
Argument Reference
The following arguments are supported:
Required Arguments
name
- (Required) The name of the secret.description
- (Required) A description of the secret.data
- (Required) Map of key-value pairs containing the secret data. These values are stored securely and can be accessed by agents that have permissions to use this secret.
Attribute Reference
In addition to the arguments above, the following attributes are exported:
id
- The ID of the secret.created_at
- The timestamp when the secret was created.updated_at
- The timestamp when the secret was last updated.
Import
Secrets can be imported using the id
:
Security Note
Secrets should never be stored in plain text in your Terraform files. Instead, use variables or environment variables to pass sensitive values to your Terraform configuration.
Example with environment variables:
Then run Terraform with: