ovh / terraform-provider-ovh

Terraform OVH provider
https://registry.terraform.io/providers/ovh/ovh/latest/docs
Mozilla Public License 2.0
182 stars 131 forks source link

[FEATURE] Use existing floating IP on gateway #675

Closed 131 closed 6 days ago

131 commented 1 week ago

Description

Creating a gateway will pick a new IP from the external network pool. I want to use/choose one of my available floating IP (so i can keep my IP / if I destroy / update my gateway)

Affected Resource(s) and/or Data Source(s)

*ovh_cloud_project_gateway

Potential Terraform Configuration


resource "ovh_cloud_project_gateway" "gateway" {
  service_name = ovh_cloud_project_network_private.mypriv.service_name
  name          = "my-gateway"
  model         = "s"
  region        = ovh_cloud_project_network_private_subnet.myprivsub.region
  network_id    = tolist(ovh_cloud_project_network_private.mypriv.regions_attributes[*].openstackid)[0]
  subnet_id     = ovh_cloud_project_network_private_subnet.myprivsub.id
  floating_ip   = X.Y.Z.A
}

Using a floating IP in front of the gateway is explicitly stated in OVH documentation

yomovh commented 1 week ago

Hello,

Thanks for your issue.

It is currently not possible to assign a floating IP to a gateway (see this question in the public cloud network FAQ page. This issue is the corresponding roadmap item. Please add a thumb up 👍 and a comment to show your interest 🙏

I would be interested to know which part of the documentation page you mentioned made you think this was possible. So that I can update it to clarify it. Can you quote that part ?

131 commented 1 week ago

THank your for th related issue / i've upvoted the request. Regarding the documentation, you'll see on those diagrams

Floating IPs in front of a gateway, because, "of course" this i how it's intended to be used. There come the unfortunate deception.

yomovh commented 6 days ago

I have created a doc issue based on your feedback, I will hence close this issue, let's do the follow up on the other one.