# Subnetwork

{% hint style="info" %}
These examples assume that linked resources (Network) already exist in the same environment.
{% endhint %}

## Creating a subnetwork

```yaml
resources:
  - type: compute.v1.subnetwork
    name: subnet1
    props:
      network: global/networks/vpc1
      ip_cidr_range: "10.1.0.0/16"
```
