File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
internal/services/inference Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 55
66 "github.com/hashicorp/terraform-plugin-sdk/v2/diag"
77 "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
8+ "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
89 inference "github.com/scaleway/scaleway-sdk-go/api/inference/v1beta1"
910 "github.com/scaleway/scaleway-sdk-go/scw"
1011 "github.com/scaleway/terraform-provider-scaleway/v2/internal/httperrors"
@@ -67,16 +68,18 @@ func ResourceDeployment() *schema.Resource {
6768 Description : "The tags associated with the deployment" ,
6869 },
6970 "min_size" : {
70- Type : schema .TypeInt ,
71- Optional : true ,
72- Default : 1 ,
73- Description : "The minimum size of the pool" ,
71+ Type : schema .TypeInt ,
72+ Optional : true ,
73+ Computed : true ,
74+ Description : "The minimum size of the pool" ,
75+ ValidateFunc : validation .IntAtLeast (1 ),
7476 },
7577 "max_size" : {
76- Type : schema .TypeInt ,
77- Optional : true ,
78- Default : 1 ,
79- Description : "The maximum size of the pool" ,
78+ Type : schema .TypeInt ,
79+ Optional : true ,
80+ Computed : true ,
81+ Description : "The maximum size of the pool" ,
82+ ValidateFunc : validation .IntAtLeast (1 ),
8083 },
8184 "size" : {
8285 Type : schema .TypeInt ,
You can’t perform that action at this time.
0 commit comments