From 8b96d5ba6860ac1508e4e09a6be2161587a01f3b Mon Sep 17 00:00:00 2001 From: Vincent Roseberry Date: Wed, 17 Jan 2018 11:19:55 -0800 Subject: [PATCH] Add import support to google_dns_record_set (#895) * Add import support to google_dns_record_set * Add import test to NS record * Minimize diff change * Improve docs * Make error message more helpful * Add note about trailing dot at the end of the record name --- docs/r/dns_record_set.markdown | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/r/dns_record_set.markdown b/docs/r/dns_record_set.markdown index 5e18c0485a9..1bc18bbcff5 100644 --- a/docs/r/dns_record_set.markdown +++ b/docs/r/dns_record_set.markdown @@ -8,7 +8,8 @@ description: |- # google\_dns\_record\_set -Manages a set of DNS records within Google Cloud DNS. +Manages a set of DNS records within Google Cloud DNS. For more information see [the official documentation](https://cloud.google.com/dns/records/) and +[API](https://cloud.google.com/dns/api/v1/resourceRecordSets). ~> **Note:** The Google Cloud DNS API requires NS records be present at all times. To accommodate this, when creating NS records, the default records @@ -98,3 +99,13 @@ The following arguments are supported: ## Attributes Reference Only the arguments listed above are exposed as attributes. + +## Import + +DNS record set can be imported using the `zone name`, `record name` and record `type`, e.g. + +``` +$ terraform import google_dns_record_set.frontend prod-zone/frontend.prod.mydomain.com./A +``` + +Note: The record name must include the trailing dot at the end. \ No newline at end of file