Skip to content

Commit 15598f3

Browse files
committed
change endpoints
1 parent fc8d29f commit 15598f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/services/inference/deployment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func ResourceDeployment() *schema.Resource {
139139
Description: "Set the endpoint as public",
140140
Optional: true,
141141
},
142-
"private_endpoint": {
142+
"private_endpoint_id": {
143143
Type: schema.TypeString,
144144
Description: "The id of the private network",
145145
Optional: true,
@@ -182,7 +182,7 @@ func ResourceDeploymentCreate(ctx context.Context, d *schema.ResourceData, m int
182182
if publicEndpoint := d.Get("endpoints.0.public_endpoint"); publicEndpoint != nil && publicEndpoint.(bool) {
183183
endpoint.Public = &inference.EndpointSpecPublic{}
184184
}
185-
if privateEndpoint := d.Get("endpoints.0.private_endpoint"); privateEndpoint != "" {
185+
if privateEndpoint := d.Get("endpoints.0.private_endpoint_id"); privateEndpoint != "" {
186186
endpoint.PrivateNetwork = &inference.EndpointSpecPrivateNetwork{
187187
PrivateNetworkID: regional.ExpandID(privateEndpoint.(string)).ID,
188188
}

internal/services/inference/deployment_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func TestAccDeployment_Endpoint(t *testing.T) {
6161
node_type = "L4"
6262
model_name = "meta/llama-3.1-8b-instruct:fp8"
6363
endpoints {
64-
private_endpoint = "${scaleway_vpc_private_network.pn01.id}"
64+
private_endpoint_id = "${scaleway_vpc_private_network.pn01.id}"
6565
}
6666
accept_eula = true
6767
}
@@ -82,7 +82,7 @@ func TestAccDeployment_Endpoint(t *testing.T) {
8282
node_type = "L4"
8383
model_name = "meta/llama-3.1-8b-instruct:fp8"
8484
endpoints {
85-
private_endpoint = "${scaleway_vpc_private_network.pn01.id}"
85+
private_endpoint_id = "${scaleway_vpc_private_network.pn01.id}"
8686
public_endpoint = true
8787
}
8888
accept_eula = true

0 commit comments

Comments
 (0)