civo / terraform-provider-civo

Terraform Civo provider
https://www.civo.com
Mozilla Public License 2.0
65 stars 51 forks source link

[FEATURE] Allow "civo_network" to specify the nameserver and cidr #202

Closed mrsimonemms closed 2 months ago

mrsimonemms commented 2 months ago

Description

The Civo CLI allows a network to be created with both --cidr-v4 and --nameservers-v4 specified. This doesn't appear to be possible with Terrform.

  1. Am I missing something and is it already possible to do with Terraform?
  2. If not, can we have some way of doing this with TF please?

Screenshots

No response

Additional information

No response

uzaxirr commented 2 months ago

Hey, from what i see is that CIDR and Nameserver is already been implemented in the network resource. https://github.com/civo/terraform-provider-civo/blob/master/civo/network/resource_network.go#L33

You can use the fields cidr_v4 and nameservers_v4 in your network block. Let me know if this resolves your query.

mrsimonemms commented 2 months ago

Yes, you're right. It doesn't solve the problem of use in Terraform though - this feature was only done ~3 weeks ago, but the latest (1.0.39) release was done in October.

I guess a new release should solve that problem. Any idea when the next release is scheduled?

mertcangokgoz commented 2 months ago

I'm waiting for the new version to arrive. 👍🏻 especially this one

mrsimonemms commented 2 months ago

@uzaxirr what's the policy/release schedule? Anything I can do to help expedite this?

mertcangokgoz commented 2 months ago

Anything? @uzaxirr

uzaxirr commented 2 months ago

Here you go everyone: https://github.com/civo/terraform-provider-civo/releases/tag/v1.0.40

uzaxirr commented 2 months ago

Closing this issue wrt: #200