【发布时间】:2018-07-13 02:17:38
【问题描述】:
我正在使用下面的 terraform .tf 文件。它总是将错误显示为
DownloadFileAsync:从下载文件时出错 https://github.dxc.com/raw/gist/jmathews4/2095e2436571715f94e05e5ac5400a67/raw/f554d018ae4fee12979b2ee6f5ac4abb3ff509aa/Terraform.ps1?token=AAAMrnoBPpBc7C8kN2_haQueWaqDhth-ks5bUGqhwA%3D%3D, 重试计数 25,异常:System.Net.WebException:请求是 中止:无法创建 SSL/TLS 安全通道。在 System.Net.WebClient.DownloadFile(Uri address, String fileName)
知道 GIT 会出现什么问题吗?
provider "azurerm" {
}
variable "location" { default = "Southeast Asia" }
variable "resourceGroup" { default = "TerraformResearchResourceGroup" }
variable "virtualMachine" { default = "terraformrvm" }
resource "azurerm_virtual_machine_extension" "ext" {
name = "eagpocvmexxt"
location = "Southeast Asia"
resource_group_name = "terraformrg"
virtual_machine_name = "terraformvm"
publisher = "Microsoft.Compute"
type = "CustomScriptExtension"
type_handler_version = "1.8"
settings = <<SETTINGS
{
"fileUris": ["https://github.dxc.com/raw/gist/jmathews4/2095e2436571715f94e05e5ac5400a67/raw/f554d018ae4fee12979b2ee6f5ac4abb3ff509aa/Terraform.ps1?token=AAAMrnoBPpBc7C8kN2_haQueWaqDhth-ks5bUGqhwA%3D%3D"],
"commandToExecute": "powershell.exe -ExecutionPolicy unrestricted -NoProfile -NonInteractive -File Terraform.ps1"
}
SETTINGS
tags {
environment = "Production"
}
}
【问题讨论】: