Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Resource ovh_cloud_project_network_private_subnet needs an option to create an internet gateway #509

Closed
kovanostra opened this issue Dec 5, 2023 · 3 comments

Comments

@kovanostra
Copy link

kovanostra commented Dec 5, 2023

Description

Currently, when using the ovh_cloud_project_network_private_subnet resource with no_gateway=false, I don't have the option to create an Internet Gateway and to associate it with the subnet. Also it is very confusing that OVH seems to use the Gateway name to refer to both a SNAT gateway and an internet Gateway. Then in the terraform documentation there is no clarification on which gateway you are referring to. This might be intuitive for network experts, but not all the terraform developers are such, so it might always be best to clarify.

  1. As a developer I would like to either have a specific resource to create an Internet Gateway or an option to create an Internet Gateway inside ovh_cloud_project_network_private_subnet.
  2. The option name "no_gateway" is a bit confusing. It would be way better and intuitive in its use to name it just "gateway".
  3. In the documentation it would be also useful to mention that the IP of the Gateway is decided from the IPs outside the range of the "start"-"end" options of the resource.

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

  • ovh_cloud_project_network_private_subnet

Potential Terraform Configuration

No changes to the configuration if the feature is implemented inside the resource_cloud_project_network_private_subnet resource.

@kovanostra kovanostra changed the title [FEATURE] Resource ovh_cloud_project_network_private_subnet with no_gateway=false should create a gateway [FEATURE] Resource ovh_cloud_project_network_private_subnet needs an option to create an internet gateway Dec 5, 2023
@yomovh
Copy link
Member

yomovh commented Jan 18, 2024

Hello @kovanostra and thanks for your issue.

A recommended work around is to use directly the openstack provider along with the ovh provider (we support it as well), this will you bring a lot of flexibility in your network choices.

You can find examples that are using those 2 providers in one terraform script in this repo https://github.com/yomovh/tf-at-ovhcloud

Also I recommend this documentation page that guides you in choosing the provider & resources from the Control Panel concepts.

@amstuta
Copy link
Contributor

amstuta commented Mar 29, 2024

Hello @kovanostra, the following PR adds the resource ovh_cloud_project_gateway, does that fit your needs ?

@amstuta
Copy link
Contributor

amstuta commented May 21, 2024

Closing this issue since ovh_cloud_project_gateway is available, don't hesitate to open a new one if needed.

@amstuta amstuta closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants