Terraform HTTP无法正常工作,在数据“ http”“示例”中的main.tf第1行上出现错误-

时间:2019-11-20 13:18:26

标签: http terraform

我从 https://www.terraform.io/docs/providers/http/data_source.html 但是它会抛出错误。

data "http" "example" {
  url = "https://checkpoint-api.hashicorp.com/v1/check/terraform"

  # Optional request headers
  request_headers = {
    Accept = "application/json"
  }
}


Command : terraform plan
Error: Error during making a request: https://checkpoint-api.hashicorp.com/v1/check/terraform

  on main.tf line 1, in data "http" "example":
   1: data "http" "example" {

错误: 错误:发出请求时出错:https://checkpoint-api.hashicorp.com/v1/check/terraform

在main.tf第1行中,在数据“ http”“示例”中:    1:数据“ http”“示例” {

0 个答案:

没有答案