Skip to content

ADD function to retrieve task_id from dns resources #5271

@marcelmfs

Description

@marcelmfs

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

When trying to import an existing scaleway_domain_registration resource to be managed by terraform, task_id is required but can only be retrieved with curl request to the REST API.

How I imagine scw could expose this functionality

Perhaps the best way to output this variable (task_id of create-domain) is through scw dns zone list, or somewhere along the lines of:

scw dns zone tasks domain=example.com

or through terraform provider data outputs, or both.

References

https://github.com/scaleway/terraform-provider-scaleway/blob/39eda3309c0fc3b8641207e39bcfbc6ada707e28/internal/services/domain/registration.go#L174

https://github.com/scaleway/terraform-provider-scaleway/blob/39eda3309c0fc3b8641207e39bcfbc6ada707e28/docs/resources/domain_registration.md?plain=1#L118

Metadata

Metadata

Assignees

Labels

domainDomains issues, bugs and feature requestsenhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions