GoogleCloudPlatform / terraformer

CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code
Apache License 2.0
12.67k stars 1.65k forks source link

Vultr support needs update to Vultr API v2 #1910

Closed jimwise closed 3 weeks ago

jimwise commented 3 months ago

The version of govultr used by terraformer's Vultr provider is out of date and no longer functions.

Versions new enough to work also rename a number of resources, so this is more involved than just a go.mod update. From a simple examination, updating go.mod to use vultr/govultr/v3 v3.9.1results in the following:

# github.com/GoogleCloudPlatform/terraformer/providers/vultr
providers/vultr/dns_domain.go:29:80: undefined: govultr.DNSDomain
providers/vultr/server.go:28:63: undefined: govultr.Server
providers/vultr/bare_metal_server.go:32:11: server.BareMetalServerID undefined (type govultr.BareMetalServer has no field or method BareMetalServerID)
providers/vultr/bare_metal_server.go:33:11: server.BareMetalServerID undefined (type govultr.BareMetalServer has no field or method BareMetalServerID)
providers/vultr/bare_metal_server.go:43:17: assignment mismatch: 2 variables but client.BareMetalServer.List returns 4 values
providers/vultr/bare_metal_server.go:43:45: not enough arguments in call to client.BareMetalServer.List
    have ("context".Context)
    want ("context".Context, *govultr.ListOptions)
providers/vultr/block_storage.go:32:17: blockStorage.BlockStorageID undefined (type govultr.BlockStorage has no field or method BlockStorageID)
providers/vultr/block_storage.go:33:17: blockStorage.BlockStorageID undefined (type govultr.BlockStorage has no field or method BlockStorageID)
providers/vultr/block_storage.go:43:17: assignment mismatch: 2 variables but client.BlockStorage.List returns 4 values
providers/vultr/block_storage.go:43:42: not enough arguments in call to client.BlockStorage.List
    have ("context".Context)
    want ("context".Context, *govultr.ListOptions)
providers/vultr/block_storage.go:43:17: too many errors
github.com/GoogleCloudPlatform/terraformer/providers/yandex
github.com/GoogleCloudPlatform/terraformer/terraformutils/terraformoutput

(Server is now Instance, DNSDomain is now Domain, and the signature of several functions has changed, as a start.)

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 3 weeks ago

This issue was closed because it has been stalled for 7 days with no activity.