1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. InstanceFromTemplate
Google Cloud Classic v7.2.2 published on Monday, Jan 1, 0001 by Pulumi

gcp.compute.InstanceFromTemplate

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.2.2 published on Monday, Jan 1, 0001 by Pulumi

    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_instance_template. To create an instance without a template, use the gcp.compute.Instance resource.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var tplInstanceTemplate = new Gcp.Compute.InstanceTemplate("tplInstanceTemplate", new()
        {
            MachineType = "e2-medium",
            Disks = new[]
            {
                new Gcp.Compute.Inputs.InstanceTemplateDiskArgs
                {
                    SourceImage = "debian-cloud/debian-11",
                    AutoDelete = true,
                    DiskSizeGb = 100,
                    Boot = true,
                },
            },
            NetworkInterfaces = new[]
            {
                new Gcp.Compute.Inputs.InstanceTemplateNetworkInterfaceArgs
                {
                    Network = "default",
                },
            },
            Metadata = 
            {
                { "foo", "bar" },
            },
            CanIpForward = true,
        });
    
        var tplInstanceFromTemplate = new Gcp.Compute.InstanceFromTemplate("tplInstanceFromTemplate", new()
        {
            Zone = "us-central1-a",
            SourceInstanceTemplate = tplInstanceTemplate.SelfLinkUnique,
            CanIpForward = false,
            Labels = 
            {
                { "my_key", "my_value" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		tplInstanceTemplate, err := compute.NewInstanceTemplate(ctx, "tplInstanceTemplate", &compute.InstanceTemplateArgs{
    			MachineType: pulumi.String("e2-medium"),
    			Disks: compute.InstanceTemplateDiskArray{
    				&compute.InstanceTemplateDiskArgs{
    					SourceImage: pulumi.String("debian-cloud/debian-11"),
    					AutoDelete:  pulumi.Bool(true),
    					DiskSizeGb:  pulumi.Int(100),
    					Boot:        pulumi.Bool(true),
    				},
    			},
    			NetworkInterfaces: compute.InstanceTemplateNetworkInterfaceArray{
    				&compute.InstanceTemplateNetworkInterfaceArgs{
    					Network: pulumi.String("default"),
    				},
    			},
    			Metadata: pulumi.Map{
    				"foo": pulumi.Any("bar"),
    			},
    			CanIpForward: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewInstanceFromTemplate(ctx, "tplInstanceFromTemplate", &compute.InstanceFromTemplateArgs{
    			Zone:                   pulumi.String("us-central1-a"),
    			SourceInstanceTemplate: tplInstanceTemplate.SelfLinkUnique,
    			CanIpForward:           pulumi.Bool(false),
    			Labels: pulumi.StringMap{
    				"my_key": pulumi.String("my_value"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.InstanceTemplate;
    import com.pulumi.gcp.compute.InstanceTemplateArgs;
    import com.pulumi.gcp.compute.inputs.InstanceTemplateDiskArgs;
    import com.pulumi.gcp.compute.inputs.InstanceTemplateNetworkInterfaceArgs;
    import com.pulumi.gcp.compute.InstanceFromTemplate;
    import com.pulumi.gcp.compute.InstanceFromTemplateArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var tplInstanceTemplate = new InstanceTemplate("tplInstanceTemplate", InstanceTemplateArgs.builder()        
                .machineType("e2-medium")
                .disks(InstanceTemplateDiskArgs.builder()
                    .sourceImage("debian-cloud/debian-11")
                    .autoDelete(true)
                    .diskSizeGb(100)
                    .boot(true)
                    .build())
                .networkInterfaces(InstanceTemplateNetworkInterfaceArgs.builder()
                    .network("default")
                    .build())
                .metadata(Map.of("foo", "bar"))
                .canIpForward(true)
                .build());
    
            var tplInstanceFromTemplate = new InstanceFromTemplate("tplInstanceFromTemplate", InstanceFromTemplateArgs.builder()        
                .zone("us-central1-a")
                .sourceInstanceTemplate(tplInstanceTemplate.selfLinkUnique())
                .canIpForward(false)
                .labels(Map.of("my_key", "my_value"))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_gcp as gcp
    
    tpl_instance_template = gcp.compute.InstanceTemplate("tplInstanceTemplate",
        machine_type="e2-medium",
        disks=[gcp.compute.InstanceTemplateDiskArgs(
            source_image="debian-cloud/debian-11",
            auto_delete=True,
            disk_size_gb=100,
            boot=True,
        )],
        network_interfaces=[gcp.compute.InstanceTemplateNetworkInterfaceArgs(
            network="default",
        )],
        metadata={
            "foo": "bar",
        },
        can_ip_forward=True)
    tpl_instance_from_template = gcp.compute.InstanceFromTemplate("tplInstanceFromTemplate",
        zone="us-central1-a",
        source_instance_template=tpl_instance_template.self_link_unique,
        can_ip_forward=False,
        labels={
            "my_key": "my_value",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const tplInstanceTemplate = new gcp.compute.InstanceTemplate("tplInstanceTemplate", {
        machineType: "e2-medium",
        disks: [{
            sourceImage: "debian-cloud/debian-11",
            autoDelete: true,
            diskSizeGb: 100,
            boot: true,
        }],
        networkInterfaces: [{
            network: "default",
        }],
        metadata: {
            foo: "bar",
        },
        canIpForward: true,
    });
    const tplInstanceFromTemplate = new gcp.compute.InstanceFromTemplate("tplInstanceFromTemplate", {
        zone: "us-central1-a",
        sourceInstanceTemplate: tplInstanceTemplate.selfLinkUnique,
        canIpForward: false,
        labels: {
            my_key: "my_value",
        },
    });
    
    resources:
      tplInstanceTemplate:
        type: gcp:compute:InstanceTemplate
        properties:
          machineType: e2-medium
          disks:
            - sourceImage: debian-cloud/debian-11
              autoDelete: true
              diskSizeGb: 100
              boot: true
          networkInterfaces:
            - network: default
          metadata:
            foo: bar
          canIpForward: true
      tplInstanceFromTemplate:
        type: gcp:compute:InstanceFromTemplate
        properties:
          zone: us-central1-a
          sourceInstanceTemplate: ${tplInstanceTemplate.selfLinkUnique}
          # Override fields from instance template
          canIpForward: false
          labels:
            my_key: my_value
    

    Create InstanceFromTemplate Resource

    new InstanceFromTemplate(name: string, args: InstanceFromTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def InstanceFromTemplate(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             advanced_machine_features: Optional[InstanceFromTemplateAdvancedMachineFeaturesArgs] = None,
                             allow_stopping_for_update: Optional[bool] = None,
                             attached_disks: Optional[Sequence[InstanceFromTemplateAttachedDiskArgs]] = None,
                             boot_disk: Optional[InstanceFromTemplateBootDiskArgs] = None,
                             can_ip_forward: Optional[bool] = None,
                             confidential_instance_config: Optional[InstanceFromTemplateConfidentialInstanceConfigArgs] = None,
                             deletion_protection: Optional[bool] = None,
                             description: Optional[str] = None,
                             desired_status: Optional[str] = None,
                             enable_display: Optional[bool] = None,
                             guest_accelerators: Optional[Sequence[InstanceFromTemplateGuestAcceleratorArgs]] = None,
                             hostname: Optional[str] = None,
                             labels: Optional[Mapping[str, str]] = None,
                             machine_type: Optional[str] = None,
                             metadata: Optional[Mapping[str, str]] = None,
                             metadata_startup_script: Optional[str] = None,
                             min_cpu_platform: Optional[str] = None,
                             name: Optional[str] = None,
                             network_interfaces: Optional[Sequence[InstanceFromTemplateNetworkInterfaceArgs]] = None,
                             network_performance_config: Optional[InstanceFromTemplateNetworkPerformanceConfigArgs] = None,
                             params: Optional[InstanceFromTemplateParamsArgs] = None,
                             project: Optional[str] = None,
                             reservation_affinity: Optional[InstanceFromTemplateReservationAffinityArgs] = None,
                             resource_policies: Optional[str] = None,
                             scheduling: Optional[InstanceFromTemplateSchedulingArgs] = None,
                             scratch_disks: Optional[Sequence[InstanceFromTemplateScratchDiskArgs]] = None,
                             service_account: Optional[InstanceFromTemplateServiceAccountArgs] = None,
                             shielded_instance_config: Optional[InstanceFromTemplateShieldedInstanceConfigArgs] = None,
                             source_instance_template: Optional[str] = None,
                             tags: Optional[Sequence[str]] = None,
                             zone: Optional[str] = None)
    @overload
    def InstanceFromTemplate(resource_name: str,
                             args: InstanceFromTemplateArgs,
                             opts: Optional[ResourceOptions] = None)
    func NewInstanceFromTemplate(ctx *Context, name string, args InstanceFromTemplateArgs, opts ...ResourceOption) (*InstanceFromTemplate, error)
    public InstanceFromTemplate(string name, InstanceFromTemplateArgs args, CustomResourceOptions? opts = null)
    public InstanceFromTemplate(String name, InstanceFromTemplateArgs args)
    public InstanceFromTemplate(String name, InstanceFromTemplateArgs args, CustomResourceOptions options)
    
    type: gcp:compute:InstanceFromTemplate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args InstanceFromTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args InstanceFromTemplateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args InstanceFromTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceFromTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceFromTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    InstanceFromTemplate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The InstanceFromTemplate resource accepts the following input properties:

    SourceInstanceTemplate string

    Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


    AdvancedMachineFeatures InstanceFromTemplateAdvancedMachineFeatures

    Controls for advanced machine-related behavior features.

    AllowStoppingForUpdate bool

    If true, allows Terraform to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.

    AttachedDisks List<InstanceFromTemplateAttachedDisk>

    List of disks attached to the instance

    BootDisk InstanceFromTemplateBootDisk

    The boot disk for the instance.

    CanIpForward bool

    Whether sending and receiving of packets with non-matching source or destination IPs is allowed.

    ConfidentialInstanceConfig InstanceFromTemplateConfidentialInstanceConfig

    The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.

    DeletionProtection bool

    Whether deletion protection is enabled on this instance.

    Description string

    A brief description of the resource.

    DesiredStatus string

    Desired status of the instance. Either "RUNNING" or "TERMINATED".

    EnableDisplay bool

    Whether the instance has virtual displays enabled.

    GuestAccelerators List<InstanceFromTemplateGuestAccelerator>

    List of the type and count of accelerator cards attached to the instance.

    Hostname string

    A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.

    Labels Dictionary<string, string>

    A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.

    MachineType string

    The machine type to create.

    Metadata Dictionary<string, string>

    Metadata key/value pairs made available within the instance.

    MetadataStartupScript string

    Metadata startup scripts made available within the instance.

    MinCpuPlatform string

    The minimum CPU platform specified for the VM instance.

    Name string

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    NetworkInterfaces List<InstanceFromTemplateNetworkInterface>

    The networks attached to the instance.

    NetworkPerformanceConfig InstanceFromTemplateNetworkPerformanceConfig

    Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.

    Params InstanceFromTemplateParams

    Stores additional params passed with the request, but not persisted as part of resource payload.

    Project string

    The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.

    ReservationAffinity InstanceFromTemplateReservationAffinity

    Specifies the reservations that this instance can consume from.

    ResourcePolicies string

    A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.

    Scheduling InstanceFromTemplateScheduling

    The scheduling strategy being used by the instance.

    ScratchDisks List<InstanceFromTemplateScratchDisk>

    The scratch disks attached to the instance.

    ServiceAccount InstanceFromTemplateServiceAccount

    The service account to attach to the instance.

    ShieldedInstanceConfig InstanceFromTemplateShieldedInstanceConfig

    The shielded vm config being used by the instance.

    Tags List<string>

    The list of tags attached to the instance.

    Zone string

    The zone that the machine should be created in. If not set, the provider zone is used.

    In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

    SourceInstanceTemplate string

    Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


    AdvancedMachineFeatures InstanceFromTemplateAdvancedMachineFeaturesArgs

    Controls for advanced machine-related behavior features.

    AllowStoppingForUpdate bool

    If true, allows Terraform to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.

    AttachedDisks []InstanceFromTemplateAttachedDiskArgs

    List of disks attached to the instance

    BootDisk InstanceFromTemplateBootDiskArgs

    The boot disk for the instance.

    CanIpForward bool

    Whether sending and receiving of packets with non-matching source or destination IPs is allowed.

    ConfidentialInstanceConfig InstanceFromTemplateConfidentialInstanceConfigArgs

    The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.

    DeletionProtection bool

    Whether deletion protection is enabled on this instance.

    Description string

    A brief description of the resource.

    DesiredStatus string

    Desired status of the instance. Either "RUNNING" or "TERMINATED".

    EnableDisplay bool

    Whether the instance has virtual displays enabled.

    GuestAccelerators []InstanceFromTemplateGuestAcceleratorArgs

    List of the type and count of accelerator cards attached to the instance.

    Hostname string

    A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.

    Labels map[string]string

    A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.

    MachineType string

    The machine type to create.

    Metadata map[string]string

    Metadata key/value pairs made available within the instance.

    MetadataStartupScript string

    Metadata startup scripts made available within the instance.

    MinCpuPlatform string

    The minimum CPU platform specified for the VM instance.

    Name string

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    NetworkInterfaces []InstanceFromTemplateNetworkInterfaceArgs

    The networks attached to the instance.

    NetworkPerformanceConfig InstanceFromTemplateNetworkPerformanceConfigArgs

    Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.

    Params InstanceFromTemplateParamsArgs

    Stores additional params passed with the request, but not persisted as part of resource payload.

    Project string

    The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.

    ReservationAffinity InstanceFromTemplateReservationAffinityArgs

    Specifies the reservations that this instance can consume from.

    ResourcePolicies string

    A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.

    Scheduling InstanceFromTemplateSchedulingArgs

    The scheduling strategy being used by the instance.

    ScratchDisks []InstanceFromTemplateScratchDiskArgs

    The scratch disks attached to the instance.

    ServiceAccount InstanceFromTemplateServiceAccountArgs

    The service account to attach to the instance.

    ShieldedInstanceConfig InstanceFromTemplateShieldedInstanceConfigArgs

    The shielded vm config being used by the instance.

    Tags []string

    The list of tags attached to the instance.

    Zone string

    The zone that the machine should be created in. If not set, the provider zone is used.

    In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

    sourceInstanceTemplate String

    Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


    advancedMachineFeatures InstanceFromTemplateAdvancedMachineFeatures

    Controls for advanced machine-related behavior features.

    allowStoppingForUpdate Boolean

    If true, allows Terraform to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.

    attachedDisks List<InstanceFromTemplateAttachedDisk>

    List of disks attached to the instance

    bootDisk InstanceFromTemplateBootDisk

    The boot disk for the instance.

    canIpForward Boolean

    Whether sending and receiving of packets with non-matching source or destination IPs is allowed.

    confidentialInstanceConfig InstanceFromTemplateConfidentialInstanceConfig

    The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.

    deletionProtection Boolean

    Whether deletion protection is enabled on this instance.

    description String

    A brief description of the resource.

    desiredStatus String

    Desired status of the instance. Either "RUNNING" or "TERMINATED".

    enableDisplay Boolean

    Whether the instance has virtual displays enabled.

    guestAccelerators List<InstanceFromTemplateGuestAccelerator>

    List of the type and count of accelerator cards attached to the instance.

    hostname String

    A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.

    labels Map<String,String>

    A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.

    machineType String

    The machine type to create.

    metadata Map<String,String>

    Metadata key/value pairs made available within the instance.

    metadataStartupScript String

    Metadata startup scripts made available within the instance.

    minCpuPlatform String

    The minimum CPU platform specified for the VM instance.

    name String

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    networkInterfaces List<InstanceFromTemplateNetworkInterface>

    The networks attached to the instance.

    networkPerformanceConfig InstanceFromTemplateNetworkPerformanceConfig

    Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.

    params InstanceFromTemplateParams

    Stores additional params passed with the request, but not persisted as part of resource payload.

    project String

    The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.

    reservationAffinity InstanceFromTemplateReservationAffinity

    Specifies the reservations that this instance can consume from.

    resourcePolicies String

    A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.

    scheduling InstanceFromTemplateScheduling

    The scheduling strategy being used by the instance.

    scratchDisks List<InstanceFromTemplateScratchDisk>

    The scratch disks attached to the instance.

    serviceAccount InstanceFromTemplateServiceAccount

    The service account to attach to the instance.

    shieldedInstanceConfig InstanceFromTemplateShieldedInstanceConfig

    The shielded vm config being used by the instance.

    tags List<String>

    The list of tags attached to the instance.

    zone String

    The zone that the machine should be created in. If not set, the provider zone is used.

    In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

    sourceInstanceTemplate string

    Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


    advancedMachineFeatures InstanceFromTemplateAdvancedMachineFeatures

    Controls for advanced machine-related behavior features.

    allowStoppingForUpdate boolean

    If true, allows Terraform to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.

    attachedDisks InstanceFromTemplateAttachedDisk[]

    List of disks attached to the instance

    bootDisk InstanceFromTemplateBootDisk

    The boot disk for the instance.

    canIpForward boolean

    Whether sending and receiving of packets with non-matching source or destination IPs is allowed.

    confidentialInstanceConfig InstanceFromTemplateConfidentialInstanceConfig

    The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.

    deletionProtection boolean

    Whether deletion protection is enabled on this instance.

    description string

    A brief description of the resource.

    desiredStatus string

    Desired status of the instance. Either "RUNNING" or "TERMINATED".

    enableDisplay boolean

    Whether the instance has virtual displays enabled.

    guestAccelerators InstanceFromTemplateGuestAccelerator[]

    List of the type and count of accelerator cards attached to the instance.

    hostname string

    A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.

    labels {[key: string]: string}

    A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.

    machineType string

    The machine type to create.

    metadata {[key: string]: string}

    Metadata key/value pairs made available within the instance.

    metadataStartupScript string

    Metadata startup scripts made available within the instance.

    minCpuPlatform string

    The minimum CPU platform specified for the VM instance.

    name string

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    networkInterfaces InstanceFromTemplateNetworkInterface[]

    The networks attached to the instance.

    networkPerformanceConfig InstanceFromTemplateNetworkPerformanceConfig

    Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.

    params InstanceFromTemplateParams

    Stores additional params passed with the request, but not persisted as part of resource payload.

    project string

    The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.

    reservationAffinity InstanceFromTemplateReservationAffinity

    Specifies the reservations that this instance can consume from.

    resourcePolicies string

    A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.

    scheduling InstanceFromTemplateScheduling

    The scheduling strategy being used by the instance.

    scratchDisks InstanceFromTemplateScratchDisk[]

    The scratch disks attached to the instance.

    serviceAccount InstanceFromTemplateServiceAccount

    The service account to attach to the instance.

    shieldedInstanceConfig InstanceFromTemplateShieldedInstanceConfig

    The shielded vm config being used by the instance.

    tags string[]

    The list of tags attached to the instance.

    zone string

    The zone that the machine should be created in. If not set, the provider zone is used.

    In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

    source_instance_template str

    Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


    advanced_machine_features InstanceFromTemplateAdvancedMachineFeaturesArgs

    Controls for advanced machine-related behavior features.

    allow_stopping_for_update bool

    If true, allows Terraform to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.

    attached_disks Sequence[InstanceFromTemplateAttachedDiskArgs]

    List of disks attached to the instance

    boot_disk InstanceFromTemplateBootDiskArgs

    The boot disk for the instance.

    can_ip_forward bool

    Whether sending and receiving of packets with non-matching source or destination IPs is allowed.

    confidential_instance_config InstanceFromTemplateConfidentialInstanceConfigArgs

    The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.

    deletion_protection bool

    Whether deletion protection is enabled on this instance.

    description str

    A brief description of the resource.

    desired_status str

    Desired status of the instance. Either "RUNNING" or "TERMINATED".

    enable_display bool

    Whether the instance has virtual displays enabled.

    guest_accelerators Sequence[InstanceFromTemplateGuestAcceleratorArgs]

    List of the type and count of accelerator cards attached to the instance.

    hostname str

    A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.

    labels Mapping[str, str]

    A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.

    machine_type str

    The machine type to create.

    metadata Mapping[str, str]

    Metadata key/value pairs made available within the instance.

    metadata_startup_script str

    Metadata startup scripts made available within the instance.

    min_cpu_platform str

    The minimum CPU platform specified for the VM instance.

    name str

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    network_interfaces Sequence[InstanceFromTemplateNetworkInterfaceArgs]

    The networks attached to the instance.

    network_performance_config InstanceFromTemplateNetworkPerformanceConfigArgs

    Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.

    params InstanceFromTemplateParamsArgs

    Stores additional params passed with the request, but not persisted as part of resource payload.

    project str

    The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.

    reservation_affinity InstanceFromTemplateReservationAffinityArgs

    Specifies the reservations that this instance can consume from.

    resource_policies str

    A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.

    scheduling InstanceFromTemplateSchedulingArgs

    The scheduling strategy being used by the instance.

    scratch_disks Sequence[InstanceFromTemplateScratchDiskArgs]

    The scratch disks attached to the instance.

    service_account InstanceFromTemplateServiceAccountArgs

    The service account to attach to the instance.

    shielded_instance_config InstanceFromTemplateShieldedInstanceConfigArgs

    The shielded vm config being used by the instance.

    tags Sequence[str]

    The list of tags attached to the instance.

    zone str

    The zone that the machine should be created in. If not set, the provider zone is used.

    In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

    sourceInstanceTemplate String

    Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


    advancedMachineFeatures Property Map

    Controls for advanced machine-related behavior features.

    allowStoppingForUpdate Boolean

    If true, allows Terraform to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.

    attachedDisks List<Property Map>

    List of disks attached to the instance

    bootDisk Property Map

    The boot disk for the instance.

    canIpForward Boolean

    Whether sending and receiving of packets with non-matching source or destination IPs is allowed.

    confidentialInstanceConfig Property Map

    The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.

    deletionProtection Boolean

    Whether deletion protection is enabled on this instance.

    description String

    A brief description of the resource.

    desiredStatus String

    Desired status of the instance. Either "RUNNING" or "TERMINATED".

    enableDisplay Boolean

    Whether the instance has virtual displays enabled.

    guestAccelerators List<Property Map>

    List of the type and count of accelerator cards attached to the instance.

    hostname String

    A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.

    labels Map<String>

    A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.

    machineType String

    The machine type to create.

    metadata Map<String>

    Metadata key/value pairs made available within the instance.

    metadataStartupScript String

    Metadata startup scripts made available within the instance.

    minCpuPlatform String

    The minimum CPU platform specified for the VM instance.

    name String

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    networkInterfaces List<Property Map>

    The networks attached to the instance.

    networkPerformanceConfig Property Map

    Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.

    params Property Map

    Stores additional params passed with the request, but not persisted as part of resource payload.

    project String

    The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.

    reservationAffinity Property Map

    Specifies the reservations that this instance can consume from.

    resourcePolicies String

    A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.

    scheduling Property Map

    The scheduling strategy being used by the instance.

    scratchDisks List<Property Map>

    The scratch disks attached to the instance.

    serviceAccount Property Map

    The service account to attach to the instance.

    shieldedInstanceConfig Property Map

    The shielded vm config being used by the instance.

    tags List<String>

    The list of tags attached to the instance.

    zone String

    The zone that the machine should be created in. If not set, the provider zone is used.

    In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the InstanceFromTemplate resource produces the following output properties:

    CpuPlatform string

    The CPU platform used by this instance.

    CurrentStatus string

    Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.

    EffectiveLabels Dictionary<string, string>

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.

    Id string

    The provider-assigned unique ID for this managed resource.

    InstanceId string

    The server-assigned unique identifier of this instance.

    LabelFingerprint string

    The unique fingerprint of the labels.

    MetadataFingerprint string

    The unique fingerprint of the metadata.

    PulumiLabels Dictionary<string, string>

    The combination of labels configured directly on the resource and default labels configured on the provider.

    SelfLink string

    The URI of the created resource.

    TagsFingerprint string

    The unique fingerprint of the tags.

    CpuPlatform string

    The CPU platform used by this instance.

    CurrentStatus string

    Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.

    EffectiveLabels map[string]string

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.

    Id string

    The provider-assigned unique ID for this managed resource.

    InstanceId string

    The server-assigned unique identifier of this instance.

    LabelFingerprint string

    The unique fingerprint of the labels.

    MetadataFingerprint string

    The unique fingerprint of the metadata.

    PulumiLabels map[string]string

    The combination of labels configured directly on the resource and default labels configured on the provider.

    SelfLink string

    The URI of the created resource.

    TagsFingerprint string

    The unique fingerprint of the tags.

    cpuPlatform String

    The CPU platform used by this instance.

    currentStatus String

    Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.

    effectiveLabels Map<String,String>

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.

    id String

    The provider-assigned unique ID for this managed resource.

    instanceId String

    The server-assigned unique identifier of this instance.

    labelFingerprint String

    The unique fingerprint of the labels.

    metadataFingerprint String

    The unique fingerprint of the metadata.

    pulumiLabels Map<String,String>

    The combination of labels configured directly on the resource and default labels configured on the provider.

    selfLink String

    The URI of the created resource.

    tagsFingerprint String

    The unique fingerprint of the tags.

    cpuPlatform string

    The CPU platform used by this instance.

    currentStatus string

    Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.

    effectiveLabels {[key: string]: string}

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.

    id string

    The provider-assigned unique ID for this managed resource.

    instanceId string

    The server-assigned unique identifier of this instance.

    labelFingerprint string

    The unique fingerprint of the labels.

    metadataFingerprint string

    The unique fingerprint of the metadata.

    pulumiLabels {[key: string]: string}

    The combination of labels configured directly on the resource and default labels configured on the provider.

    selfLink string

    The URI of the created resource.

    tagsFingerprint string

    The unique fingerprint of the tags.

    cpu_platform str

    The CPU platform used by this instance.

    current_status str

    Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.

    effective_labels Mapping[str, str]

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.

    id str

    The provider-assigned unique ID for this managed resource.

    instance_id str

    The server-assigned unique identifier of this instance.

    label_fingerprint str

    The unique fingerprint of the labels.

    metadata_fingerprint str

    The unique fingerprint of the metadata.

    pulumi_labels Mapping[str, str]

    The combination of labels configured directly on the resource and default labels configured on the provider.

    self_link str

    The URI of the created resource.

    tags_fingerprint str

    The unique fingerprint of the tags.

    cpuPlatform String

    The CPU platform used by this instance.

    currentStatus String

    Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.

    effectiveLabels Map<String>

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.

    id String

    The provider-assigned unique ID for this managed resource.

    instanceId String

    The server-assigned unique identifier of this instance.

    labelFingerprint String

    The unique fingerprint of the labels.

    metadataFingerprint String

    The unique fingerprint of the metadata.

    pulumiLabels Map<String>

    The combination of labels configured directly on the resource and default labels configured on the provider.

    selfLink String

    The URI of the created resource.

    tagsFingerprint String

    The unique fingerprint of the tags.

    Look up Existing InstanceFromTemplate Resource

    Get an existing InstanceFromTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: InstanceFromTemplateState, opts?: CustomResourceOptions): InstanceFromTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            advanced_machine_features: Optional[InstanceFromTemplateAdvancedMachineFeaturesArgs] = None,
            allow_stopping_for_update: Optional[bool] = None,
            attached_disks: Optional[Sequence[InstanceFromTemplateAttachedDiskArgs]] = None,
            boot_disk: Optional[InstanceFromTemplateBootDiskArgs] = None,
            can_ip_forward: Optional[bool] = None,
            confidential_instance_config: Optional[InstanceFromTemplateConfidentialInstanceConfigArgs] = None,
            cpu_platform: Optional[str] = None,
            current_status: Optional[str] = None,
            deletion_protection: Optional[bool] = None,
            description: Optional[str] = None,
            desired_status: Optional[str] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            enable_display: Optional[bool] = None,
            guest_accelerators: Optional[Sequence[InstanceFromTemplateGuestAcceleratorArgs]] = None,
            hostname: Optional[str] = None,
            instance_id: Optional[str] = None,
            label_fingerprint: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            machine_type: Optional[str] = None,
            metadata: Optional[Mapping[str, str]] = None,
            metadata_fingerprint: Optional[str] = None,
            metadata_startup_script: Optional[str] = None,
            min_cpu_platform: Optional[str] = None,
            name: Optional[str] = None,
            network_interfaces: Optional[Sequence[InstanceFromTemplateNetworkInterfaceArgs]] = None,
            network_performance_config: Optional[InstanceFromTemplateNetworkPerformanceConfigArgs] = None,
            params: Optional[InstanceFromTemplateParamsArgs] = None,
            project: Optional[str] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            reservation_affinity: Optional[InstanceFromTemplateReservationAffinityArgs] = None,
            resource_policies: Optional[str] = None,
            scheduling: Optional[InstanceFromTemplateSchedulingArgs] = None,
            scratch_disks: Optional[Sequence[InstanceFromTemplateScratchDiskArgs]] = None,
            self_link: Optional[str] = None,
            service_account: Optional[InstanceFromTemplateServiceAccountArgs] = None,
            shielded_instance_config: Optional[InstanceFromTemplateShieldedInstanceConfigArgs] = None,
            source_instance_template: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            tags_fingerprint: Optional[str] = None,
            zone: Optional[str] = None) -> InstanceFromTemplate
    func GetInstanceFromTemplate(ctx *Context, name string, id IDInput, state *InstanceFromTemplateState, opts ...ResourceOption) (*InstanceFromTemplate, error)
    public static InstanceFromTemplate Get(string name, Input<string> id, InstanceFromTemplateState? state, CustomResourceOptions? opts = null)
    public static InstanceFromTemplate get(String name, Output<String> id, InstanceFromTemplateState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AdvancedMachineFeatures InstanceFromTemplateAdvancedMachineFeatures

    Controls for advanced machine-related behavior features.

    AllowStoppingForUpdate bool

    If true, allows Terraform to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.

    AttachedDisks List<InstanceFromTemplateAttachedDisk>

    List of disks attached to the instance

    BootDisk InstanceFromTemplateBootDisk

    The boot disk for the instance.

    CanIpForward bool

    Whether sending and receiving of packets with non-matching source or destination IPs is allowed.

    ConfidentialInstanceConfig InstanceFromTemplateConfidentialInstanceConfig

    The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.

    CpuPlatform string

    The CPU platform used by this instance.

    CurrentStatus string

    Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.

    DeletionProtection bool

    Whether deletion protection is enabled on this instance.

    Description string

    A brief description of the resource.

    DesiredStatus string

    Desired status of the instance. Either "RUNNING" or "TERMINATED".

    EffectiveLabels Dictionary<string, string>

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.

    EnableDisplay bool

    Whether the instance has virtual displays enabled.

    GuestAccelerators List<InstanceFromTemplateGuestAccelerator>

    List of the type and count of accelerator cards attached to the instance.

    Hostname string

    A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.

    InstanceId string

    The server-assigned unique identifier of this instance.

    LabelFingerprint string

    The unique fingerprint of the labels.

    Labels Dictionary<string, string>

    A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.

    MachineType string

    The machine type to create.

    Metadata Dictionary<string, string>

    Metadata key/value pairs made available within the instance.

    MetadataFingerprint string

    The unique fingerprint of the metadata.

    MetadataStartupScript string

    Metadata startup scripts made available within the instance.

    MinCpuPlatform string

    The minimum CPU platform specified for the VM instance.

    Name string

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    NetworkInterfaces List<InstanceFromTemplateNetworkInterface>

    The networks attached to the instance.

    NetworkPerformanceConfig InstanceFromTemplateNetworkPerformanceConfig

    Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.

    Params InstanceFromTemplateParams

    Stores additional params passed with the request, but not persisted as part of resource payload.

    Project string

    The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.

    PulumiLabels Dictionary<string, string>

    The combination of labels configured directly on the resource and default labels configured on the provider.

    ReservationAffinity InstanceFromTemplateReservationAffinity

    Specifies the reservations that this instance can consume from.

    ResourcePolicies string

    A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.

    Scheduling InstanceFromTemplateScheduling

    The scheduling strategy being used by the instance.

    ScratchDisks List<InstanceFromTemplateScratchDisk>

    The scratch disks attached to the instance.

    SelfLink string

    The URI of the created resource.

    ServiceAccount InstanceFromTemplateServiceAccount

    The service account to attach to the instance.

    ShieldedInstanceConfig InstanceFromTemplateShieldedInstanceConfig

    The shielded vm config being used by the instance.

    SourceInstanceTemplate string

    Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


    Tags List<string>

    The list of tags attached to the instance.

    TagsFingerprint string

    The unique fingerprint of the tags.

    Zone string

    The zone that the machine should be created in. If not set, the provider zone is used.

    In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

    AdvancedMachineFeatures InstanceFromTemplateAdvancedMachineFeaturesArgs

    Controls for advanced machine-related behavior features.

    AllowStoppingForUpdate bool

    If true, allows Terraform to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.

    AttachedDisks []InstanceFromTemplateAttachedDiskArgs

    List of disks attached to the instance

    BootDisk InstanceFromTemplateBootDiskArgs

    The boot disk for the instance.

    CanIpForward bool

    Whether sending and receiving of packets with non-matching source or destination IPs is allowed.

    ConfidentialInstanceConfig InstanceFromTemplateConfidentialInstanceConfigArgs

    The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.

    CpuPlatform string

    The CPU platform used by this instance.

    CurrentStatus string

    Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.

    DeletionProtection bool

    Whether deletion protection is enabled on this instance.

    Description string

    A brief description of the resource.

    DesiredStatus string

    Desired status of the instance. Either "RUNNING" or "TERMINATED".

    EffectiveLabels map[string]string

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.

    EnableDisplay bool

    Whether the instance has virtual displays enabled.

    GuestAccelerators []InstanceFromTemplateGuestAcceleratorArgs

    List of the type and count of accelerator cards attached to the instance.

    Hostname string

    A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.

    InstanceId string

    The server-assigned unique identifier of this instance.

    LabelFingerprint string

    The unique fingerprint of the labels.

    Labels map[string]string

    A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.

    MachineType string

    The machine type to create.

    Metadata map[string]string

    Metadata key/value pairs made available within the instance.

    MetadataFingerprint string

    The unique fingerprint of the metadata.

    MetadataStartupScript string

    Metadata startup scripts made available within the instance.

    MinCpuPlatform string

    The minimum CPU platform specified for the VM instance.

    Name string

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    NetworkInterfaces []InstanceFromTemplateNetworkInterfaceArgs

    The networks attached to the instance.

    NetworkPerformanceConfig InstanceFromTemplateNetworkPerformanceConfigArgs

    Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.

    Params InstanceFromTemplateParamsArgs

    Stores additional params passed with the request, but not persisted as part of resource payload.

    Project string

    The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.

    PulumiLabels map[string]string

    The combination of labels configured directly on the resource and default labels configured on the provider.

    ReservationAffinity InstanceFromTemplateReservationAffinityArgs

    Specifies the reservations that this instance can consume from.

    ResourcePolicies string

    A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.

    Scheduling InstanceFromTemplateSchedulingArgs

    The scheduling strategy being used by the instance.

    ScratchDisks []InstanceFromTemplateScratchDiskArgs

    The scratch disks attached to the instance.

    SelfLink string

    The URI of the created resource.

    ServiceAccount InstanceFromTemplateServiceAccountArgs

    The service account to attach to the instance.

    ShieldedInstanceConfig InstanceFromTemplateShieldedInstanceConfigArgs

    The shielded vm config being used by the instance.

    SourceInstanceTemplate string

    Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


    Tags []string

    The list of tags attached to the instance.

    TagsFingerprint string

    The unique fingerprint of the tags.

    Zone string

    The zone that the machine should be created in. If not set, the provider zone is used.

    In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

    advancedMachineFeatures InstanceFromTemplateAdvancedMachineFeatures

    Controls for advanced machine-related behavior features.

    allowStoppingForUpdate Boolean

    If true, allows Terraform to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.

    attachedDisks List<InstanceFromTemplateAttachedDisk>

    List of disks attached to the instance

    bootDisk InstanceFromTemplateBootDisk

    The boot disk for the instance.

    canIpForward Boolean

    Whether sending and receiving of packets with non-matching source or destination IPs is allowed.

    confidentialInstanceConfig InstanceFromTemplateConfidentialInstanceConfig

    The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.

    cpuPlatform String

    The CPU platform used by this instance.

    currentStatus String

    Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.

    deletionProtection Boolean

    Whether deletion protection is enabled on this instance.

    description String

    A brief description of the resource.

    desiredStatus String

    Desired status of the instance. Either "RUNNING" or "TERMINATED".

    effectiveLabels Map<String,String>

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.

    enableDisplay Boolean

    Whether the instance has virtual displays enabled.

    guestAccelerators List<InstanceFromTemplateGuestAccelerator>

    List of the type and count of accelerator cards attached to the instance.

    hostname String

    A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.

    instanceId String

    The server-assigned unique identifier of this instance.

    labelFingerprint String

    The unique fingerprint of the labels.

    labels Map<String,String>

    A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.

    machineType String

    The machine type to create.

    metadata Map<String,String>

    Metadata key/value pairs made available within the instance.

    metadataFingerprint String

    The unique fingerprint of the metadata.

    metadataStartupScript String

    Metadata startup scripts made available within the instance.

    minCpuPlatform String

    The minimum CPU platform specified for the VM instance.

    name String

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    networkInterfaces List<InstanceFromTemplateNetworkInterface>

    The networks attached to the instance.

    networkPerformanceConfig InstanceFromTemplateNetworkPerformanceConfig

    Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.

    params InstanceFromTemplateParams

    Stores additional params passed with the request, but not persisted as part of resource payload.

    project String

    The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.

    pulumiLabels Map<String,String>

    The combination of labels configured directly on the resource and default labels configured on the provider.

    reservationAffinity InstanceFromTemplateReservationAffinity

    Specifies the reservations that this instance can consume from.

    resourcePolicies String

    A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.

    scheduling InstanceFromTemplateScheduling

    The scheduling strategy being used by the instance.

    scratchDisks List<InstanceFromTemplateScratchDisk>

    The scratch disks attached to the instance.

    selfLink String

    The URI of the created resource.

    serviceAccount InstanceFromTemplateServiceAccount

    The service account to attach to the instance.

    shieldedInstanceConfig InstanceFromTemplateShieldedInstanceConfig

    The shielded vm config being used by the instance.

    sourceInstanceTemplate String

    Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


    tags List<String>

    The list of tags attached to the instance.

    tagsFingerprint String

    The unique fingerprint of the tags.

    zone String

    The zone that the machine should be created in. If not set, the provider zone is used.

    In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

    advancedMachineFeatures InstanceFromTemplateAdvancedMachineFeatures

    Controls for advanced machine-related behavior features.

    allowStoppingForUpdate boolean

    If true, allows Terraform to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.

    attachedDisks InstanceFromTemplateAttachedDisk[]

    List of disks attached to the instance

    bootDisk InstanceFromTemplateBootDisk

    The boot disk for the instance.

    canIpForward boolean

    Whether sending and receiving of packets with non-matching source or destination IPs is allowed.

    confidentialInstanceConfig InstanceFromTemplateConfidentialInstanceConfig

    The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.

    cpuPlatform string

    The CPU platform used by this instance.

    currentStatus string

    Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.

    deletionProtection boolean

    Whether deletion protection is enabled on this instance.

    description string

    A brief description of the resource.

    desiredStatus string

    Desired status of the instance. Either "RUNNING" or "TERMINATED".

    effectiveLabels {[key: string]: string}

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.

    enableDisplay boolean

    Whether the instance has virtual displays enabled.

    guestAccelerators InstanceFromTemplateGuestAccelerator[]

    List of the type and count of accelerator cards attached to the instance.

    hostname string

    A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.

    instanceId string

    The server-assigned unique identifier of this instance.

    labelFingerprint string

    The unique fingerprint of the labels.

    labels {[key: string]: string}

    A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.

    machineType string

    The machine type to create.

    metadata {[key: string]: string}

    Metadata key/value pairs made available within the instance.

    metadataFingerprint string

    The unique fingerprint of the metadata.

    metadataStartupScript string

    Metadata startup scripts made available within the instance.

    minCpuPlatform string

    The minimum CPU platform specified for the VM instance.

    name string

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    networkInterfaces InstanceFromTemplateNetworkInterface[]

    The networks attached to the instance.

    networkPerformanceConfig InstanceFromTemplateNetworkPerformanceConfig

    Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.

    params InstanceFromTemplateParams

    Stores additional params passed with the request, but not persisted as part of resource payload.

    project string

    The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.

    pulumiLabels {[key: string]: string}

    The combination of labels configured directly on the resource and default labels configured on the provider.

    reservationAffinity InstanceFromTemplateReservationAffinity

    Specifies the reservations that this instance can consume from.

    resourcePolicies string

    A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.

    scheduling InstanceFromTemplateScheduling

    The scheduling strategy being used by the instance.

    scratchDisks InstanceFromTemplateScratchDisk[]

    The scratch disks attached to the instance.

    selfLink string

    The URI of the created resource.

    serviceAccount InstanceFromTemplateServiceAccount

    The service account to attach to the instance.

    shieldedInstanceConfig InstanceFromTemplateShieldedInstanceConfig

    The shielded vm config being used by the instance.

    sourceInstanceTemplate string

    Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


    tags string[]

    The list of tags attached to the instance.

    tagsFingerprint string

    The unique fingerprint of the tags.

    zone string

    The zone that the machine should be created in. If not set, the provider zone is used.

    In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

    advanced_machine_features InstanceFromTemplateAdvancedMachineFeaturesArgs

    Controls for advanced machine-related behavior features.

    allow_stopping_for_update bool

    If true, allows Terraform to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.

    attached_disks Sequence[InstanceFromTemplateAttachedDiskArgs]

    List of disks attached to the instance

    boot_disk InstanceFromTemplateBootDiskArgs

    The boot disk for the instance.

    can_ip_forward bool

    Whether sending and receiving of packets with non-matching source or destination IPs is allowed.

    confidential_instance_config InstanceFromTemplateConfidentialInstanceConfigArgs

    The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.

    cpu_platform str

    The CPU platform used by this instance.

    current_status str

    Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.

    deletion_protection bool

    Whether deletion protection is enabled on this instance.

    description str

    A brief description of the resource.

    desired_status str

    Desired status of the instance. Either "RUNNING" or "TERMINATED".

    effective_labels Mapping[str, str]

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.

    enable_display bool

    Whether the instance has virtual displays enabled.

    guest_accelerators Sequence[InstanceFromTemplateGuestAcceleratorArgs]

    List of the type and count of accelerator cards attached to the instance.

    hostname str

    A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.

    instance_id str

    The server-assigned unique identifier of this instance.

    label_fingerprint str

    The unique fingerprint of the labels.

    labels Mapping[str, str]

    A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.

    machine_type str

    The machine type to create.

    metadata Mapping[str, str]

    Metadata key/value pairs made available within the instance.

    metadata_fingerprint str

    The unique fingerprint of the metadata.

    metadata_startup_script str

    Metadata startup scripts made available within the instance.

    min_cpu_platform str

    The minimum CPU platform specified for the VM instance.

    name str

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    network_interfaces Sequence[InstanceFromTemplateNetworkInterfaceArgs]

    The networks attached to the instance.

    network_performance_config InstanceFromTemplateNetworkPerformanceConfigArgs

    Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.

    params InstanceFromTemplateParamsArgs

    Stores additional params passed with the request, but not persisted as part of resource payload.

    project str

    The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.

    pulumi_labels Mapping[str, str]

    The combination of labels configured directly on the resource and default labels configured on the provider.

    reservation_affinity InstanceFromTemplateReservationAffinityArgs

    Specifies the reservations that this instance can consume from.

    resource_policies str

    A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.

    scheduling InstanceFromTemplateSchedulingArgs

    The scheduling strategy being used by the instance.

    scratch_disks Sequence[InstanceFromTemplateScratchDiskArgs]

    The scratch disks attached to the instance.

    self_link str

    The URI of the created resource.

    service_account InstanceFromTemplateServiceAccountArgs

    The service account to attach to the instance.

    shielded_instance_config InstanceFromTemplateShieldedInstanceConfigArgs

    The shielded vm config being used by the instance.

    source_instance_template str

    Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


    tags Sequence[str]

    The list of tags attached to the instance.

    tags_fingerprint str

    The unique fingerprint of the tags.

    zone str

    The zone that the machine should be created in. If not set, the provider zone is used.

    In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

    advancedMachineFeatures Property Map

    Controls for advanced machine-related behavior features.

    allowStoppingForUpdate Boolean

    If true, allows Terraform to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.

    attachedDisks List<Property Map>

    List of disks attached to the instance

    bootDisk Property Map

    The boot disk for the instance.

    canIpForward Boolean

    Whether sending and receiving of packets with non-matching source or destination IPs is allowed.

    confidentialInstanceConfig Property Map

    The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.

    cpuPlatform String

    The CPU platform used by this instance.

    currentStatus String

    Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.

    deletionProtection Boolean

    Whether deletion protection is enabled on this instance.

    description String

    A brief description of the resource.

    desiredStatus String

    Desired status of the instance. Either "RUNNING" or "TERMINATED".

    effectiveLabels Map<String>

    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.

    enableDisplay Boolean

    Whether the instance has virtual displays enabled.

    guestAccelerators List<Property Map>

    List of the type and count of accelerator cards attached to the instance.

    hostname String

    A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.

    instanceId String

    The server-assigned unique identifier of this instance.

    labelFingerprint String

    The unique fingerprint of the labels.

    labels Map<String>

    A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.

    machineType String

    The machine type to create.

    metadata Map<String>

    Metadata key/value pairs made available within the instance.

    metadataFingerprint String

    The unique fingerprint of the metadata.

    metadataStartupScript String

    Metadata startup scripts made available within the instance.

    minCpuPlatform String

    The minimum CPU platform specified for the VM instance.

    name String

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    networkInterfaces List<Property Map>

    The networks attached to the instance.

    networkPerformanceConfig Property Map

    Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.

    params Property Map

    Stores additional params passed with the request, but not persisted as part of resource payload.

    project String

    The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.

    pulumiLabels Map<String>

    The combination of labels configured directly on the resource and default labels configured on the provider.

    reservationAffinity Property Map

    Specifies the reservations that this instance can consume from.

    resourcePolicies String

    A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.

    scheduling Property Map

    The scheduling strategy being used by the instance.

    scratchDisks List<Property Map>

    The scratch disks attached to the instance.

    selfLink String

    The URI of the created resource.

    serviceAccount Property Map

    The service account to attach to the instance.

    shieldedInstanceConfig Property Map

    The shielded vm config being used by the instance.

    sourceInstanceTemplate String

    Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


    tags List<String>

    The list of tags attached to the instance.

    tagsFingerprint String

    The unique fingerprint of the tags.

    zone String

    The zone that the machine should be created in. If not set, the provider zone is used.

    In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

    Supporting Types

    InstanceFromTemplateAdvancedMachineFeatures, InstanceFromTemplateAdvancedMachineFeaturesArgs

    InstanceFromTemplateAttachedDisk, InstanceFromTemplateAttachedDiskArgs

    InstanceFromTemplateBootDisk, InstanceFromTemplateBootDiskArgs

    InstanceFromTemplateBootDiskInitializeParams, InstanceFromTemplateBootDiskInitializeParamsArgs

    EnableConfidentialCompute bool
    Image string
    Labels Dictionary<string, object>
    ResourceManagerTags Dictionary<string, object>
    Size int
    Type string
    EnableConfidentialCompute bool
    Image string
    Labels map[string]interface{}
    ResourceManagerTags map[string]interface{}
    Size int
    Type string
    enableConfidentialCompute Boolean
    image String
    labels Map<String,Object>
    resourceManagerTags Map<String,Object>
    size Integer
    type String
    enableConfidentialCompute boolean
    image string
    labels {[key: string]: any}
    resourceManagerTags {[key: string]: any}
    size number
    type string
    enable_confidential_compute bool
    image str
    labels Mapping[str, Any]
    resource_manager_tags Mapping[str, Any]
    size int
    type str
    enableConfidentialCompute Boolean
    image String
    labels Map<Any>
    resourceManagerTags Map<Any>
    size Number
    type String

    InstanceFromTemplateConfidentialInstanceConfig, InstanceFromTemplateConfidentialInstanceConfigArgs

    InstanceFromTemplateGuestAccelerator, InstanceFromTemplateGuestAcceleratorArgs

    Count int
    Type string
    Count int
    Type string
    count Integer
    type String
    count number
    type string
    count int
    type str
    count Number
    type String

    InstanceFromTemplateNetworkInterface, InstanceFromTemplateNetworkInterfaceArgs

    accessConfigs List<Property Map>
    aliasIpRanges List<Property Map>
    internalIpv6PrefixLength Number
    ipv6AccessConfigs List<Property Map>
    ipv6AccessType String
    ipv6Address String
    name String

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    network String
    networkAttachment String
    networkIp String
    nicType String
    queueCount Number
    securityPolicy String
    stackType String
    subnetwork String
    subnetworkProject String

    InstanceFromTemplateNetworkInterfaceAccessConfig, InstanceFromTemplateNetworkInterfaceAccessConfigArgs

    InstanceFromTemplateNetworkInterfaceAliasIpRange, InstanceFromTemplateNetworkInterfaceAliasIpRangeArgs

    InstanceFromTemplateNetworkInterfaceIpv6AccessConfig, InstanceFromTemplateNetworkInterfaceIpv6AccessConfigArgs

    NetworkTier string
    ExternalIpv6 string
    ExternalIpv6PrefixLength string
    Name string

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    PublicPtrDomainName string
    SecurityPolicy string
    NetworkTier string
    ExternalIpv6 string
    ExternalIpv6PrefixLength string
    Name string

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    PublicPtrDomainName string
    SecurityPolicy string
    networkTier String
    externalIpv6 String
    externalIpv6PrefixLength String
    name String

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    publicPtrDomainName String
    securityPolicy String
    networkTier string
    externalIpv6 string
    externalIpv6PrefixLength string
    name string

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    publicPtrDomainName string
    securityPolicy string
    network_tier str
    external_ipv6 str
    external_ipv6_prefix_length str
    name str

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    public_ptr_domain_name str
    security_policy str
    networkTier String
    externalIpv6 String
    externalIpv6PrefixLength String
    name String

    A unique name for the resource, required by GCE. Changing this forces a new resource to be created.

    publicPtrDomainName String
    securityPolicy String

    InstanceFromTemplateNetworkPerformanceConfig, InstanceFromTemplateNetworkPerformanceConfigArgs

    InstanceFromTemplateParams, InstanceFromTemplateParamsArgs

    ResourceManagerTags Dictionary<string, object>
    ResourceManagerTags map[string]interface{}
    resourceManagerTags Map<String,Object>
    resourceManagerTags {[key: string]: any}
    resource_manager_tags Mapping[str, Any]

    InstanceFromTemplateReservationAffinity, InstanceFromTemplateReservationAffinityArgs

    InstanceFromTemplateReservationAffinitySpecificReservation, InstanceFromTemplateReservationAffinitySpecificReservationArgs

    Key string
    Values List<string>
    Key string
    Values []string
    key String
    values List<String>
    key string
    values string[]
    key str
    values Sequence[str]
    key String
    values List<String>

    InstanceFromTemplateScheduling, InstanceFromTemplateSchedulingArgs

    InstanceFromTemplateSchedulingLocalSsdRecoveryTimeout, InstanceFromTemplateSchedulingLocalSsdRecoveryTimeoutArgs

    Seconds int
    Nanos int
    Seconds int
    Nanos int
    seconds Integer
    nanos Integer
    seconds number
    nanos number
    seconds int
    nanos int
    seconds Number
    nanos Number

    InstanceFromTemplateSchedulingMaxRunDuration, InstanceFromTemplateSchedulingMaxRunDurationArgs

    Seconds int
    Nanos int
    Seconds int
    Nanos int
    seconds Integer
    nanos Integer
    seconds number
    nanos number
    seconds int
    nanos int
    seconds Number
    nanos Number

    InstanceFromTemplateSchedulingNodeAffinity, InstanceFromTemplateSchedulingNodeAffinityArgs

    Key string
    Operator string
    Values List<string>
    Key string
    Operator string
    Values []string
    key String
    operator String
    values List<String>
    key string
    operator string
    values string[]
    key str
    operator str
    values Sequence[str]
    key String
    operator String
    values List<String>

    InstanceFromTemplateScratchDisk, InstanceFromTemplateScratchDiskArgs

    Interface string
    DeviceName string
    Size int
    Interface string
    DeviceName string
    Size int
    interface_ String
    deviceName String
    size Integer
    interface string
    deviceName string
    size number
    interface String
    deviceName String
    size Number

    InstanceFromTemplateServiceAccount, InstanceFromTemplateServiceAccountArgs

    Scopes List<string>
    Email string
    Scopes []string
    Email string
    scopes List<String>
    email String
    scopes string[]
    email string
    scopes Sequence[str]
    email str
    scopes List<String>
    email String

    InstanceFromTemplateShieldedInstanceConfig, InstanceFromTemplateShieldedInstanceConfigArgs

    Import

    This resource does not support import.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the google-beta Terraform Provider.

    gcp logo
    Google Cloud Classic v7.2.2 published on Monday, Jan 1, 0001 by Pulumi