go-gandi / terraform-provider-gandi

Terraform provider for the Gandi Domain services
Mozilla Public License 2.0
152 stars 47 forks source link

Feature: Add `import` functionality to LiveDNS resources #139

Closed harrywm closed 1 year ago

harrywm commented 1 year ago

At Birdie, we use a Gandi LiveDNS domain and records as our DNS setup. We'd love to be able to retroactively utilise this provider to manage our DNS records in Terraform, despite the fact our setup was created manually previously. This would require Terraform's import functionality .

Implementing import in a provider is quite simple - implementing a Importer attribute within a Resource function. For example:

Importer: &schema.ResourceImporter{
   StateContext: schema.ImportStatePassthroughContext,
},

I'd like to contribute to this project, implementing an Importer attribute to the following resources:

Allowing the Infrastructure & Security team at Birdie to import our DNS configuration into Terraform using this provider.

harrywm commented 1 year ago

Closed due to duplicate functionality