Update doks_gen_kubectl-config.j2.tf

This commit is contained in:
marc
2020-12-02 18:41:04 +01:00
parent af9b11ee08
commit 4fcd2949df

View File

@@ -8,10 +8,6 @@ KUBECONFIG
resource "local_file" "kubeconfig" {
filename = "${var.space_bucket_kubeconfig}/${var.oks_cluster_id}.yaml"
content = local.kubeconfig
lifecycle {
create_before_destroy = true
}
}
@@ -21,8 +17,4 @@ resource "digitalocean_spaces_bucket_object" "upload_kubeconfig" {
key = "${var.oks_cluster_id}.yaml"
source = local_file.kubeconfig.filename
depends_on = [local_file.kubeconfig, digitalocean_spaces_bucket.space_bucket_kubeconfig]
lifecycle {
create_before_destroy = true
}
}
}