Skip to content

Commit

Permalink
chore: regenerate docs & examples
Browse files Browse the repository at this point in the history
  • Loading branch information
soggycactus committed Feb 20, 2025
1 parent b1b817c commit 7f7ba39
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 27 deletions.
46 changes: 36 additions & 10 deletions docs/resources/networking_vpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,52 @@ CoreWeave VPC

### Optional

- `dns_servers` (Set of String)
- `host_prefixes` (Set of String)
- `pub_import` (Boolean)
- `dhcp` (Attributes) (see [below for nested schema](#nestedatt--dhcp))
- `egress` (Attributes) (see [below for nested schema](#nestedatt--egress))
- `host_prefix` (String)
- `ingress` (Attributes) (see [below for nested schema](#nestedatt--ingress))
- `vpc_prefixes` (Attributes Set) (see [below for nested schema](#nestedatt--vpc_prefixes))

### Read-Only

- `id` (String) The unique identifier of the vpc.

<a id="nestedatt--dhcp"></a>
### Nested Schema for `dhcp`

Optional:

- `dns` (Attributes) (see [below for nested schema](#nestedatt--dhcp--dns))

<a id="nestedatt--dhcp--dns"></a>
### Nested Schema for `dhcp.dns`

Optional:

- `servers` (Set of String)



<a id="nestedatt--egress"></a>
### Nested Schema for `egress`

Optional:

- `disable_public_access` (Boolean)


<a id="nestedatt--ingress"></a>
### Nested Schema for `ingress`

Optional:

- `disable_public_services` (Boolean)


<a id="nestedatt--vpc_prefixes"></a>
### Nested Schema for `vpc_prefixes`

Required:

- `name` (String)
- `value` (String)

Optional:

- `disable_external_propagate` (Boolean)
- `disable_host_bgp_peering` (Boolean)
- `host_dhcp_route` (Boolean)
- `public` (Boolean)
9 changes: 4 additions & 5 deletions examples/resources/cks/cluster.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "coreweave_networking_vpc" "default" {
name = "default"
zone = "US-EAST-04A"
host_prefixes = ["10.16.192.0/18", "172.0.0.0/18"]
name = "default"
zone = "US-EAST-04A"
host_prefix = "10.16.192.0/18"
vpc_prefixes = [
{
name = "pod cidr"
Expand All @@ -16,7 +16,6 @@ resource "coreweave_networking_vpc" "default" {
value = "10.32.4.0/22"
},
]
dns_servers = ["1.1.1.1", "8.8.8.8"]
}

resource "coreweave_cks_cluster" "default" {
Expand Down Expand Up @@ -48,4 +47,4 @@ resource "coreweave_cks_cluster" "default" {
ca = filebase64("${path.module}/example-ca.crt")
server = "https://samples.auth0.com/"
}
}
}
33 changes: 21 additions & 12 deletions examples/resources/networking/vpc.tf
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
resource "coreweave_networking_vpc" "test" {
name = "test"
zone = "US-EAST-04A"
host_prefixes = ["10.16.192.0/18", "172.0.0.0/18"]
resource "coreweave_networking_vpc" "example" {
name = "default"
zone = "US-EAST-04A"
host_prefix = "10.16.192.0/18"
vpc_prefixes = [
{
name = "cidr a"
value = "10.32.4.0/22"
},
{
name = "cidr b"
value = "10.45.4.0/22"
disable_external_propagate = true
disable_host_bgp_peering = true
host_dhcp_route = true
public = true
name = "cidr b"
value = "10.45.4.0/22"
}
]
dns_servers = ["1.1.1.1", "8.8.8.8"]
}

egress = {
disable_public_access = false
}

ingress = {
disable_public_services = false
}

dhcp = {
dns = {
servers = ["1.1.1.1", "8.8.8.8"]
}
}
}

0 comments on commit 7f7ba39

Please sign in to comment.