Skip to content

Commit ac90b7c

Browse files
authored
Merge branch 'master' into datasource-projects
2 parents 6f18f35 + 44c1464 commit ac90b7c

File tree

141 files changed

+1435
-973
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+1435
-973
lines changed

.github/workflows/terrafmt.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Run terrafmt
2+
on:
3+
pull_request:
4+
push:
5+
merge_group:
6+
7+
jobs:
8+
terrafmt:
9+
runs-on: ubuntu-latest
10+
steps:
11+
# Checkout should always be before setup-go to ensure caching is working
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-go@v5
14+
with:
15+
go-version: 1.24.0
16+
- name: Run terrafmt on documentation
17+
run: go tool terrafmt fmt --verbose --check ./docs

docs/data-sources/account_ssh_key.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The following commands allow you to:
2020
```hcl
2121
# Get info by SSH key name
2222
data "scaleway_account_ssh_key" "my_key" {
23-
name = "my-key-name"
23+
name = "my-key-name"
2424
}
2525
2626
# Get info by SSH key id

docs/data-sources/baremetal_easy_partitioning.md

+25-25
Original file line numberDiff line numberDiff line change
@@ -13,47 +13,47 @@ This data source simplifies the process of generating valid partitioning configu
1313

1414
```hcl
1515
data "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
2525
data "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
3030
data "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
3636
resource "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
4141
data "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
4848
resource "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.

docs/data-sources/baremetal_os.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You can also use the [scaleway-cli](https://github.com/scaleway/scaleway-cli) wi
1515
```hcl
1616
# Get info by os name and version
1717
data "scaleway_baremetal_os" "by_name" {
18-
name = "Ubuntu"
18+
name = "Ubuntu"
1919
version = "20.04 LTS (Focal Fossa)"
2020
}
2121

docs/data-sources/billing_consumptions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ In addition to all arguments above, the following attributes are exported:
3333
- `unit` - The unit of consumed quantity.
3434
- `billed_quantity` - The consumed quantity.
3535
- `project_id` - The project ID of the consumption.
36-
- `updated_at` - The last consumption update date.
36+
- `updated_at` - The last consumption update date.

docs/data-sources/block_snapshot.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ data "scaleway_block_snapshot" "my_snapshot" {
2525
2626
// Get info by snapshot name and volume id
2727
data "scaleway_block_snapshot" "my_snapshot" {
28-
name = "my-name"
28+
name = "my-name"
2929
volume_id = "11111111-1111-1111-1111-111111111111"
3030
}
3131

docs/data-sources/cockpit_source.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The following example retrieves a Cockpit data source by its unique ID.
1717

1818
```terraform
1919
data "scaleway_cockpit_source" "example" {
20-
id = "fr-par/11111111-1111-1111-1111-111111111111"
20+
id = "fr-par/11111111-1111-1111-1111-111111111111"
2121
}
2222
```
2323

@@ -27,9 +27,9 @@ You can also retrieve a data source by specifying filtering criteria such as `na
2727

2828
```terraform
2929
data "scaleway_cockpit_source" "filtered" {
30-
project_id = "11111111-1111-1111-1111-111111111111"
31-
region = "fr-par"
32-
name = "my-data-source"
30+
project_id = "11111111-1111-1111-1111-111111111111"
31+
region = "fr-par"
32+
name = "my-data-source"
3333
}
3434
```
3535

docs/data-sources/container.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ resource scaleway_container_namespace main {
2222
}
2323
2424
resource scaleway_container main {
25-
name = "test-container-data"
26-
namespace_id = scaleway_container_namespace.main.id
25+
name = "test-container-data"
26+
namespace_id = scaleway_container_namespace.main.id
2727
}
2828
2929
// Get info by container name
3030
data "scaleway_container" "by_name" {
31-
namespace_id = scaleway_container_namespace.main.id
32-
name = scaleway_container.main.name
31+
namespace_id = scaleway_container_namespace.main.id
32+
name = scaleway_container.main.name
3333
}
3434
3535
// Get info by container ID
3636
data "scaleway_container" "by_id" {
37-
namespace_id = scaleway_container_namespace.main.id
38-
container_id = scaleway_container.main.id
37+
namespace_id = scaleway_container_namespace.main.id
38+
container_id = scaleway_container.main.id
3939
}
4040
```
4141

docs/data-sources/flexible_ips.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gets information about multiple Flexible IPs.
1212
```hcl
1313
# Find ips that share the same tags
1414
data "scaleway_flexible_ips" "fips_by_tags" {
15-
tags = [ "a tag" ]
15+
tags = ["a tag"]
1616
}
1717
1818
# Find ips that share the same Server ID
@@ -21,19 +21,19 @@ data "scaleway_baremetal_offer" "my_offer" {
2121
}
2222
2323
resource "scaleway_baremetal_server" "base" {
24-
name = "MyServer"
25-
offer = data.scaleway_baremetal_offer.my_offer.offer_id
26-
install_config_afterward = true
24+
name = "MyServer"
25+
offer = data.scaleway_baremetal_offer.my_offer.offer_id
26+
install_config_afterward = true
2727
}
2828
2929
resource "scaleway_flexible_ip" "first" {
3030
server_id = scaleway_baremetal_server.base.id
31-
tags = [ "foo", "first" ]
31+
tags = ["foo", "first"]
3232
}
3333
3434
resource "scaleway_flexible_ip" "second" {
3535
server_id = scaleway_baremetal_server.base.id
36-
tags = [ "foo", "second" ]
36+
tags = ["foo", "second"]
3737
}
3838
3939
data "scaleway_flexible_ips" "fips_by_server_id" {

docs/data-sources/function.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ The following commands allow you to:
2121
```terraform
2222
// Get info by function name
2323
data "scaleway_function" "my_function" {
24-
name = "my-namespace-name"
24+
name = "my-namespace-name"
2525
namespace_id = "11111111-1111-1111-1111-111111111111"
2626
}
2727
2828
// Get info by function ID
2929
data "scaleway_function" "my_function" {
30-
function_id = "11111111-1111-1111-1111-111111111111"
30+
function_id = "11111111-1111-1111-1111-111111111111"
3131
namespace_id = "11111111-1111-1111-1111-111111111111"
3232
}
3333
```

docs/data-sources/iam_ssh_key.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Use this data source to get SSH key information based on its ID or name.
1212
```hcl
1313
# Get info by SSH key name
1414
data "scaleway_iam_ssh_key" "my_key" {
15-
name = "my-key-name"
15+
name = "my-key-name"
1616
}
1717
1818
# Get info by SSH key id

docs/data-sources/instance_image.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gets information about an instance image.
1212
```hcl
1313
# Get info by image name
1414
data "scaleway_instance_image" "my_image" {
15-
name = "my-image-name"
15+
name = "my-image-name"
1616
}
1717
1818
# Get info by image id

docs/data-sources/instance_placement_group.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gets information about a Security Group.
1212
```hcl
1313
# Get info by placement group name
1414
data "scaleway_instance_placement_group" "my_key" {
15-
name = "my-placement-group-name"
15+
name = "my-placement-group-name"
1616
}
1717
1818
# Get info by placement group id
@@ -41,4 +41,4 @@ In addition to all above arguments, the following attributes are exported:
4141
- `policy_mode` -The [policy mode](https://developers.scaleway.com/en/products/instance/api/#placement-groups-d8f653) of the placement group.
4242
- `tags` - A list of tags to apply to the placement group.
4343
- `policy_respected` - Is true when the policy is respected.
44-
- `organization_id` - The organization ID the placement group is associated with.
44+
- `organization_id` - The organization ID the placement group is associated with.

docs/data-sources/instance_private_nic.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ Gets information about an instance private NIC.
1111

1212
```hcl
1313
data "scaleway_instance_private_nic" "by_nic_id" {
14-
server_id = "11111111-1111-1111-1111-111111111111"
14+
server_id = "11111111-1111-1111-1111-111111111111"
1515
private_nic_id = "11111111-1111-1111-1111-111111111111"
1616
}
1717
1818
data "scaleway_instance_private_nic" "by_pn_id" {
19-
server_id = "11111111-1111-1111-1111-111111111111"
19+
server_id = "11111111-1111-1111-1111-111111111111"
2020
private_network_id = "11111111-1111-1111-1111-111111111111"
2121
}
2222
2323
data "scaleway_instance_private_nic" "by_tags" {
2424
server_id = "11111111-1111-1111-1111-111111111111"
25-
tags = ["mytag"]
25+
tags = ["mytag"]
2626
}
2727
```
2828

docs/data-sources/instance_security_group.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gets information about a Security Group.
1212
```hcl
1313
# Get info by security group name
1414
data "scaleway_instance_security_group" "my_key" {
15-
name = "my-security-group-name"
15+
name = "my-security-group-name"
1616
}
1717
1818
# Get info by security group id

docs/data-sources/instance_server.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gets information about an instance server.
1212
```hcl
1313
# Get info by server name
1414
data "scaleway_instance_server" "my_key" {
15-
name = "my-server-name"
15+
name = "my-server-name"
1616
}
1717
1818
# Get info by server id

docs/data-sources/instance_servers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Gets information about multiple instance servers.
1414
```hcl
1515
# Find servers by tag
1616
data "scaleway_instance_servers" "my_key" {
17-
tags = ["tag"]
17+
tags = ["tag"]
1818
}
1919
2020
# Find servers by name and zone

docs/data-sources/iot_device.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ data "scaleway_iot_device" "my_device" {
1717
1818
# Get info by name and hub_id
1919
data "scaleway_iot_device" "my_device" {
20-
name = "foobar"
20+
name = "foobar"
2121
hub_id = "11111111-1111-1111-1111-111111111111"
2222
}
2323

docs/data-sources/ipam_ip.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ Get an Instance's IP on a Private Network.
2727
```terraform
2828
# Connect your instance to a private network using a private nic.
2929
resource "scaleway_instance_private_nic" "nic" {
30-
server_id = scaleway_instance_server.server.id
30+
server_id = scaleway_instance_server.server.id
3131
private_network_id = scaleway_vpc_private_network.pn.id
3232
}
3333
3434
# Find server private IPv4 using private-nic mac address
3535
data "scaleway_ipam_ip" "by_mac" {
3636
mac_address = scaleway_instance_private_nic.nic.mac_address
37-
type = "ipv4"
37+
type = "ipv4"
3838
}
3939
4040
# Find server private IPv4 using private-nic id
4141
data "scaleway_ipam_ip" "by_id" {
4242
resource {
43-
id = scaleway_instance_private_nic.nic.id
43+
id = scaleway_instance_private_nic.nic.id
4444
type = "instance_private_nic"
4545
}
4646
type = "ipv4"

docs/data-sources/k8s_cluster.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gets information about a Kubernetes Cluster.
1212
```hcl
1313
# Get info by cluster name
1414
data "scaleway_k8s_cluster" "my_key" {
15-
name = "my-cluster-name"
15+
name = "my-cluster-name"
1616
}
1717
1818
# Get info by cluster id

docs/data-sources/k8s_pool.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gets information about a Kubernetes Cluster's Pool.
1212
```hcl
1313
# Get info by pokl name (need cluster_id)
1414
data "scaleway_k8s_pool" "my_key" {
15-
name = "my-pool-name"
15+
name = "my-pool-name"
1616
cluster_id = "11111111-1111-1111-1111-111111111111"
1717
}
1818

docs/data-sources/lb.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ In addition to all arguments above, the following attributes are exported:
4545

4646
- `tags` - The tags associated with the Load Balancer.
4747

48-
- `zone` - (Defaults to [provider](../index.md#zone) `zone`) The [zone](../guides/regions_and_zones.md#zones) in which the Load Balancer exists.
48+
- `zone` - (Defaults to [provider](../index.md#zone) `zone`) The [zone](../guides/regions_and_zones.md#zones) in which the Load Balancer exists.

docs/data-sources/lb_acls.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ In addition to all arguments above, the following attributes are exported:
5454
- `http_filter` - The HTTP filter to match.
5555
- `http_filter_value` - The possible values to match for a given HTTP filter.
5656
- `http_filter_option` - A list of possible values for the HTTP filter based on the HTTP header.
57-
- `invert` - The condition will be of type "unless" if invert is set to `true`
57+
- `invert` - The condition will be of type "unless" if invert is set to `true`

docs/data-sources/lb_backend.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ The following arguments are supported:
5252

5353
## Attributes Reference
5454

55-
See the [Load Balancer backend resource](../resources/lb_backend.md) for details on the returned attributes - they are identical.
55+
See the [Load Balancer backend resource](../resources/lb_backend.md) for details on the returned attributes - they are identical.

0 commit comments

Comments
 (0)