openbao-helm/terraform/modules/helm/main.tf
Mitchell Hashimoto ef0d2cbcee
Initial commit
2018-08-17 22:08:03 -07:00

16 lines
313 B
HCL

locals {
service_account_path = "${path.module}/service-account.yaml"
}
resource "null_resource" "service_account" {
triggers {
cluster_id = "${var.trigger}"
}
provisioner "local-exec" {
command = <<EOF
kubectl apply -f '${local.service_account_path}'
helm init --service-account helm
EOF
}
}