-
Notifications
You must be signed in to change notification settings - Fork 53
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
[BUG] Make NetworkID and FirewallID Mandatory for Instance resource #351
Comments
hello @uzaxirr @alessandroargentieri I went through the codebase of terraform-provider-civo. Here's my understanding of this issue and how I am approaching this problem. My Understanding - I see in the resource_instance.go file, While firewall_id is marked as a required field. In case it is not set, the default firewall will be used. (As per description) Then, I check the resourceInstanceCreate() method, in case network_id is not passed, we fetch the default network and set the networkID. While in case of firewall_id, we just check if it's present, we set the instance firewall. My proposed solution and doubts -
![]() Another question - If we were already setting default values for both firewall_id and network_id when they weren't passed, why did this issue occur in the first place? Sorry for these many doubts, want to have full context for my understanding. |
hey @dipu989 |
Will take a look at the docs 🫡 |
Description
context: https://civo-community.slack.com/archives/C0186KTRLPP/p1728269229482269?thread_ts=1728189777.364919&cid=C0186KTRLPP
Acceptance Criteria
The text was updated successfully, but these errors were encountered: