InstanceFromTemplate
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.
Create a InstanceFromTemplate Resource
new InstanceFromTemplate(name: string, args: InstanceFromTemplateArgs, opts?: CustomResourceOptions);def InstanceFromTemplate(resource_name, opts=None, allow_stopping_for_update=None, attached_disks=None, boot_disk=None, can_ip_forward=None, deletion_protection=None, description=None, desired_status=None, enable_display=None, guest_accelerators=None, hostname=None, labels=None, machine_type=None, metadata=None, metadata_startup_script=None, min_cpu_platform=None, name=None, network_interfaces=None, project=None, resource_policies=None, scheduling=None, scratch_disks=None, service_account=None, shielded_instance_config=None, source_instance_template=None, tags=None, zone=None, __props__=None);func NewInstanceFromTemplate(ctx *Context, name string, args InstanceFromTemplateArgs, opts ...ResourceOption) (*InstanceFromTemplate, error)public InstanceFromTemplate(string name, InstanceFromTemplateArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
InstanceFromTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model 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.
- 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 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.
- 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 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 Dictionary<string, string>
A set of key/value label pairs assigned to the instance.
- 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 Args> The networks attached to the instance.
- 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.
- Resource
Policies string A list of short names or self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. 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 List<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.
- 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.
- Source
Instance stringTemplate Name or self link of an instance template to create the instance based on.
- 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 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.
- 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 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.
- 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 The networks attached to the instance.
- 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.
- Resource
Policies string A list of short names or self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. 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.
- source
Instance stringTemplate Name or self link of an instance template to create the instance based on.
- 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.
- 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.
- 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.
- 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.
- resource
Policies string A list of short names or self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. 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.
- source_
instance_ strtemplate Name or self link of an instance template to create the instance based on.
- 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 Dict[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.
- 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 List[InstanceFrom Template Guest Accelerator] 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 Dict[str, str]
A set of key/value label pairs assigned to the instance.
- machine_
type str The machine type to create.
- metadata Dict[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 List[InstanceFrom Template Network Interface] The networks attached to the instance.
- 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.
- resource_
policies str A list of short names or self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
- scheduling
Dict[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 Dict[InstanceFrom Template Service Account] The service account to attach to the instance.
- shielded_
instance_ Dict[Instanceconfig From Template Shielded Instance Config] The shielded vm config being used by the instance.
- List[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.
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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- self_
link str The URI of the created resource.
- str
The unique fingerprint of the tags.
Look up an 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): InstanceFromTemplatestatic get(resource_name, id, opts=None, allow_stopping_for_update=None, attached_disks=None, boot_disk=None, can_ip_forward=None, cpu_platform=None, current_status=None, deletion_protection=None, description=None, desired_status=None, enable_display=None, guest_accelerators=None, hostname=None, instance_id=None, label_fingerprint=None, labels=None, machine_type=None, metadata=None, metadata_fingerprint=None, metadata_startup_script=None, min_cpu_platform=None, name=None, network_interfaces=None, project=None, resource_policies=None, scheduling=None, scratch_disks=None, self_link=None, service_account=None, shielded_instance_config=None, source_instance_template=None, tags=None, tags_fingerprint=None, zone=None, __props__=None);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)- 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.
The following state arguments are supported:
- 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 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.
- Cpu
Platform string The CPU platform used by this instance.
- Current
Status string Current status of the instance.
- 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 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 Dictionary<string, string>
A set of key/value label pairs assigned to the instance.
- 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 Args> The networks attached to the instance.
- 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.
- Resource
Policies string A list of short names or self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. 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 List<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.
- 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.
- 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 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.
- Cpu
Platform string The CPU platform used by this instance.
- Current
Status string Current status of the instance.
- 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 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.
- 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 The networks attached to the instance.
- 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.
- Resource
Policies string A list of short names or self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. 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.
- []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.
- 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.
- cpu
Platform string The CPU platform used by this instance.
- current
Status string Current status of the instance.
- 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.
- 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.
- 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.
- 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.
- resource
Policies string A list of short names or self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. 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.
- 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.
- 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 Dict[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.
- cpu_
platform str The CPU platform used by this instance.
- current_
status str Current status of the instance.
- 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 List[InstanceFrom Template Guest Accelerator] 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 Dict[str, str]
A set of key/value label pairs assigned to the instance.
- machine_
type str The machine type to create.
- metadata Dict[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 List[InstanceFrom Template Network Interface] The networks attached to the instance.
- 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.
- resource_
policies str A list of short names or self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
- scheduling
Dict[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 str The URI of the created resource.
- service_
account Dict[InstanceFrom Template Service Account] The service account to attach to the instance.
- shielded_
instance_ Dict[Instanceconfig From Template Shielded Instance Config] 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.
- List[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.
Supporting Types
InstanceFromTemplateAttachedDisk
InstanceFromTemplateBootDisk
InstanceFromTemplateBootDiskInitializeParams
InstanceFromTemplateGuestAccelerator
InstanceFromTemplateNetworkInterface
- Access
Configs List<InstanceFrom Template Network Interface Access Config Args> - Alias
Ip List<InstanceRanges From Template Network Interface Alias Ip Range Args> - Name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Network string
- Network
Ip string - Subnetwork string
- Subnetwork
Project string
- Access
Configs []InstanceFrom Template Network Interface Access Config - Alias
Ip []InstanceRanges From Template Network Interface Alias Ip Range - Name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Network string
- Network
Ip string - Subnetwork string
- Subnetwork
Project string
- access
Configs InstanceFrom Template Network Interface Access Config[] - alias
Ip InstanceRanges From Template Network Interface Alias Ip Range[] - name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network string
- network
Ip 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] - name str
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network str
- network
Ip str - subnetwork str
- subnetwork
Project str
InstanceFromTemplateNetworkInterfaceAccessConfig
InstanceFromTemplateNetworkInterfaceAliasIpRange
InstanceFromTemplateScheduling
InstanceFromTemplateSchedulingNodeAffinity
InstanceFromTemplateScratchDisk
InstanceFromTemplateServiceAccount
InstanceFromTemplateShieldedInstanceConfig
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.