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. The name must be 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. (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.
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.