我正在尝试在 OCI 上学习 terraform,我在 terraform-code.tf 文件中编写了一个小代码来创建一个块实例,但是当我运行 terraform 计划时出现以下错误。
data "oci_identity_availability_domain" "ad" {
compartment_id = "var.tenancy_ocid"
}
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
data.oci_identity_availability_domain.ad: Refreshing state...
Error: Get https://identity.var.region.oraclecloud.com/20160918/availabilityDomains?compartmentId=ocid1.tenancy.oc1..aaaaaaaa35fzgotfw445uiswdvjcxnxitafa4scy4dmcuifrvvzkxylqga3q: dial tcp: lookup identity.var.region.oraclecloud.com: no such host
on terraform-code.tf line 46, in data "oci_identity_availability_domain" "ad":
46: data "oci_identity_availability_domain" "ad" {
我试图从我的 Windows 机器上 ping identity.var.region.oraclecloud.com 但没有运气
ping identity.var.region.oraclecloud.com
Ping request could not find host identity.var.region.oraclecloud.com. Please check the name and try again.
我相信这是代理的问题,由于某种原因我无法访问 identity.var.region.oraclecloud.com
我在 github 上找到了类似的文章: https ://github.com/terraform-providers/terraform-provider-oci/issues/960
谁能帮我解决这个问题?