talos.machine.Secrets
Explore with Pulumi AI
Generate machine secrets for Talos cluster.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Talos = Pulumiverse.Talos;
return await Deployment.RunAsync(() =>
{
var machineSecrets = new Talos.Machine.Secrets("machineSecrets");
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-talos/sdk/go/talos/machine"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := machine.NewSecrets(ctx, "machineSecrets", nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.talos.machine.Secrets;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var machineSecrets = new Secrets("machineSecrets");
}
}
import pulumi
import pulumiverse_talos as talos
machine_secrets = talos.machine.Secrets("machineSecrets")
import * as pulumi from "@pulumi/pulumi";
import * as talos from "@pulumiverse/talos";
const machineSecrets = new talos.machine.Secrets("machineSecrets", {});
resources:
machineSecrets:
type: talos:machine:Secrets
Create Secrets Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Secrets(name: string, args?: SecretsArgs, opts?: CustomResourceOptions);
@overload
def Secrets(resource_name: str,
args: Optional[SecretsInitArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Secrets(resource_name: str,
opts: Optional[ResourceOptions] = None,
talos_version: Optional[str] = None)
func NewSecrets(ctx *Context, name string, args *SecretsArgs, opts ...ResourceOption) (*Secrets, error)
public Secrets(string name, SecretsArgs? args = null, CustomResourceOptions? opts = null)
public Secrets(String name, SecretsArgs args)
public Secrets(String name, SecretsArgs args, CustomResourceOptions options)
type: talos:machine:Secrets
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SecretsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SecretsInitArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SecretsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecretsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecretsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var secretsResource = new Talos.Machine.Secrets("secretsResource", new()
{
TalosVersion = "string",
});
example, err := machine.NewSecrets(ctx, "secretsResource", &machine.SecretsArgs{
TalosVersion: pulumi.String("string"),
})
var secretsResource = new Secrets("secretsResource", SecretsArgs.builder()
.talosVersion("string")
.build());
secrets_resource = talos.machine.Secrets("secretsResource", talos_version="string")
const secretsResource = new talos.machine.Secrets("secretsResource", {talosVersion: "string"});
type: talos:machine:Secrets
properties:
talosVersion: string
Secrets Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Secrets resource accepts the following input properties:
- Talos
Version string - The version of talos features to use in generated machine configuration
- Talos
Version string - The version of talos features to use in generated machine configuration
- talos
Version String - The version of talos features to use in generated machine configuration
- talos
Version string - The version of talos features to use in generated machine configuration
- talos_
version str - The version of talos features to use in generated machine configuration
- talos
Version String - The version of talos features to use in generated machine configuration
Outputs
All input properties are implicitly available as output properties. Additionally, the Secrets resource produces the following output properties:
- Client
Configuration Pulumiverse.Talos. Machine. Outputs. Secrets Client Configuration - The generated client configuration data
- Id string
- The provider-assigned unique ID for this managed resource.
- Machine
Secrets Pulumiverse.Talos. Machine. Outputs. Machine Secrets - The secrets for the talos cluster
- Client
Configuration SecretsClient Configuration - The generated client configuration data
- Id string
- The provider-assigned unique ID for this managed resource.
- Machine
Secrets MachineSecrets - The secrets for the talos cluster
- client
Configuration SecretsClient Configuration - The generated client configuration data
- id String
- The provider-assigned unique ID for this managed resource.
- machine
Secrets MachineSecrets - The secrets for the talos cluster
- client
Configuration SecretsClient Configuration - The generated client configuration data
- id string
- The provider-assigned unique ID for this managed resource.
- machine
Secrets MachineSecrets - The secrets for the talos cluster
- client_
configuration SecretsClient Configuration - The generated client configuration data
- id str
- The provider-assigned unique ID for this managed resource.
- machine_
secrets MachineSecrets - The secrets for the talos cluster
- client
Configuration Property Map - The generated client configuration data
- id String
- The provider-assigned unique ID for this managed resource.
- machine
Secrets Property Map - The secrets for the talos cluster
Look up Existing Secrets Resource
Get an existing Secrets 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?: SecretsState, opts?: CustomResourceOptions): Secrets
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
client_configuration: Optional[SecretsClientConfigurationArgs] = None,
machine_secrets: Optional[MachineSecretsArgs] = None,
talos_version: Optional[str] = None) -> Secrets
func GetSecrets(ctx *Context, name string, id IDInput, state *SecretsState, opts ...ResourceOption) (*Secrets, error)
public static Secrets Get(string name, Input<string> id, SecretsState? state, CustomResourceOptions? opts = null)
public static Secrets get(String name, Output<String> id, SecretsState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Client
Configuration Pulumiverse.Talos. Machine. Inputs. Secrets Client Configuration - The generated client configuration data
- Machine
Secrets Pulumiverse.Talos. Machine. Inputs. Machine Secrets - The secrets for the talos cluster
- Talos
Version string - The version of talos features to use in generated machine configuration
- Client
Configuration SecretsClient Configuration Args - The generated client configuration data
- Machine
Secrets MachineSecrets Args - The secrets for the talos cluster
- Talos
Version string - The version of talos features to use in generated machine configuration
- client
Configuration SecretsClient Configuration - The generated client configuration data
- machine
Secrets MachineSecrets - The secrets for the talos cluster
- talos
Version String - The version of talos features to use in generated machine configuration
- client
Configuration SecretsClient Configuration - The generated client configuration data
- machine
Secrets MachineSecrets - The secrets for the talos cluster
- talos
Version string - The version of talos features to use in generated machine configuration
- client_
configuration SecretsClient Configuration Args - The generated client configuration data
- machine_
secrets MachineSecrets Args - The secrets for the talos cluster
- talos_
version str - The version of talos features to use in generated machine configuration
- client
Configuration Property Map - The generated client configuration data
- machine
Secrets Property Map - The secrets for the talos cluster
- talos
Version String - The version of talos features to use in generated machine configuration
Supporting Types
Certificate, CertificateArgs
Certificates, CertificatesArgs
Cluster, ClusterArgs
Key, KeyArgs
- Key string
- Private Key
- Key string
- Private Key
- key String
- Private Key
- key string
- Private Key
- key str
- Private Key
- key String
- Private Key
MachineSecrets, MachineSecretsArgs
Secrets, SecretsArgs
- Bootstrap_
token string - The bootstrap token for the talos kubernetes cluster
- Secretbox_
encryption_ stringsecret - The secretbox encryption secret for the talos kubernetes cluster
- Bootstrap_
token string - The bootstrap token for the talos kubernetes cluster
- Secretbox_
encryption_ stringsecret - The secretbox encryption secret for the talos kubernetes cluster
- bootstrap_
token String - The bootstrap token for the talos kubernetes cluster
- secretbox_
encryption_ Stringsecret - The secretbox encryption secret for the talos kubernetes cluster
- bootstrap_
token string - The bootstrap token for the talos kubernetes cluster
- secretbox_
encryption_ stringsecret - The secretbox encryption secret for the talos kubernetes cluster
- bootstrap_
token str - The bootstrap token for the talos kubernetes cluster
- secretbox_
encryption_ strsecret - The secretbox encryption secret for the talos kubernetes cluster
- bootstrap_
token String - The bootstrap token for the talos kubernetes cluster
- secretbox_
encryption_ Stringsecret - The secretbox encryption secret for the talos kubernetes cluster
SecretsClientConfiguration, SecretsClientConfigurationArgs
- Ca
Certificate string - The client CA certificate
- Client
Certificate string - The client certificate
- Client
Key string - The client key
- Ca
Certificate string - The client CA certificate
- Client
Certificate string - The client certificate
- Client
Key string - The client key
- ca
Certificate String - The client CA certificate
- client
Certificate String - The client certificate
- client
Key String - The client key
- ca
Certificate string - The client CA certificate
- client
Certificate string - The client certificate
- client
Key string - The client key
- ca_
certificate str - The client CA certificate
- client_
certificate str - The client certificate
- client_
key str - The client key
- ca
Certificate String - The client CA certificate
- client
Certificate String - The client certificate
- client
Key String - The client key
TrustdInfo, TrustdInfoArgs
- Token string
- The trustd token for the talos kubernetes cluster
- Token string
- The trustd token for the talos kubernetes cluster
- token String
- The trustd token for the talos kubernetes cluster
- token string
- The trustd token for the talos kubernetes cluster
- token str
- The trustd token for the talos kubernetes cluster
- token String
- The trustd token for the talos kubernetes cluster
Import
terraform machine secrets can be imported from an existing secrets file
$ pulumi import talos:machine/secrets:Secrets this <path-to-secrets.yaml>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- talos pulumiverse/pulumi-talos
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
talos
Terraform Provider.