Resource Type: gcompute_subnetwork

Defined in:
lib/puppet/type/gcompute_subnetwork.rb
Providers:
google

Overview

A VPC network is a virtual version of the traditional physical networks that exist within and between physical data centers. A VPC network provides connectivity for your Compute Engine virtual machine (VM) instances, Container Engine containers, App Engine Flex services, and other network-related resources. Each GCP project contains one or more VPC networks. Each VPC network is a global entity spanning all GCP regions. This global VPC network allows VM instances and other resources to communicate with each other via internal, private IP addresses. Each VPC network is subdivided into subnets, and each subnet is contained within a single region. You can have more than one subnet in a region for a given VPC network. Each subnet has a contiguous private RFC1918 IP space. You create instances, containers, and the like in these subnets. When you create an instance, you must create it in a subnet, and the instance draws its internal IP address from that subnet. Virtual machine (VM) instances in a VPC network can communicate with instances in all other subnets of the same VPC network, regardless of region, using their RFC1918 private IP addresses. You can isolate portions of the network, even entire subnets, using firewall rules.

Properties

  • creation_timestamp

    Creation timestamp in RFC3339 text format. (output only)

  • description

    An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time.

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • gateway_address

    The gateway address for default routes to reach destination addresses outside this subnetwork. This field can be set only at resource creation time.

  • id

    The unique identifier for the resource. (output only)

  • ip_cidr_range

    The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported.

  • name (namevar)

    The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

  • network

    A reference to Network resource

  • private_ip_google_access

    Whether the VMs in this subnet can access Google services without assigned external IP addresses.

    Supported values:
    • true
    • false
  • region

    A reference to Region resource

Parameters

  • credential

    A gauth_credential name to be used to authenticate with Google Cloud Platform.

  • name

    The name of the Subnetwork.

  • project

    A Google Cloud Platform project to manage.

  • provider

    The specific backend to use for this ‘gcompute_subnetwork` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.