From a55e8a6f81cea829efb886101e7641ac216c81cc Mon Sep 17 00:00:00 2001 From: Uzair Ali <72073401+uzaxirr@users.noreply.github.com> Date: Thu, 27 Jun 2024 16:20:25 +0530 Subject: [PATCH] Make firewall ID to be a required field for instance (#237) --- civo/instances/resource_instance.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/civo/instances/resource_instance.go b/civo/instances/resource_instance.go index 3aa5241..96e2c31 100644 --- a/civo/instances/resource_instance.go +++ b/civo/instances/resource_instance.go @@ -92,10 +92,10 @@ func ResourceInstance() *schema.Resource { Description: "The ID of an already uploaded SSH public key to use for login to the default user (optional; if one isn't provided a random password will be set and returned in the initial_password field)", }, "firewall_id": { - Type: schema.TypeString, - Optional: true, - Computed: true, - Description: "The ID of the firewall to use, from the current list. If left blank or not sent, the default firewall will be used (open to all)", + Type: schema.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, + Description: "The ID of the firewall to use, from the current list. If left blank or not sent, the default firewall will be used (open to all)", }, "tags": { Type: schema.TypeSet,