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

Add a way to fetch a server's IPv6 Address #77

Open
pojntfx opened this issue Oct 29, 2024 · 1 comment
Open

Add a way to fetch a server's IPv6 Address #77

pojntfx opened this issue Oct 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@pojntfx
Copy link

pojntfx commented Oct 29, 2024

Is your feature request related to a problem? Please describe.

The dashboard shows the IPv6 address that has been assigned to the server:

Screenshot of the Latitude.sh dashboard showing the IPv4 and IPv6 address of a server

But in the Terraform provider, there is no way to retrieve it; only the IPv4 address can be fetched:

This differs from e.g. the Equinix, EC2 and most other cloud OpenTofu/Terraform providers which usually expose both families through a read-only property.

Describe the solution you'd like

Optimally, there we would be a similar field to the one there currently is for IPv4, but for IPv6 (primary_ipv6) - or alternatively, a way to fetch the list of attached IPs (this is what Equinix does, too)

Describe alternatives you've considered

Doing a manual API call, e.g. to https://docs.latitude.sh/reference/get-ips, but this is cumbersome and breaks the Terraform integration

Additional context

Prior work for fetching IPv4 and IPv6 addresses after instance creation: https://github.com/pojntfx/uninstance/blob/main/outputs.tf

@pojntfx pojntfx added the enhancement New feature or request label Oct 29, 2024
@esoubihe
Copy link
Contributor

@pojntfx thanks for your feedback, we will work on this improvement and circle back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants