opentelekomcloud / terraform-provider-opentelekomcloud

Terraform OpenTelekomCloud provider
https://registry.terraform.io/providers/opentelekomcloud/opentelekomcloud/latest
Mozilla Public License 2.0
87 stars 78 forks source link

Typo in API request for creating ELB in eu-nl region #1630

Closed 5RK7N closed 2 years ago

5RK7N commented 2 years ago

Terraform provider version

Terraform v1.0.4 on linux_amd64

Affected Resource(s)

Debug Output/Panic Output

Error: error creating LoadBalancer: Resource not found: [POST https://elb.eu-nl.otc.t-systems.com//v2.0/lbaas/loadbalancers], error message: {"error_msg":"The API does not exist or has not been published in the environment","error_code":"APIGW.0101","request_id":""}

Steps to Reproduce

terraform apply -target=opentelekomcloud_lb_loadbalancer_v2.elb

Expected Behavior

It should create an ELB

Actual Behavior

Error returns "API does not exist".

Important Factoids

There is a double slash in the API call: https://elb.eu-nl.otc.t-systems.com//v2.0/lbaas/loadbalancers, which is not in eu-de region: https://elb.eu-de.otc.t-systems.com/v2.0/lbaas/loadbalancers

lego963 commented 2 years ago

Already done in: https://github.com/opentelekomcloud/terraform-provider-opentelekomcloud/pull/1617

PS: We don't recommend using ELBv2 in EU-NL. Please use ELBv3.