gcp.compute.InstanceFromTemplate
Explore with Pulumi AI
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:
- Source
Instance stringTemplate 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 InstanceFeatures From Template Advanced Machine Features Controls for advanced machine-related behavior features.
- Allow
Stopping boolFor Update 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 List<InstanceFrom Template Attached Disk> List of disks attached to the instance
- Boot
Disk InstanceFrom Template Boot Disk The boot disk for the instance.
- Can
Ip boolForward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- Confidential
Instance InstanceConfig From Template Confidential Instance Config 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 string
A brief description of the resource.
- Desired
Status string Desired status of the instance. Either "RUNNING" or "TERMINATED".
- Enable
Display bool Whether the instance has virtual displays enabled.
- Guest
Accelerators List<InstanceFrom Template Guest Accelerator> 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.
- Machine
Type string The machine type to create.
- Metadata Dictionary<string, string>
Metadata key/value pairs made available within the instance.
- Metadata
Startup stringScript Metadata startup scripts made available within the instance.
- Min
Cpu stringPlatform 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.
- Network
Interfaces List<InstanceFrom Template Network Interface> The networks attached to the instance.
- Network
Performance InstanceConfig From Template Network Performance Config Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- Params
Instance
From Template Params 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.
- Reservation
Affinity InstanceFrom Template Reservation Affinity Specifies the reservations that this instance can consume from.
- Resource
Policies string A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- Scheduling
Instance
From Template Scheduling The scheduling strategy being used by the instance.
- Scratch
Disks List<InstanceFrom Template Scratch Disk> The scratch disks attached to the instance.
- Service
Account InstanceFrom Template Service Account The service account to attach to the instance.
- Shielded
Instance InstanceConfig From Template Shielded Instance Config The shielded vm config being used by the instance.
- 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 fromgcp.compute.Instance
are likewise exported here.
- Source
Instance stringTemplate 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 InstanceFeatures From Template Advanced Machine Features Args Controls for advanced machine-related behavior features.
- Allow
Stopping boolFor Update 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 []InstanceFrom Template Attached Disk Args List of disks attached to the instance
- Boot
Disk InstanceFrom Template Boot Disk Args The boot disk for the instance.
- Can
Ip boolForward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- Confidential
Instance InstanceConfig From Template Confidential Instance Config Args 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 string
A brief description of the resource.
- Desired
Status string Desired status of the instance. Either "RUNNING" or "TERMINATED".
- Enable
Display bool Whether the instance has virtual displays enabled.
- Guest
Accelerators []InstanceFrom Template Guest Accelerator Args 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.
- Machine
Type string The machine type to create.
- Metadata map[string]string
Metadata key/value pairs made available within the instance.
- Metadata
Startup stringScript Metadata startup scripts made available within the instance.
- Min
Cpu stringPlatform 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.
- Network
Interfaces []InstanceFrom Template Network Interface Args The networks attached to the instance.
- Network
Performance InstanceConfig From Template Network Performance Config Args Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- Params
Instance
From Template Params Args 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.
- Reservation
Affinity InstanceFrom Template Reservation Affinity Args Specifies the reservations that this instance can consume from.
- Resource
Policies string A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- Scheduling
Instance
From Template Scheduling Args The scheduling strategy being used by the instance.
- Scratch
Disks []InstanceFrom Template Scratch Disk Args The scratch disks attached to the instance.
- Service
Account InstanceFrom Template Service Account Args The service account to attach to the instance.
- Shielded
Instance InstanceConfig From Template Shielded Instance Config Args The shielded vm config being used by the instance.
- []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 fromgcp.compute.Instance
are likewise exported here.
- source
Instance StringTemplate 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 InstanceFeatures From Template Advanced Machine Features Controls for advanced machine-related behavior features.
- allow
Stopping BooleanFor Update 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 List<InstanceFrom Template Attached Disk> List of disks attached to the instance
- boot
Disk InstanceFrom Template Boot Disk The boot disk for the instance.
- can
Ip BooleanForward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential
Instance InstanceConfig From Template Confidential Instance Config 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 Boolean Whether deletion protection is enabled on this instance.
- description String
A brief description of the resource.
- desired
Status String Desired status of the instance. Either "RUNNING" or "TERMINATED".
- enable
Display Boolean Whether the instance has virtual displays enabled.
- guest
Accelerators List<InstanceFrom Template Guest Accelerator> 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.
- machine
Type String The machine type to create.
- metadata Map<String,String>
Metadata key/value pairs made available within the instance.
- metadata
Startup StringScript Metadata startup scripts made available within the instance.
- min
Cpu StringPlatform 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.
- network
Interfaces List<InstanceFrom Template Network Interface> The networks attached to the instance.
- network
Performance InstanceConfig From Template Network Performance Config Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- params
Instance
From Template Params 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.
- reservation
Affinity InstanceFrom Template Reservation Affinity Specifies the reservations that this instance can consume from.
- resource
Policies String A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- scheduling
Instance
From Template Scheduling The scheduling strategy being used by the instance.
- scratch
Disks List<InstanceFrom Template Scratch Disk> The scratch disks attached to the instance.
- service
Account InstanceFrom Template Service Account The service account to attach to the instance.
- shielded
Instance InstanceConfig From Template Shielded Instance Config The shielded vm config being used by the instance.
- 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 fromgcp.compute.Instance
are likewise exported here.
- source
Instance stringTemplate 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 InstanceFeatures From Template Advanced Machine Features Controls for advanced machine-related behavior features.
- allow
Stopping booleanFor Update 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 InstanceFrom Template Attached Disk[] List of disks attached to the instance
- boot
Disk InstanceFrom Template Boot Disk The boot disk for the instance.
- can
Ip booleanForward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential
Instance InstanceConfig From Template Confidential Instance Config 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 boolean Whether deletion protection is enabled on this instance.
- description string
A brief description of the resource.
- desired
Status string Desired status of the instance. Either "RUNNING" or "TERMINATED".
- enable
Display boolean Whether the instance has virtual displays enabled.
- guest
Accelerators InstanceFrom Template Guest Accelerator[] 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.
- machine
Type string The machine type to create.
- metadata {[key: string]: string}
Metadata key/value pairs made available within the instance.
- metadata
Startup stringScript Metadata startup scripts made available within the instance.
- min
Cpu stringPlatform 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.
- network
Interfaces InstanceFrom Template Network Interface[] The networks attached to the instance.
- network
Performance InstanceConfig From Template Network Performance Config Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- params
Instance
From Template Params 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.
- reservation
Affinity InstanceFrom Template Reservation Affinity Specifies the reservations that this instance can consume from.
- resource
Policies string A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- scheduling
Instance
From Template Scheduling The scheduling strategy being used by the instance.
- scratch
Disks InstanceFrom Template Scratch Disk[] The scratch disks attached to the instance.
- service
Account InstanceFrom Template Service Account The service account to attach to the instance.
- shielded
Instance InstanceConfig From Template Shielded Instance Config The shielded vm config being used by the instance.
- 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 fromgcp.compute.Instance
are likewise exported here.
- source_
instance_ strtemplate 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_ Instancefeatures From Template Advanced Machine Features Args Controls for advanced machine-related behavior features.
- allow_
stopping_ boolfor_ update 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[InstanceFrom Template Attached Disk Args] List of disks attached to the instance
- boot_
disk InstanceFrom Template Boot Disk Args The boot disk for the instance.
- can_
ip_ boolforward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential_
instance_ Instanceconfig From Template Confidential Instance Config Args 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[InstanceFrom Template Guest Accelerator Args] 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_ strscript Metadata startup scripts made available within the instance.
- min_
cpu_ strplatform 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[InstanceFrom Template Network Interface Args] The networks attached to the instance.
- network_
performance_ Instanceconfig From Template Network Performance Config Args Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- params
Instance
From Template Params Args 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 InstanceFrom Template Reservation Affinity Args 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
Instance
From Template Scheduling Args The scheduling strategy being used by the instance.
- scratch_
disks Sequence[InstanceFrom Template Scratch Disk Args] The scratch disks attached to the instance.
- service_
account InstanceFrom Template Service Account Args The service account to attach to the instance.
- shielded_
instance_ Instanceconfig From Template Shielded Instance Config Args The shielded vm config being used by the instance.
- 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 fromgcp.compute.Instance
are likewise exported here.
- source
Instance StringTemplate 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 Property MapFeatures Controls for advanced machine-related behavior features.
- allow
Stopping BooleanFor Update 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 List<Property Map> List of disks attached to the instance
- boot
Disk Property Map The boot disk for the instance.
- can
Ip BooleanForward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential
Instance Property MapConfig 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 Boolean Whether deletion protection is enabled on this instance.
- description String
A brief description of the resource.
- desired
Status String Desired status of the instance. Either "RUNNING" or "TERMINATED".
- enable
Display Boolean Whether the instance has virtual displays enabled.
- guest
Accelerators 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.
- machine
Type String The machine type to create.
- metadata Map<String>
Metadata key/value pairs made available within the instance.
- metadata
Startup StringScript Metadata startup scripts made available within the instance.
- min
Cpu StringPlatform 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.
- network
Interfaces List<Property Map> The networks attached to the instance.
- network
Performance Property MapConfig 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.
- reservation
Affinity Property Map Specifies the reservations that this instance can consume from.
- resource
Policies 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.
- scratch
Disks List<Property Map> The scratch disks attached to the instance.
- service
Account Property Map The service account to attach to the instance.
- shielded
Instance Property MapConfig The shielded vm config being used by the instance.
- 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 fromgcp.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:
- Cpu
Platform string The CPU platform used by this instance.
- Current
Status 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.
- Effective
Labels 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.
- Instance
Id string The server-assigned unique identifier of this instance.
- Label
Fingerprint string The unique fingerprint of the labels.
- Metadata
Fingerprint string The unique fingerprint of the metadata.
- Pulumi
Labels Dictionary<string, string> The combination of labels configured directly on the resource and default labels configured on the provider.
- Self
Link string The URI of the created resource.
- string
The unique fingerprint of the tags.
- Cpu
Platform string The CPU platform used by this instance.
- Current
Status 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.
- Effective
Labels 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.
- Instance
Id string The server-assigned unique identifier of this instance.
- Label
Fingerprint string The unique fingerprint of the labels.
- Metadata
Fingerprint string The unique fingerprint of the metadata.
- Pulumi
Labels map[string]string The combination of labels configured directly on the resource and default labels configured on the provider.
- Self
Link string The URI of the created resource.
- string
The unique fingerprint of the tags.
- cpu
Platform String The CPU platform used by this instance.
- current
Status 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.
- effective
Labels 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.
- instance
Id String The server-assigned unique identifier of this instance.
- label
Fingerprint String The unique fingerprint of the labels.
- metadata
Fingerprint String The unique fingerprint of the metadata.
- pulumi
Labels Map<String,String> The combination of labels configured directly on the resource and default labels configured on the provider.
- self
Link String The URI of the created resource.
- String
The unique fingerprint of the tags.
- cpu
Platform string The CPU platform used by this instance.
- current
Status 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.
- effective
Labels {[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.
- instance
Id string The server-assigned unique identifier of this instance.
- label
Fingerprint string The unique fingerprint of the labels.
- metadata
Fingerprint string The unique fingerprint of the metadata.
- pulumi
Labels {[key: string]: string} The combination of labels configured directly on the resource and default labels configured on the provider.
- self
Link string The URI of the created resource.
- 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.
- str
The unique fingerprint of the tags.
- cpu
Platform String The CPU platform used by this instance.
- current
Status 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.
- effective
Labels 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.
- instance
Id String The server-assigned unique identifier of this instance.
- label
Fingerprint String The unique fingerprint of the labels.
- metadata
Fingerprint String The unique fingerprint of the metadata.
- pulumi
Labels Map<String> The combination of labels configured directly on the resource and default labels configured on the provider.
- self
Link String The URI of the created resource.
- 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.
- Advanced
Machine InstanceFeatures From Template Advanced Machine Features Controls for advanced machine-related behavior features.
- Allow
Stopping boolFor Update 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 List<InstanceFrom Template Attached Disk> List of disks attached to the instance
- Boot
Disk InstanceFrom Template Boot Disk The boot disk for the instance.
- Can
Ip boolForward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- Confidential
Instance InstanceConfig From Template Confidential Instance Config 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 string The CPU platform used by this instance.
- Current
Status 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.
- Deletion
Protection bool Whether deletion protection is enabled on this instance.
- Description string
A brief description of the resource.
- Desired
Status string Desired status of the instance. Either "RUNNING" or "TERMINATED".
- Effective
Labels 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.
- Enable
Display bool Whether the instance has virtual displays enabled.
- Guest
Accelerators List<InstanceFrom Template Guest Accelerator> 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.
- Instance
Id string The server-assigned unique identifier of this instance.
- Label
Fingerprint 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.
- Machine
Type string The machine type to create.
- Metadata Dictionary<string, string>
Metadata key/value pairs made available within the instance.
- Metadata
Fingerprint string The unique fingerprint of the metadata.
- Metadata
Startup stringScript Metadata startup scripts made available within the instance.
- Min
Cpu stringPlatform 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.
- Network
Interfaces List<InstanceFrom Template Network Interface> The networks attached to the instance.
- Network
Performance InstanceConfig From Template Network Performance Config Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- Params
Instance
From Template Params 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.
- Pulumi
Labels Dictionary<string, string> The combination of labels configured directly on the resource and default labels configured on the provider.
- Reservation
Affinity InstanceFrom Template Reservation Affinity Specifies the reservations that this instance can consume from.
- Resource
Policies string A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- Scheduling
Instance
From Template Scheduling The scheduling strategy being used by the instance.
- Scratch
Disks List<InstanceFrom Template Scratch Disk> The scratch disks attached to the instance.
- Self
Link string The URI of the created resource.
- Service
Account InstanceFrom Template Service Account The service account to attach to the instance.
- Shielded
Instance InstanceConfig From Template Shielded Instance Config The shielded vm config being used by the instance.
- Source
Instance stringTemplate 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).- List<string>
The list of tags attached to the instance.
- 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 fromgcp.compute.Instance
are likewise exported here.
- Advanced
Machine InstanceFeatures From Template Advanced Machine Features Args Controls for advanced machine-related behavior features.
- Allow
Stopping boolFor Update 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 []InstanceFrom Template Attached Disk Args List of disks attached to the instance
- Boot
Disk InstanceFrom Template Boot Disk Args The boot disk for the instance.
- Can
Ip boolForward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- Confidential
Instance InstanceConfig From Template Confidential Instance Config Args 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 string The CPU platform used by this instance.
- Current
Status 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.
- Deletion
Protection bool Whether deletion protection is enabled on this instance.
- Description string
A brief description of the resource.
- Desired
Status string Desired status of the instance. Either "RUNNING" or "TERMINATED".
- Effective
Labels 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.
- Enable
Display bool Whether the instance has virtual displays enabled.
- Guest
Accelerators []InstanceFrom Template Guest Accelerator Args 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.
- Instance
Id string The server-assigned unique identifier of this instance.
- Label
Fingerprint 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.
- Machine
Type string The machine type to create.
- Metadata map[string]string
Metadata key/value pairs made available within the instance.
- Metadata
Fingerprint string The unique fingerprint of the metadata.
- Metadata
Startup stringScript Metadata startup scripts made available within the instance.
- Min
Cpu stringPlatform 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.
- Network
Interfaces []InstanceFrom Template Network Interface Args The networks attached to the instance.
- Network
Performance InstanceConfig From Template Network Performance Config Args Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- Params
Instance
From Template Params Args 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.
- Pulumi
Labels map[string]string The combination of labels configured directly on the resource and default labels configured on the provider.
- Reservation
Affinity InstanceFrom Template Reservation Affinity Args Specifies the reservations that this instance can consume from.
- Resource
Policies string A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- Scheduling
Instance
From Template Scheduling Args The scheduling strategy being used by the instance.
- Scratch
Disks []InstanceFrom Template Scratch Disk Args The scratch disks attached to the instance.
- Self
Link string The URI of the created resource.
- Service
Account InstanceFrom Template Service Account Args The service account to attach to the instance.
- Shielded
Instance InstanceConfig From Template Shielded Instance Config Args The shielded vm config being used by the instance.
- Source
Instance stringTemplate 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).- []string
The list of tags attached to the instance.
- 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 fromgcp.compute.Instance
are likewise exported here.
- advanced
Machine InstanceFeatures From Template Advanced Machine Features Controls for advanced machine-related behavior features.
- allow
Stopping BooleanFor Update 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 List<InstanceFrom Template Attached Disk> List of disks attached to the instance
- boot
Disk InstanceFrom Template Boot Disk The boot disk for the instance.
- can
Ip BooleanForward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential
Instance InstanceConfig From Template Confidential Instance Config 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 String The CPU platform used by this instance.
- current
Status 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.
- deletion
Protection Boolean Whether deletion protection is enabled on this instance.
- description String
A brief description of the resource.
- desired
Status String Desired status of the instance. Either "RUNNING" or "TERMINATED".
- effective
Labels 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.
- enable
Display Boolean Whether the instance has virtual displays enabled.
- guest
Accelerators List<InstanceFrom Template Guest Accelerator> 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.
- instance
Id String The server-assigned unique identifier of this instance.
- label
Fingerprint 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.
- machine
Type String The machine type to create.
- metadata Map<String,String>
Metadata key/value pairs made available within the instance.
- metadata
Fingerprint String The unique fingerprint of the metadata.
- metadata
Startup StringScript Metadata startup scripts made available within the instance.
- min
Cpu StringPlatform 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.
- network
Interfaces List<InstanceFrom Template Network Interface> The networks attached to the instance.
- network
Performance InstanceConfig From Template Network Performance Config Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- params
Instance
From Template Params 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.
- pulumi
Labels Map<String,String> The combination of labels configured directly on the resource and default labels configured on the provider.
- reservation
Affinity InstanceFrom Template Reservation Affinity Specifies the reservations that this instance can consume from.
- resource
Policies String A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- scheduling
Instance
From Template Scheduling The scheduling strategy being used by the instance.
- scratch
Disks List<InstanceFrom Template Scratch Disk> The scratch disks attached to the instance.
- self
Link String The URI of the created resource.
- service
Account InstanceFrom Template Service Account The service account to attach to the instance.
- shielded
Instance InstanceConfig From Template Shielded Instance Config The shielded vm config being used by the instance.
- source
Instance StringTemplate 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).- List<String>
The list of tags attached to the instance.
- 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 fromgcp.compute.Instance
are likewise exported here.
- advanced
Machine InstanceFeatures From Template Advanced Machine Features Controls for advanced machine-related behavior features.
- allow
Stopping booleanFor Update 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 InstanceFrom Template Attached Disk[] List of disks attached to the instance
- boot
Disk InstanceFrom Template Boot Disk The boot disk for the instance.
- can
Ip booleanForward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential
Instance InstanceConfig From Template Confidential Instance Config 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 string The CPU platform used by this instance.
- current
Status 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.
- deletion
Protection boolean Whether deletion protection is enabled on this instance.
- description string
A brief description of the resource.
- desired
Status string Desired status of the instance. Either "RUNNING" or "TERMINATED".
- effective
Labels {[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.
- enable
Display boolean Whether the instance has virtual displays enabled.
- guest
Accelerators InstanceFrom Template Guest Accelerator[] 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.
- instance
Id string The server-assigned unique identifier of this instance.
- label
Fingerprint 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.
- machine
Type string The machine type to create.
- metadata {[key: string]: string}
Metadata key/value pairs made available within the instance.
- metadata
Fingerprint string The unique fingerprint of the metadata.
- metadata
Startup stringScript Metadata startup scripts made available within the instance.
- min
Cpu stringPlatform 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.
- network
Interfaces InstanceFrom Template Network Interface[] The networks attached to the instance.
- network
Performance InstanceConfig From Template Network Performance Config Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- params
Instance
From Template Params 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.
- pulumi
Labels {[key: string]: string} The combination of labels configured directly on the resource and default labels configured on the provider.
- reservation
Affinity InstanceFrom Template Reservation Affinity Specifies the reservations that this instance can consume from.
- resource
Policies string A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
- scheduling
Instance
From Template Scheduling The scheduling strategy being used by the instance.
- scratch
Disks InstanceFrom Template Scratch Disk[] The scratch disks attached to the instance.
- self
Link string The URI of the created resource.
- service
Account InstanceFrom Template Service Account The service account to attach to the instance.
- shielded
Instance InstanceConfig From Template Shielded Instance Config The shielded vm config being used by the instance.
- source
Instance stringTemplate 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).- string[]
The list of tags attached to the instance.
- 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 fromgcp.compute.Instance
are likewise exported here.
- advanced_
machine_ Instancefeatures From Template Advanced Machine Features Args Controls for advanced machine-related behavior features.
- allow_
stopping_ boolfor_ update 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[InstanceFrom Template Attached Disk Args] List of disks attached to the instance
- boot_
disk InstanceFrom Template Boot Disk Args The boot disk for the instance.
- can_
ip_ boolforward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential_
instance_ Instanceconfig From Template Confidential Instance Config Args 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[InstanceFrom Template Guest Accelerator Args] 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_ strscript Metadata startup scripts made available within the instance.
- min_
cpu_ strplatform 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[InstanceFrom Template Network Interface Args] The networks attached to the instance.
- network_
performance_ Instanceconfig From Template Network Performance Config Args Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
- params
Instance
From Template Params Args 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 InstanceFrom Template Reservation Affinity Args 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
Instance
From Template Scheduling Args The scheduling strategy being used by the instance.
- scratch_
disks Sequence[InstanceFrom Template Scratch Disk Args] The scratch disks attached to the instance.
- self_
link str The URI of the created resource.
- service_
account InstanceFrom Template Service Account Args The service account to attach to the instance.
- shielded_
instance_ Instanceconfig From Template Shielded Instance Config Args The shielded vm config being used by the instance.
- source_
instance_ strtemplate 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).- Sequence[str]
The list of tags attached to the instance.
- 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 fromgcp.compute.Instance
are likewise exported here.
- advanced
Machine Property MapFeatures Controls for advanced machine-related behavior features.
- allow
Stopping BooleanFor Update 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 List<Property Map> List of disks attached to the instance
- boot
Disk Property Map The boot disk for the instance.
- can
Ip BooleanForward Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
- confidential
Instance Property MapConfig 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 String The CPU platform used by this instance.
- current
Status 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.
- deletion
Protection Boolean Whether deletion protection is enabled on this instance.
- description String
A brief description of the resource.
- desired
Status String Desired status of the instance. Either "RUNNING" or "TERMINATED".
- effective
Labels Map<String> All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.
- enable
Display Boolean Whether the instance has virtual displays enabled.
- guest
Accelerators 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.
- instance
Id String The server-assigned unique identifier of this instance.
- label
Fingerprint 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.
- machine
Type String The machine type to create.
- metadata Map<String>
Metadata key/value pairs made available within the instance.
- metadata
Fingerprint String The unique fingerprint of the metadata.
- metadata
Startup StringScript Metadata startup scripts made available within the instance.
- min
Cpu StringPlatform 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.
- network
Interfaces List<Property Map> The networks attached to the instance.
- network
Performance Property MapConfig 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.
- pulumi
Labels Map<String> The combination of labels configured directly on the resource and default labels configured on the provider.
- reservation
Affinity Property Map Specifies the reservations that this instance can consume from.
- resource
Policies 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.
- scratch
Disks List<Property Map> The scratch disks attached to the instance.
- self
Link String The URI of the created resource.
- service
Account Property Map The service account to attach to the instance.
- shielded
Instance Property MapConfig The shielded vm config being used by the instance.
- source
Instance StringTemplate 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).- List<String>
The list of tags attached to the instance.
- 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 fromgcp.compute.Instance
are likewise exported here.
Supporting Types
InstanceFromTemplateAdvancedMachineFeatures, InstanceFromTemplateAdvancedMachineFeaturesArgs
- enable
Nested BooleanVirtualization - threads
Per IntegerCore - visible
Core IntegerCount
- enable
Nested booleanVirtualization - threads
Per numberCore - visible
Core numberCount
- enable
Nested BooleanVirtualization - threads
Per NumberCore - visible
Core NumberCount
InstanceFromTemplateAttachedDisk, InstanceFromTemplateAttachedDiskArgs
- Source string
- Device
Name string - Disk
Encryption stringKey Raw - Disk
Encryption stringKey Sha256 - Kms
Key stringSelf Link - Mode string
- Source string
- Device
Name string - Disk
Encryption stringKey Raw - Disk
Encryption stringKey Sha256 - Kms
Key stringSelf Link - Mode string
- source String
- device
Name String - disk
Encryption StringKey Raw - disk
Encryption StringKey Sha256 - kms
Key StringSelf Link - mode String
- source string
- device
Name string - disk
Encryption stringKey Raw - disk
Encryption stringKey Sha256 - kms
Key stringSelf Link - mode string
- source str
- device_
name str - disk_
encryption_ strkey_ raw - disk_
encryption_ strkey_ sha256 - kms_
key_ strself_ link - mode str
- source String
- device
Name String - disk
Encryption StringKey Raw - disk
Encryption StringKey Sha256 - kms
Key StringSelf Link - mode String
InstanceFromTemplateBootDisk, InstanceFromTemplateBootDiskArgs
- Auto
Delete bool - Device
Name string - Disk
Encryption stringKey Raw - Disk
Encryption stringKey Sha256 - Initialize
Params InstanceFrom Template Boot Disk Initialize Params - Kms
Key stringSelf Link - Mode string
- Source string
- Auto
Delete bool - Device
Name string - Disk
Encryption stringKey Raw - Disk
Encryption stringKey Sha256 - Initialize
Params InstanceFrom Template Boot Disk Initialize Params - Kms
Key stringSelf Link - Mode string
- Source string
- auto
Delete Boolean - device
Name String - disk
Encryption StringKey Raw - disk
Encryption StringKey Sha256 - initialize
Params InstanceFrom Template Boot Disk Initialize Params - kms
Key StringSelf Link - mode String
- source String
- auto
Delete boolean - device
Name string - disk
Encryption stringKey Raw - disk
Encryption stringKey Sha256 - initialize
Params InstanceFrom Template Boot Disk Initialize Params - kms
Key stringSelf Link - mode string
- source string
- auto
Delete Boolean - device
Name String - disk
Encryption StringKey Raw - disk
Encryption StringKey Sha256 - initialize
Params Property Map - kms
Key StringSelf Link - mode String
- source String
InstanceFromTemplateBootDiskInitializeParams, InstanceFromTemplateBootDiskInitializeParamsArgs
- Enable
Confidential boolCompute - Image string
- Labels Dictionary<string, object>
- Dictionary<string, object>
- Size int
- Type string
- Enable
Confidential boolCompute - Image string
- Labels map[string]interface{}
- map[string]interface{}
- Size int
- Type string
- enable
Confidential BooleanCompute - image String
- labels Map<String,Object>
- Map<String,Object>
- size Integer
- type String
- enable
Confidential booleanCompute - image string
- labels {[key: string]: any}
- {[key: string]: any}
- size number
- type string
- enable_
confidential_ boolcompute - image str
- labels Mapping[str, Any]
- Mapping[str, Any]
- size int
- type str
- enable
Confidential BooleanCompute - image String
- labels Map<Any>
- Map<Any>
- size Number
- type String
InstanceFromTemplateConfidentialInstanceConfig, InstanceFromTemplateConfidentialInstanceConfigArgs
- enable
Confidential BooleanCompute
- enable
Confidential booleanCompute
- enable
Confidential BooleanCompute
InstanceFromTemplateGuestAccelerator, InstanceFromTemplateGuestAcceleratorArgs
InstanceFromTemplateNetworkInterface, InstanceFromTemplateNetworkInterfaceArgs
- Access
Configs List<InstanceFrom Template Network Interface Access Config> - Alias
Ip List<InstanceRanges From Template Network Interface Alias Ip Range> - Internal
Ipv6Prefix intLength - Ipv6Access
Configs List<InstanceFrom Template Network Interface Ipv6Access Config> - Ipv6Access
Type 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
- Network
Attachment string - Network
Ip string - Nic
Type string - Queue
Count int - Security
Policy string - Stack
Type string - Subnetwork string
- Subnetwork
Project string
- Access
Configs []InstanceFrom Template Network Interface Access Config - Alias
Ip []InstanceRanges From Template Network Interface Alias Ip Range - Internal
Ipv6Prefix intLength - Ipv6Access
Configs []InstanceFrom Template Network Interface Ipv6Access Config - Ipv6Access
Type 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
- Network
Attachment string - Network
Ip string - Nic
Type string - Queue
Count int - Security
Policy string - Stack
Type string - Subnetwork string
- Subnetwork
Project string
- access
Configs List<InstanceFrom Template Network Interface Access Config> - alias
Ip List<InstanceRanges From Template Network Interface Alias Ip Range> - internal
Ipv6Prefix IntegerLength - ipv6Access
Configs List<InstanceFrom Template Network Interface Ipv6Access Config> - ipv6Access
Type 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
- network
Attachment String - network
Ip String - nic
Type String - queue
Count Integer - security
Policy String - stack
Type String - subnetwork String
- subnetwork
Project String
- access
Configs InstanceFrom Template Network Interface Access Config[] - alias
Ip InstanceRanges From Template Network Interface Alias Ip Range[] - internal
Ipv6Prefix numberLength - ipv6Access
Configs InstanceFrom Template Network Interface Ipv6Access Config[] - ipv6Access
Type 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
- network
Attachment string - network
Ip string - nic
Type string - queue
Count number - security
Policy string - stack
Type string - subnetwork string
- subnetwork
Project string
- access_
configs Sequence[InstanceFrom Template Network Interface Access Config] - alias_
ip_ Sequence[Instanceranges From Template Network Interface Alias Ip Range] - internal_
ipv6_ intprefix_ length - ipv6_
access_ Sequence[Instanceconfigs From Template Network Interface Ipv6Access Config] - ipv6_
access_ strtype - ipv6_
address str - name str
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network str
- network_
attachment str - network_
ip str - nic_
type str - queue_
count int - security_
policy str - stack_
type str - subnetwork str
- subnetwork_
project str
- access
Configs List<Property Map> - alias
Ip List<Property Map>Ranges - internal
Ipv6Prefix NumberLength - ipv6Access
Configs List<Property Map> - ipv6Access
Type 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
- network
Attachment String - network
Ip String - nic
Type String - queue
Count Number - security
Policy String - stack
Type String - subnetwork String
- subnetwork
Project String
InstanceFromTemplateNetworkInterfaceAccessConfig, InstanceFromTemplateNetworkInterfaceAccessConfigArgs
- Nat
Ip string - Network
Tier string - Public
Ptr stringDomain Name - Security
Policy string
- Nat
Ip string - Network
Tier string - Public
Ptr stringDomain Name - Security
Policy string
- nat
Ip String - network
Tier String - public
Ptr StringDomain Name - security
Policy String
- nat
Ip string - network
Tier string - public
Ptr stringDomain Name - security
Policy string
- nat_
ip str - network_
tier str - public_
ptr_ strdomain_ name - security_
policy str
- nat
Ip String - network
Tier String - public
Ptr StringDomain Name - security
Policy String
InstanceFromTemplateNetworkInterfaceAliasIpRange, InstanceFromTemplateNetworkInterfaceAliasIpRangeArgs
- Ip
Cidr stringRange - Subnetwork
Range stringName
- Ip
Cidr stringRange - Subnetwork
Range stringName
- ip
Cidr StringRange - subnetwork
Range StringName
- ip
Cidr stringRange - subnetwork
Range stringName
- ip
Cidr StringRange - subnetwork
Range StringName
InstanceFromTemplateNetworkInterfaceIpv6AccessConfig, InstanceFromTemplateNetworkInterfaceIpv6AccessConfigArgs
- Network
Tier string - External
Ipv6 string - External
Ipv6Prefix stringLength - Name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Public
Ptr stringDomain Name - Security
Policy string
- Network
Tier string - External
Ipv6 string - External
Ipv6Prefix stringLength - Name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Public
Ptr stringDomain Name - Security
Policy string
- network
Tier String - external
Ipv6 String - external
Ipv6Prefix StringLength - name String
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- public
Ptr StringDomain Name - security
Policy String
- network
Tier string - external
Ipv6 string - external
Ipv6Prefix stringLength - name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- public
Ptr stringDomain Name - security
Policy string
- network_
tier str - external_
ipv6 str - external_
ipv6_ strprefix_ length - name str
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- public_
ptr_ strdomain_ name - security_
policy str
- network
Tier String - external
Ipv6 String - external
Ipv6Prefix StringLength - name String
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- public
Ptr StringDomain Name - security
Policy String
InstanceFromTemplateNetworkPerformanceConfig, InstanceFromTemplateNetworkPerformanceConfigArgs
- Total
Egress stringBandwidth Tier
- Total
Egress stringBandwidth Tier
- total
Egress StringBandwidth Tier
- total
Egress stringBandwidth Tier
- total
Egress StringBandwidth Tier
InstanceFromTemplateParams, InstanceFromTemplateParamsArgs
- Dictionary<string, object>
- map[string]interface{}
- Map<String,Object>
- {[key: string]: any}
- Mapping[str, Any]
- Map<Any>
InstanceFromTemplateReservationAffinity, InstanceFromTemplateReservationAffinityArgs
InstanceFromTemplateReservationAffinitySpecificReservation, InstanceFromTemplateReservationAffinitySpecificReservationArgs
InstanceFromTemplateScheduling, InstanceFromTemplateSchedulingArgs
- Automatic
Restart bool - Instance
Termination stringAction - Local
Ssd InstanceRecovery Timeout From Template Scheduling Local Ssd Recovery Timeout - Maintenance
Interval string - Max
Run InstanceDuration From Template Scheduling Max Run Duration - Min
Node intCpus - Node
Affinities List<InstanceFrom Template Scheduling Node Affinity> - On
Host stringMaintenance - Preemptible bool
- Provisioning
Model string
- Automatic
Restart bool - Instance
Termination stringAction - Local
Ssd InstanceRecovery Timeout From Template Scheduling Local Ssd Recovery Timeout - Maintenance
Interval string - Max
Run InstanceDuration From Template Scheduling Max Run Duration - Min
Node intCpus - Node
Affinities []InstanceFrom Template Scheduling Node Affinity - On
Host stringMaintenance - Preemptible bool
- Provisioning
Model string
- automatic
Restart Boolean - instance
Termination StringAction - local
Ssd InstanceRecovery Timeout From Template Scheduling Local Ssd Recovery Timeout - maintenance
Interval String - max
Run InstanceDuration From Template Scheduling Max Run Duration - min
Node IntegerCpus - node
Affinities List<InstanceFrom Template Scheduling Node Affinity> - on
Host StringMaintenance - preemptible Boolean
- provisioning
Model String
- automatic
Restart boolean - instance
Termination stringAction - local
Ssd InstanceRecovery Timeout From Template Scheduling Local Ssd Recovery Timeout - maintenance
Interval string - max
Run InstanceDuration From Template Scheduling Max Run Duration - min
Node numberCpus - node
Affinities InstanceFrom Template Scheduling Node Affinity[] - on
Host stringMaintenance - preemptible boolean
- provisioning
Model string
- automatic_
restart bool - instance_
termination_ straction - local_
ssd_ Instancerecovery_ timeout From Template Scheduling Local Ssd Recovery Timeout - maintenance_
interval str - max_
run_ Instanceduration From Template Scheduling Max Run Duration - min_
node_ intcpus - node_
affinities Sequence[InstanceFrom Template Scheduling Node Affinity] - on_
host_ strmaintenance - preemptible bool
- provisioning_
model str
- automatic
Restart Boolean - instance
Termination StringAction - local
Ssd Property MapRecovery Timeout - maintenance
Interval String - max
Run Property MapDuration - min
Node NumberCpus - node
Affinities List<Property Map> - on
Host StringMaintenance - preemptible Boolean
- provisioning
Model String
InstanceFromTemplateSchedulingLocalSsdRecoveryTimeout, InstanceFromTemplateSchedulingLocalSsdRecoveryTimeoutArgs
InstanceFromTemplateSchedulingMaxRunDuration, InstanceFromTemplateSchedulingMaxRunDurationArgs
InstanceFromTemplateSchedulingNodeAffinity, InstanceFromTemplateSchedulingNodeAffinityArgs
InstanceFromTemplateScratchDisk, InstanceFromTemplateScratchDiskArgs
- Interface string
- Device
Name string - Size int
- Interface string
- Device
Name string - Size int
- interface_ String
- device
Name String - size Integer
- interface string
- device
Name string - size number
- interface str
- device_
name str - size int
- interface String
- device
Name String - size Number
InstanceFromTemplateServiceAccount, InstanceFromTemplateServiceAccountArgs
InstanceFromTemplateShieldedInstanceConfig, InstanceFromTemplateShieldedInstanceConfigArgs
- Enable
Integrity boolMonitoring - Enable
Secure boolBoot - Enable
Vtpm bool
- Enable
Integrity boolMonitoring - Enable
Secure boolBoot - Enable
Vtpm bool
- enable
Integrity BooleanMonitoring - enable
Secure BooleanBoot - enable
Vtpm Boolean
- enable
Integrity booleanMonitoring - enable
Secure booleanBoot - enable
Vtpm boolean
- enable_
integrity_ boolmonitoring - enable_
secure_ boolboot - enable_
vtpm bool
- enable
Integrity BooleanMonitoring - enable
Secure BooleanBoot - enable
Vtpm Boolean
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.