hashicorp/terraform-provider-kubernetes#546
hashicorp/terraform-provider-kubernetes#546 (comment)
terraform state rm kubernetes_service_account.tiller \
kubernetes_namespace.mi-system \
'kubernetes_cluster_role_binding.k8s_permissions["kubernetes-admin"]' \
kubernetes_secret.external_dns \
kubernetes_cluster_role_binding.tiller kubernetes_secret.velero
function import {
terraform import \
-var "tag_build=blah" \
-var "tag_source=asdfas" \
-var "oidc_aad_server_secret=${AZ_OIDC_AAD_SERVER_SECRET}" \
--var-file=config/curious-rabbit.tfvars \
"${@}"
}
import kubernetes_service_account.tiller kube-system/tiller
import kubernetes_namespace.mi-system mi-system
import 'kubernetes_cluster_role_binding.k8s_permissions["kubernetes-admin"]' kubernetes-admin
import kubernetes_secret.external_dns kube-system/curious-rabbit-external-dns
import kubernetes_secret.velero mi-system/curious-rabbit-velero
import kubernetes_cluster_role_binding.tiller tiller
terraform apply \
-var "tag_build=blah" \
-var "tag_source=asdfas" \
-var "oidc_aad_server_secret=${AZ_OIDC_AAD_SERVER_SECRET}" \
--var-file=config/curious-rabbit.tfvars