diff --git a/joinconfig.tf b/joinconfig.tf index 3c30734..ad70155 100644 --- a/joinconfig.tf +++ b/joinconfig.tf @@ -4,8 +4,10 @@ locals { } module "join_config" { - source = "matti/resource/shell" - depends_on = [null_resource.cluster_bootstrap] + source = "matti/resource/shell" + version = "1.3.0" + depends_on = [null_resource.cluster_bootstrap] + fail_on_error = true trigger = null_resource.cluster_bootstrap.id diff --git a/kubeconfig.tf b/kubeconfig.tf index 92c8603..0de63b1 100644 --- a/kubeconfig.tf +++ b/kubeconfig.tf @@ -1,6 +1,8 @@ module "kubeconfig" { - source = "matti/resource/shell" - depends_on = [null_resource.cluster_bootstrap] + source = "matti/resource/shell" + version = "1.3.0" + depends_on = [null_resource.cluster_bootstrap] + fail_on_error = true trigger = null_resource.cluster_bootstrap.id @@ -10,38 +12,9 @@ module "kubeconfig" { EOT } -module "certificate_authority_data" { - source = "matti/resource/shell" - depends_on = [null_resource.cluster_bootstrap] - - trigger = null_resource.cluster_bootstrap.id - - command = <