Closed furstenbergs closed 3 months ago
Hey @furstenbergs Can you do the following.
Via UI check if resource has been provisioned or not. if yes delete it to free up your quota. do a export TF_LOG=DEBUG
in your terminal. and then do a terraform apply. You should be able to see a detailed reason now.
Hi @uzaxirr Thanks for the quick response
No resources have been provisioned.
Running again with export TF_LOG=DEBUG
shows the reason for failure is because my CIDR is to large.
2024-07-16T10:20:26.110+0200 [INFO] provider.terraform-provider-civo_v1.0.46: 2024/07/16 10:20:26 [INFO] Retrying after error: Error: Unknown error response - status: 400 Bad Request, code: 400, reason: {"code":"invalid_v4_cidr_provided","reason":"The provided v4 CIDR must be a valid CIDR with a subnet mask comprehended between /22 and /28"}: timestamp="2024-07-16T10:20:26.109+0200"
This is my mistake as I assumed I can create a "/16" network and was not aware off the limitation.
However, perhaps this is a point of improvement. IE, if terrafrom is not able to apply because it is not a supported configuration, please respond with the error and stop.
Thankss for bringing this into light @furstenbergs I'll you will surely see a fix for this in next release.
Description
Hi,
I recently starting testing Civo as an alternative cloud provider. I prefer to use Terraform to provision all my infrastructure. For a start, I'm just trying to create a new network. Here is my Terrafrom configuration:
However, the network fails to create and terrafrom is retrying, but seems with each retry, it is increasing the usage.
Screenshots
Before Terraform run:
After Terraform run, and no resources created:
After a few minuets the usages drops back down to "2".
Additional information
No response