renaming resource and removing trigger

This commit is contained in:
Max Williams
2018-07-09 12:29:11 +02:00
parent 1a1d92da66
commit 2a0a595940
2 changed files with 3 additions and 4 deletions

View File

@@ -4,14 +4,13 @@ resource "local_file" "config_map_aws_auth" {
count = "${var.manage_aws_auth ? 1 : 0}"
}
resource "null_resource" "configure_kubectl" {
resource "null_resource" "update_config_map_aws_auth" {
provisioner "local-exec" {
command = "kubectl apply -f ${var.config_output_path}/config-map-aws-auth.yaml --kubeconfig ${var.config_output_path}/kubeconfig"
}
triggers {
config_map_rendered = "${data.template_file.config_map_aws_auth.rendered}"
kubeconfig_rendered = "${data.template_file.kubeconfig.rendered}"
}
count = "${var.manage_aws_auth ? 1 : 0}"