terraform-provider-stackit icon indicating copy to clipboard operation
terraform-provider-stackit copied to clipboard

Support creation of Public IP

Open JorTurFer opened this issue 1 year ago • 2 comments
trafficstars

In our use case, it's required for us having the control of the inbound IP address in a deterministic way, in order to create the DNS records at some places. StackIT support the assignment of previously created IPs to SKE LoadBalancers, but the provider currently doesn't support creating the Public IPs

JorTurFer avatar Feb 15 '24 12:02 JorTurFer

Hi @JorTurFer,

Thanks for the suggestion. As mentioned in the document you linked, public IPs can be created through the STACKIT Portal, but currently the Portal is using the OpenStack API to do it.

Similarly, you can use the terraform-provider-openstack in conjunction with our STACKIT Infrastructure API to create public IPs.

You will need OpenStack credentials (user_domain_name, user_name, and password), which can be obtained after creating a user token through the Portal in your project's Infrastructure API page.

If I understood your use case correctly, I think openstack_networking_floatingip_v2 is the resource you're looking for.

joaopalet avatar Feb 15 '24 13:02 joaopalet

Hey @joaopalet , We have already created the IPs and just copycat the address in our terraform files, so we don't need to "mix providers" (at least yet). My request has been more for improving the process for newcomers than an issue/blocker for us 🤣

But thanks for the suggestion! 😄

JorTurFer avatar Feb 15 '24 13:02 JorTurFer