google::compute-instance-group

Creates an instance group.

Example

google::compute-instance-group instance-group-named-ports-example
     name: "instance-group-named-ports-example"
     description: "instance-group-named-ports-example-description"
     zone: "us-central1-a"
     instances: [
         $(google::compute-instance gyro-instance-group-instance-a),
         $(google::compute-instance gyro-instance-group-instance-b)
     ]

     named-port
         name: "port-a"
         port: 123
     end

     named-port
         name: "port-b"
         port: 300
     end
end

Attributes

Attribute Description
name The name of the instance group. Must be a string 1-63 characters long and 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. Valid values satisfy the regex: [(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))]. (Required)
description The description of the instance group.
named-port list The named port of the instance group.
network The network of the instance group.
zone The zone of the instance group. (Required)
instances list A list of instances to be added to the group.

Outputs

Attribute Description
region The fully-qualified URL of the region where the instance group is located.
self-link The fully-qualified URL linking back to the instance group.
subnetwork The fully-qualified URL of the subnetwork of which this instance group belongs.