Skip to content

Commit ba0d3a3

Browse files
authored
docs: update deadlink in migration guide and update interface to any edgeservice (#3164)
* docs: update deadlink in migration guide * fix(edgeservices): update golangci-lint
1 parent 8dd5200 commit ba0d3a3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/guides/migration_guide_v2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Hence it is named: `scaleway_object_bucket`.
103103
### Migration guide for renamed resources
104104

105105
Because the resources changed their name, we cannot use automatic state migration.
106-
We will first get the identifier of the resource, then remove the resource from the terraform state and then use [`terraform import`](https://www.terraform.io/docs/import/usage.html) to import existing resources to a renamed resource.
106+
We will first get the identifier of the resource, then remove the resource from the terraform state and then use [`terraform import`](https://www.terraform.io/terraform/cli/import) to import existing resources to a renamed resource.
107107

108108
For instance, let's suppose that you have resource in `fr-par-1` such as:
109109

internal/services/edgeservices/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func NewEdgeServicesAPIWithRegion(d *schema.ResourceData, m any) (*edgeservices.
2525
}
2626

2727
// edgeServicesAPIWithZone returns a new edge_services API and the zone
28-
func edgeServicesAPIWithZone(d *schema.ResourceData, m interface{}) (*edgeservices.API, scw.Zone, error) {
28+
func edgeServicesAPIWithZone(d *schema.ResourceData, m any) (*edgeservices.API, scw.Zone, error) {
2929
api := edgeservices.NewAPI(meta.ExtractScwClient(m))
3030

3131
zone, err := meta.ExtractZone(d, m)

internal/services/edgeservices/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func flattenLBBackendConfig(zone scw.Zone, lbConfigs *edge_services.ScalewayLBBa
123123
inner := make([]any, len(lbConfigs.LBs))
124124

125125
for i, lbConfig := range lbConfigs.LBs {
126-
inner[i] = map[string]interface{}{
126+
inner[i] = map[string]any{
127127
"id": zonal.NewIDString(zone, lbConfig.ID),
128128
"frontend_id": zonal.NewIDString(zone, lbConfig.FrontendID),
129129
"is_ssl": types.FlattenBoolPtr(lbConfig.IsSsl),
@@ -132,7 +132,7 @@ func flattenLBBackendConfig(zone scw.Zone, lbConfigs *edge_services.ScalewayLBBa
132132
}
133133
}
134134

135-
outer := []map[string]interface{}{{
135+
outer := []map[string]any{{
136136
"lb_config": inner,
137137
}}
138138

0 commit comments

Comments
 (0)