Expand description
Manages a VM instance resource within GCE. For more information see the official documentation and API.
This resource is specifically to create a compute instance from a given
source_machine_image
. To create an instance without a machine image, use the
gcp.compute.Instance
resource.
§Example Usage
resources:
tpl:
type: gcp:compute:InstanceFromMachineImage
properties:
name: instance-from-machine-image
zone: us-central1-a
sourceMachineImage: projects/PROJECT-ID/global/machineImages/NAME
canIpForward: false
labels:
my_key: my_value
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments