> For the complete documentation index, see [llms.txt](https://docs.mechcloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mechcloud.io/cloud-computing/stateless-iac/gcp/examples-free-resources/compute-engine/subnetwork.md).

# 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"
```
