Skip to content

Commit e27278f

Browse files
authored
docs(apple-silicon): improve example and add private_network informat… (#3212)
* docs(apple-silicon): improve example and add private_network informations * docs(apple-silicon): improve example and add private_network informations * fix formating
1 parent 8da7dc9 commit e27278f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

docs/resources/apple_silicon_server.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,28 @@ resource "scaleway_apple_silicon_server" "server" {
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,6 +58,10 @@ 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.
@@ -59,6 +85,11 @@ In addition to all arguments above, the following attributes are exported:
5985
- `deleted_at` - The minimal date and time on which you can delete this server due to Apple licence.
6086
- `organization_id` - The organization ID the server is associated with.
6187
- `vpc_status` - The current status of the VPC option.
88+
- `private_network` - The private networks to attach to the server
89+
- `vlan` - The VLAN ID associated with the private network.
90+
- `status` - The current status of the private network.
91+
- `created_at` - The date and time the private network was created.
92+
- `updated_at` - The date and time the private network was last updated.
6293

6394
## Import
6495

0 commit comments

Comments
 (0)