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

support creation of public IP without directly assigning to network interface #599

Open
mhenselin opened this issue Nov 22, 2024 · 2 comments
Labels
invalid This doesn't seem right

Comments

@mhenselin
Copy link

mhenselin commented Nov 22, 2024

currently creating a public IP (floating IP) requests for network interface id (optional)

So that would force me to create a NIC with an public IP assigned.

I'd rather create the public IP upfront and attach it at a later to an interface as I then have the ability to rebuild a node and keep the same public IP.

Or is there any other proposed way to do that?

seems to be related: https://github.com/stackitcloud/terraform-provider-stackit/pull/582/files

@joaopalet
Copy link
Contributor

joaopalet commented Nov 22, 2024

Hi @mhenselin,

Thanks for opening the issue.

I'm not sure I fully understood your question. Are you asking if it's possible to create a public IP without associating it to a network interface right away? You can do that by not setting the network_interface_id field.

Let me know if this doesn't answer your question.

@joaopalet
Copy link
Contributor

joaopalet commented Nov 22, 2024

The purpose of the stackit_public_ip_associate resource is to associate an existing public IP (that for some reason is managed outside of Terraform) to a network interface.

To create a public IP via Terraform that is not associated to a network interface you can use the stackit_public_ip resource.

@joaopalet joaopalet added the invalid This doesn't seem right label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants