<- All Blueprints
Create a template that deploys...

GCP Compute Network

This blueprint creates a Google Cloud VPC network following best practices by defaulting to custom mode (auto_create_subnetworks set to false), allowing for manual subnet creation and better control over network configuration. It includes advanced options like routing mode and MTU with sensible defaults, providing flexibility for advanced users. The blueprint is organized to help users, including those who may not be cloud infrastructure experts, configure essential settings easily.

Template code
Automatically generated UI

---
constants:
  __name: "{{ name }}_{{ __guid }}"
variables:
  name:
    desc: "Name of the VPC network."
    required: true
    group: Network Details
  auto_create_subnetworks:
    desc: "If set to true, the network is created in auto mode with pre-created subnets."
    required: false
    group: Network Details
    default: false
  description:
    desc: "An optional description of the network."
    required: false
    group: Network Details
  routing_mode:
    desc: "The network routing mode. Options are 'GLOBAL' or 'REGIONAL'."
    required: false
    group: Advanced
    default: "REGIONAL"
    advanced: true
  mtu:
    desc: "The network MTU in bytes. The default value is 1460."
    required: false
    group: Advanced
    default: 1460
    advanced: true
groups:
  Network Details:
    order: 1
    desc: "Basic settings for the VPC network."
  Advanced:
    order: 2
    desc: "Advanced settings for the VPC network."
---

resource "google_compute_network" "__name" {
  name                    = {{ name }}
  auto_create_subnetworks = {{ auto_create_subnetworks }}
  description             = {{ description | required: false }}
  routing_mode            = {{ routing_mode | advanced: true }}
  mtu                     = {{ mtu | advanced: true }}
}

// The network is created in custom mode by default to allow manual subnet creation, promoting best practices in network design and security.
// Advanced options like routing mode and MTU are available for fine-tuning but are set to sensible defaults.
//
What am I looking at?

Talk to a Human

See Resourcely in action and learn how it can help you secure and manage your cloud infrastructure today!