From bbceeb11a895e99f6ec81840e11020611cf379e0 Mon Sep 17 00:00:00 2001 From: Laure-di Date: Fri, 11 Jul 2025 15:55:40 +0200 Subject: [PATCH 1/3] docs(apple-silicon): improve example and add private_network informations --- docs/resources/apple_silicon_server.md | 34 +++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/docs/resources/apple_silicon_server.md b/docs/resources/apple_silicon_server.md index 6aa9735090..efc6a2310c 100644 --- a/docs/resources/apple_silicon_server.md +++ b/docs/resources/apple_silicon_server.md @@ -13,12 +13,34 @@ see the [API documentation](https://www.scaleway.com/en/developers/api/apple-sil ### Basic ```terraform -resource "scaleway_apple_silicon_server" "server" { +resource scaleway_apple_silicon_server server { name = "test-m1" type = "M1-M" } ``` +### Enable VPC and attach private network + +```terraform +resource scaleway_vpc vpc-apple-silicon { + name = "vpc-apple-silicon" +} + +resource scaleway_vpc_private_network pn-apple-silicon { + name = "pn-apple-silicon" + vpc_id = scaleway_vpc.vpc-apple-silicon.id +} + +resource scaleway_apple_silicon_server my-server { + name = "TestAccServerEnableVPC" + type = "M2-M" + enable_vpc = true + private_network { + id = scaleway_vpc_private_network.pn-apple-silicon.id + } +} +``` + ## Argument Reference The following arguments are supported: @@ -36,10 +58,15 @@ The following arguments are supported: associated with. - `enable_vpc` - (Optional, Default: false): Enables the VPC option when set to true. +- `private_network` - (Optional) The private networks to attach to the server + - `id` - The private network ID + - `ipam_ip_ids` - A list of IPAM IP IDs to attach to the server. + - `commitment_type` (Optional, Default: duration_24h): Activate commitment for this server - `public_bandwidth` (Optional) Configure the available public bandwidth for your server in bits per second. This option may not be available for all offers. + ## Attributes Reference 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: - `deleted_at` - The minimal date and time on which you can delete this server due to Apple licence. - `organization_id` - The organization ID the server is associated with. - `vpc_status` - The current status of the VPC option. +- `private_network` - The private networks to attach to the server + - `vlan` - The VLAN ID associated with the private network. + - `status` - The current status of the private network. + - `created_at` - The date and time the private network was created. + - `updated_at` - The date and time the private network was last updated. ## Import From c0e388cdfde601ca3134219b97bde6e9ec6592bc Mon Sep 17 00:00:00 2001 From: Laure-di Date: Fri, 11 Jul 2025 16:13:06 +0200 Subject: [PATCH 2/3] docs(apple-silicon): improve example and add private_network informations --- docs/resources/apple_silicon_server.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/docs/resources/apple_silicon_server.md b/docs/resources/apple_silicon_server.md index efc6a2310c..b0aa292adf 100644 --- a/docs/resources/apple_silicon_server.md +++ b/docs/resources/apple_silicon_server.md @@ -25,12 +25,10 @@ resource scaleway_apple_silicon_server server { resource scaleway_vpc vpc-apple-silicon { name = "vpc-apple-silicon" } - resource scaleway_vpc_private_network pn-apple-silicon { name = "pn-apple-silicon" vpc_id = scaleway_vpc.vpc-apple-silicon.id } - resource scaleway_apple_silicon_server my-server { name = "TestAccServerEnableVPC" type = "M2-M" @@ -59,14 +57,13 @@ The following arguments are supported: - `enable_vpc` - (Optional, Default: false): Enables the VPC option when set to true. - `private_network` - (Optional) The private networks to attach to the server - - `id` - The private network ID - - `ipam_ip_ids` - A list of IPAM IP IDs to attach to the server. + - `id` - The private network ID + - `ipam_ip_ids` - A list of IPAM IP IDs to attach to the server. - `commitment_type` (Optional, Default: duration_24h): Activate commitment for this server - `public_bandwidth` (Optional) Configure the available public bandwidth for your server in bits per second. This option may not be available for all offers. - ## Attributes Reference In addition to all arguments above, the following attributes are exported: @@ -87,10 +84,10 @@ In addition to all arguments above, the following attributes are exported: - `organization_id` - The organization ID the server is associated with. - `vpc_status` - The current status of the VPC option. - `private_network` - The private networks to attach to the server - - `vlan` - The VLAN ID associated with the private network. - - `status` - The current status of the private network. - - `created_at` - The date and time the private network was created. - - `updated_at` - The date and time the private network was last updated. + - `vlan` - The VLAN ID associated with the private network. + - `status` - The current status of the private network. + - `created_at` - The date and time the private network was created. + - `updated_at` - The date and time the private network was last updated. ## Import From 1bd3f0b1a58337244b2918c17cc8587e7b488703 Mon Sep 17 00:00:00 2001 From: Laure-di Date: Fri, 11 Jul 2025 16:39:23 +0200 Subject: [PATCH 3/3] fix formating --- docs/resources/apple_silicon_server.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/resources/apple_silicon_server.md b/docs/resources/apple_silicon_server.md index b0aa292adf..9a71b7fde0 100644 --- a/docs/resources/apple_silicon_server.md +++ b/docs/resources/apple_silicon_server.md @@ -13,7 +13,7 @@ see the [API documentation](https://www.scaleway.com/en/developers/api/apple-sil ### Basic ```terraform -resource scaleway_apple_silicon_server server { +resource "scaleway_apple_silicon_server" "server" { name = "test-m1" type = "M1-M" } @@ -22,14 +22,16 @@ resource scaleway_apple_silicon_server server { ### Enable VPC and attach private network ```terraform -resource scaleway_vpc vpc-apple-silicon { +resource "scaleway_vpc" "vpc-apple-silicon" { name = "vpc-apple-silicon" } -resource scaleway_vpc_private_network pn-apple-silicon { + +resource "scaleway_vpc_private_network" "pn-apple-silicon" { name = "pn-apple-silicon" vpc_id = scaleway_vpc.vpc-apple-silicon.id } -resource scaleway_apple_silicon_server my-server { + +resource "scaleway_apple_silicon_server" "my-server" { name = "TestAccServerEnableVPC" type = "M2-M" enable_vpc = true