diff --git a/00-outputs.tf b/00-outputs.tf
index 0f439b5..70ac9c2 100644
--- a/00-outputs.tf
+++ b/00-outputs.tf
@@ -17,3 +17,8 @@ output "cluster_name" {
description = "Name of cluster"
value = var.cluster_name
}
+
+output "kubeconfig" {
+ description = "Kubeconfig content"
+ value = data.talos_cluster_kubeconfig.this.kubeconfig_raw
+}
diff --git a/03-talos.tf b/03-talos.tf
index 3bf30a4..e358794 100644
--- a/03-talos.tf
+++ b/03-talos.tf
@@ -130,7 +130,7 @@ resource "local_file" "kubeconfig" {
filename = local.path_to_kubeconfig_file
lifecycle {
ignore_changes = [content]
-}
+ }
}
# Does currently not work because of the nodes reachability from the internet.
diff --git a/README.md b/README.md
index d71a745..b5ca3d1 100644
--- a/README.md
+++ b/README.md
@@ -122,6 +122,7 @@ module "talos" {
|------|-------------|
| [cluster\_name](#output\_cluster\_name) | Name of cluster |
| [elb\_dns\_name](#output\_elb\_dns\_name) | Public ELB DNS name. |
+| [kubeconfig](#output\_kubeconfig) | Kubeconfig content |
| [path\_to\_kubeconfig\_file](#output\_path\_to\_kubeconfig\_file) | The generated kubeconfig. |
| [path\_to\_talosconfig\_file](#output\_path\_to\_talosconfig\_file) | The generated talosconfig. |
\ No newline at end of file