Skip to content
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

[BUG] Importing Domain Zone #481

Closed
MiguelNdeCarvalho opened this issue Oct 19, 2023 · 1 comment · Fixed by #486
Closed

[BUG] Importing Domain Zone #481

MiguelNdeCarvalho opened this issue Oct 19, 2023 · 1 comment · Fixed by #486

Comments

@MiguelNdeCarvalho
Copy link

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:

  1. terraform import ovh_domain_zone.main domain.com
@MiguelNdeCarvalho MiguelNdeCarvalho changed the title [BUG] [BUG] Importing Domain Zone Oct 19, 2023
@yomovh yomovh self-assigned this Nov 3, 2023
@yomovh yomovh added Type: Documentation Status: Backlog The issue is understood labels Nov 3, 2023
@yomovh
Copy link
Contributor

yomovh commented Nov 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants