[BUG] Importing Domain Zone
MiguelNdeCarvalho opened this issue · 1 comments
MiguelNdeCarvalho commented
Describe the bug
Trying to import a Domain Zone and it fails
Terraform Version
v1.6.2
OVH Terraform Provider Version
v0.34.0
Affected Resource(s)
Please list the resources as a list, for example:
ovh_domain_zone.main
If this issue appears to affect multiple resources, it may be an issue with Terraform's core.
Terraform Configuration Files
resource "ovh_domain_zone" "main" {
ovh_subsidiary = data.ovh_order_cart.main.ovh_subsidiary
plan {
duration = data.ovh_order_cart_product_plan.zone.selected_price.0.duration
plan_code = data.ovh_order_cart_product_plan.zone.plan_code
pricing_mode = data.ovh_order_cart_product_plan.zone.selected_price.0.pricing_mode
}
}
Please list the steps required to reproduce the issue, for example:
terraform import ovh_domain_zone.main domain.com
yomovh commented
Thanks for your issue @MiguelNdeCarvalho.
The documentation is not clear and I will update a zone, you need to add the order id : terraform import ovh_domain_zone.main 123456
If you only need to get data from the zone, you can use the zone data source