ionos-cloud / terraform-provider-ionoscloud

The IonosCloud Terraform provider gives the ability to deploy and configure resources using the IonosCloud APIs.
Mozilla Public License 2.0
35 stars 24 forks source link

Cannot specify http IONOS_API_URL #154

Closed maboehm closed 2 years ago

maboehm commented 2 years ago

Description

https://github.com/ionos-cloud/terraform-provider-ionoscloud/pull/137 (Version 5.2.19 changed the URL parsing behavior, such that http URL no longer work (https://github.com/ionos-cloud/terraform-provider-ionoscloud/blame/master/vendor/github.com/ionos-cloud/sdk-go/v5/configuration.go#L244).

We currently need to specify a http connection behavior, because we need to go through a local proxy to reach the API.

provider "ionoscloud" {
  endpoint = "http://local-proxy/cloudapi/v5"
}

Results in:

an error occured while fetching a User ID <UUID> Get "https://http//local-proxy/cloudapi/v5/um/users/<UUID>?depth=10"

Expected behavior

I expected the provider to respect my scheme (http), if I explicitly set it.

Environment

Terraform version:

 v0.15.4

Provider version:

5.2.19-latest

OS:

linux
cristiGuranIonos commented 2 years ago

Thanks for letting us know, we will take a look.

cristiGuranIonos commented 2 years ago

Issue is fixed, we will provide a new release as soon as possible

cristiGuranIonos commented 2 years ago

Fixed in 5.2.22 and 6.0.0