Skip to content

Commit

Permalink
Make firewall ID to be a required field for instance (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
uzaxirr committed Jun 27, 2024
1 parent 55973e3 commit a55e8a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions civo/instances/resource_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a55e8a6

Please sign in to comment.