我在terraform的正式文档中找到了这段代码片段,但它没有说明如何将rrdatas转换为动态ip。有人尝试用动态ips创建dns记录集吗?
resource "google_dns_record_set" "a" {
name = "backend.${google_dns_managed_zone.prod.dns_name}"
managed_zone = google_dns_managed_zone.prod.name
type = "A"
ttl =
我最近开始在Terraform上工作,有一个关于terraform state mv和terraform import的问题。根据文档,当资源名称更改时,可以使用terraform状态mv,并且必须将更新后的名称添加到状态文件中。terraform import可用于将在Terraform外部创建的资源导入到状态文件中。我的问题是,即使当资源名称更改或代码结构更改(使用模块)时,我们仍然可以使用terraform import来更新状态文件,对吗?谁能告诉我,使用terraform state mv命令的真正好处是什么?
我正在使用Terraform脚本来创建天蓝色服务,我对Terraform有一些疑问,
1) If I have one environment let say dev in azure having some azure resources how can I copy all the resources to new environment lest say prod using terraform script.
2)what are the impact of re-run the terraform file with additional azure resources, what