namecheap / terraform-provider-namecheap

Terraform provider for Namecheap
Apache License 2.0
147 stars 30 forks source link

namecheap: support importing records #21

Closed adamdecaf closed 5 years ago

adamdecaf commented 5 years ago

This allows Terraform to lookup and import Namecheap records into a terraform state file. To import execute a command like the following:

// A record for domain.tld
$ terraform import namecheap_record.foo '@.domain.tld/A/127.0.0.1'

// A record on foo.domain.tld subdomain
$ terraform import namecheap_record.foo 'foo.domain.tld/A/127.0.0.1'

Issue: https://github.com/adamdecaf/terraform-provider-namecheap/issues/19