Skip to content

Commit 74e7cd5

Browse files
committed
docs(apple-silicon): improve example and add private_network informations
1 parent 207a35d commit 74e7cd5

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

docs/resources/apple_silicon_server.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,34 @@ see the [API documentation](https://www.scaleway.com/en/developers/api/apple-sil
1313
### Basic
1414

1515
```terraform
16-
resource "scaleway_apple_silicon_server" "server" {
16+
resource scaleway_apple_silicon_server server {
1717
name = "test-m1"
1818
type = "M1-M"
1919
}
2020
```
2121

22+
### Enable VPC and attach private network
23+
24+
```terraform
25+
resource scaleway_vpc vpc-apple-silicon {
26+
name = "vpc-apple-silicon"
27+
}
28+
29+
resource scaleway_vpc_private_network pn-apple-silicon {
30+
name = "pn-apple-silicon"
31+
vpc_id = scaleway_vpc.vpc-apple-silicon.id
32+
}
33+
34+
resource scaleway_apple_silicon_server my-server {
35+
name = "TestAccServerEnableVPC"
36+
type = "M2-M"
37+
enable_vpc = true
38+
private_network {
39+
id = scaleway_vpc_private_network.pn-apple-silicon.id
40+
}
41+
}
42+
```
43+
2244
## Argument Reference
2345

2446
The following arguments are supported:
@@ -36,10 +58,15 @@ The following arguments are supported:
3658
associated with.
3759
- `enable_vpc` - (Optional, Default: false): Enables the VPC option when set to true.
3860

61+
- `private_network` - (Optional) The private networks to attach to the server
62+
- `id` - The private network ID
63+
- `ipam_ip_ids` - A list of IPAM IP IDs to attach to the server.
64+
3965
- `commitment_type` (Optional, Default: duration_24h): Activate commitment for this server
4066

4167
- `public_bandwidth` (Optional) Configure the available public bandwidth for your server in bits per second. This option may not be available for all offers.
4268

69+
4370
## Attributes Reference
4471

4572
In addition to all arguments above, the following attributes are exported:
@@ -59,6 +86,11 @@ In addition to all arguments above, the following attributes are exported:
5986
- `deleted_at` - The minimal date and time on which you can delete this server due to Apple licence.
6087
- `organization_id` - The organization ID the server is associated with.
6188
- `vpc_status` - The current status of the VPC option.
89+
- `private_network` - The private networks to attach to the server
90+
- `vlan` - The VLAN ID associated with the private network.
91+
- `status` - The current status of the private network.
92+
- `created_at` - The date and time the private network was created.
93+
- `updated_at` - The date and time the private network was last updated.
6294

6395
## Import
6496

0 commit comments

Comments
 (0)