-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: add support for resource import (zones/records) #31
Comments
Have a prototype of zone import already working configuration:
state show:
and a plan after import:
I'll keep working on the same for record resource and will also add tests. |
@dannyk81 Using |
@splashx indeed that was my initial attempt, but using
|
@splashx just pushed latest changes.
I think this is ready for a review, let me know what you think 😄 |
@splashx have a question about https://github.com/terraform-providers/terraform-provider-powerdns/blob/3d8c32c5ffe7c6e7932886a86f94d7e51f94eef9/powerdns/resource_powerdns_record.go#L101 since this is deleting any record with an empty rrSet, shouldn't this line be |
You're right here, but the fix most likely will involve touching other places so I've opened another issue to track this. |
I think it would be great to add the ability to import resources (zones and records).
I will try to provide a working PR, since in most cases this just needs a pass-through state importer definition in the schema:
The text was updated successfully, but these errors were encountered: