terraformer
terraformer copied to clipboard
Google DNS resources generated without proper escaping
Hi,
I am trying to generate terraform code and a statefile representing a collection of DNS records and a DNS zone we have in Google Cloud DNS. However when I run the terraformer import
command the resulting .tf
file doesn't have the right escaping within the resources. See below:
resource "google_dns_record_set" "example" {
managed_zone = "google_dns_managed_zone.example.name"
name = "cdn.google_dns_managed_zone.example.dns_name"
project = "example-project"
rrdatas = ["c.storage.googleapis.com."]
ttl = "300"
type = "CNAME"
}
I expect:
resource "google_dns_record_set" "example" {
managed_zone = "${google_dns_managed_zone.example.name}"
name = "cdn.${google_dns_managed_zone.example.name}"
project = "example-project"
rrdatas = ["c.storage.googleapis.com."]
ttl = "300"
type = "CNAME"
}
this is the command I used:
terraformer import google --resources=dns --projects=example-project
thanks for making this tool I have used it with success in the past with Cloudflare resources :)