feat(terraform): add outputs for kubeconfig and talosconfig
This commit is contained in:
15
terraform/outputs.tf
Normal file
15
terraform/outputs.tf
Normal file
@@ -0,0 +1,15 @@
|
||||
output "kubeconfig" {
|
||||
value = {
|
||||
for key, cluster in var.clusters :
|
||||
key => talos_cluster_kubeconfig.talos-kubeconfig[key].kubeconfig_raw
|
||||
}
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
output "talosconfig" {
|
||||
value = {
|
||||
for key, cluster in var.clusters :
|
||||
key => data.talos_client_configuration.talos-client-config[key].talos_config
|
||||
}
|
||||
sensitive = true
|
||||
}
|
||||
Reference in New Issue
Block a user