Skip to content

Commit b466c79

Browse files
author
Quentin Brosse
authored
doc(guides): fix version argument in v1 to v2 migration guide (#736)
1 parent 98e7aea commit b466c79

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

docs/guides/migration_guide_v2.md

+20-6
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,34 @@ If you are following these recommendations, update the version constraints in yo
2121
Update to latest `1.X` version:
2222

2323
```hcl
24-
provider "scaleway" {
25-
# ... other configuration ...
24+
terraform {
25+
required_providers {
26+
scaleway = {
27+
source = "scaleway/scaleway"
28+
version = "~> 1.17"
29+
}
30+
}
31+
}
2632
27-
version = "~> 1.11"
33+
provider "scaleway" {
34+
# ...
2835
}
2936
```
3037

3138
Update to latest 2.X version:
3239

3340
```hcl
34-
provider "scaleway" {
35-
# ... other configuration ...
41+
terraform {
42+
required_providers {
43+
scaleway = {
44+
source = "scaleway/scaleway"
45+
version = "~> 2.0"
46+
}
47+
}
48+
}
3649
37-
version = "~> 2.0"
50+
provider "scaleway" {
51+
# ...
3852
}
3953
```
4054

0 commit comments

Comments
 (0)