我要翻译的内容如下:
我正在尝试创建/应用kubectl .yaml文件 https://github.com/Azure/aad-pod-identity/blob/master/deploy/infra/deployment.yaml 通过Terrraform的null_resource到AKS上安装Azure AD Pod Identity。它需要部署Azure网关入口控制器。使用Windows 10和VS Code
main.tf:
```terraform 未提供需要翻译的内容,请提供! ```data "template_file" "aad_pod" {
template = "${file("${path.module}/templates/aad_pod.yaml")}"
}
resource "null_resource" "aad_pod_deploy" {
triggers = {
manifest_sha1 = "${sha1("${data.template_file.aad_pod.rendered}")}"
}
provisioner "local-exec" {
command = "kubectl apply -f -<<EOF\n${data.template_file.aad_pod.rendered}\nEOF"
}
}
在执行terraform apply后,我遇到了以下错误:
Error: Error running command 'kubectl apply -f -<<EOF
'cutted listing of yaml file'
EOF': exit status 1. Output: << was unexpected at this time.
非常感谢您的帮助。