@@ -13,47 +13,47 @@ This data source simplifies the process of generating valid partitioning configu
1313
1414``` hcl
1515data "scaleway_easy_partitioning" "default" {
16- offer_id = "11111111-1111-1111-1111-111111111111"
17- os_id = "22222222-2222-2222-2222-222222222222"
18- swap = true
19- extra_partition = true
20- ext_4_mountpoint = "/data"
16+ offer_id = "11111111-1111-1111-1111-111111111111"
17+ os_id = "22222222-2222-2222-2222-222222222222"
18+ swap = true
19+ extra_partition = true
20+ ext_4_mountpoint = "/data"
2121}
2222```
2323
2424``` hcl
2525data "scaleway_baremetal_offer" "my_offer" {
26- zone = "fr-par-1"
27- name = "EM-B220E-NVME"
26+ zone = "fr-par-1"
27+ name = "EM-B220E-NVME"
2828}
2929
3030data "scaleway_baremetal_os" "my_os" {
31- zone = "fr-par-1"
32- name = "Ubuntu"
33- version = "22.04 LTS (Jammy Jellyfish)"
31+ zone = "fr-par-1"
32+ name = "Ubuntu"
33+ version = "22.04 LTS (Jammy Jellyfish)"
3434}
3535
3636resource "scaleway_iam_ssh_key" "main" {
37- name = "my-ssh-key"
38- public_key = "my-ssh-key-public"
37+ name = "my-ssh-key"
38+ public_key = "my-ssh-key-public"
3939}
4040
4141data "scaleway_baremetal_easy_partitioning" "test" {
42- offer_id = data.scaleway_baremetal_offer.my_offer.offer_id
43- os_id = data.scaleway_baremetal_os.my_os.os_id
44- swap = false
45- ext_4_mountpoint = "/hello"
42+ offer_id = data.scaleway_baremetal_offer.my_offer.offer_id
43+ os_id = data.scaleway_baremetal_os.my_os.os_id
44+ swap = false
45+ ext_4_mountpoint = "/hello"
4646}
4747
4848resource "scaleway_baremetal_server" "base" {
49- name = "my-baremetal-server"
50- zone = "fr-par-1"
51- description = "test a description"
52- offer = data.scaleway_baremetal_offer.my_offer.offer_id
53- os = data.scaleway_baremetal_os.my_os.os_id
54- partitioning = data.scaleway_baremetal_easy_partitioning.test.json_partition
55- tags = ["terraform-test", "scaleway_baremetal_server", "minimal", "edited"]
56- ssh_key_ids = [scaleway_iam_ssh_key.main.id]
49+ name = "my-baremetal-server"
50+ zone = "fr-par-1"
51+ description = "test a description"
52+ offer = data.scaleway_baremetal_offer.my_offer.offer_id
53+ os = data.scaleway_baremetal_os.my_os.os_id
54+ partitioning = data.scaleway_baremetal_easy_partitioning.test.json_partition
55+ tags = ["terraform-test", "scaleway_baremetal_server", "minimal", "edited"]
56+ ssh_key_ids = [scaleway_iam_ssh_key.main.id]
5757}
5858```
5959
@@ -75,4 +75,4 @@ In addition to all above arguments, the following attributes are exported:
7575
7676- ` id ` — A composite identifier derived from offer_id and os_id.
7777
78- - ` json_partition ` — A validated partitioning schema in JSON format that can be directly used for BareMetal server deployment.
78+ - ` json_partition ` — A validated partitioning schema in JSON format that can be directly used for BareMetal server deployment.
0 commit comments