Instance
Manages a VM instance resource within GCE. For more information see the official documentation and API.
Create a Instance Resource
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);def Instance(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, tags=None, zone=None, __props__=None);func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args InstanceArgs
- 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 InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Instance resource accepts the following input properties:
- Boot
Disk InstanceBoot Disk Args The boot disk for the instance. Structure is documented below.
- Machine
Type string The machine type to create.
- Network
Interfaces List<InstanceNetwork Interface Args> Networks to attach to the instance. This can be specified multiple times. Structure is documented below.
- Allow
Stopping boolFor Update If true, allows this prvider 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<InstanceAttached Disk Args> Additional disks to attach to the instance. Can be repeated multiple times for multiple disks. Structure is documented below.
- Can
Ip boolForward Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
- Deletion
Protection bool Enable deletion protection on this instance. Defaults to false. Note: you must disable deletion protection before removing the resource (e.g., via
pulumi destroy), or the instance cannot be deleted and the provider run will not complete successfully.- Description string
A brief description of this resource.
- Desired
Status string Desired status of the instance. Either
"RUNNING"or"TERMINATED".- Enable
Display bool Enable Virtual Displays on this instance. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- Guest
Accelerators List<InstanceGuest Accelerator Args> List of the type and count of accelerator cards attached to the instance. Structure documented below. Note: GPU accelerators can only be used with
on_host_maintenanceoption set to TERMINATE.- 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 map of key/value label pairs to assign to the instance.
- Metadata Dictionary<string, string>
Metadata key/value pairs to make available from within the instance. Ssh keys attached in the Cloud Console will be removed. Add them to your config in order to keep them attached to your instance.
- Metadata
Startup stringScript An alternative to using the startup-script metadata key, except this one forces the instance to be recreated (thus re-running the script) if it is changed. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously. Users are free to use either mechanism - the only distinction is that this separate attribute willl cause a recreate on modification. On import,
metadata_startup_scriptwill be set, butmetadata.startup-scriptwill not - if you choose to use the other mechanism, you will see a diff immediately after import, which will cause a destroy/recreate operation. You may want to modify your state file manually usingpulumi stackcommands, depending on your use case.- Min
Cpu stringPlatform Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as
Intel HaswellorIntel Skylake. See the complete list here. Note:allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- Name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Project string
The ID of the project in which the resource belongs. If it is not 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
Scheduling Args The scheduling strategy to use. More details about this configuration option are detailed below.
- Scratch
Disks List<InstanceScratch Disk Args> Scratch disks to attach to the instance. This can be specified multiple times for multiple scratch disks. Structure is documented below.
- Service
Account InstanceService Account Args Service account to attach to the instance. Structure is documented below. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- Shielded
Instance InstanceConfig Shielded Instance Config Args Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note:
shielded_instance_configcan only be used with boot images with shielded vm support. See the complete list here.- List<string>
A list of network tags to attach to the instance.
- Zone string
The zone that the machine should be created in.
- Boot
Disk InstanceBoot Disk The boot disk for the instance. Structure is documented below.
- Machine
Type string The machine type to create.
- Network
Interfaces []InstanceNetwork Interface Networks to attach to the instance. This can be specified multiple times. Structure is documented below.
- Allow
Stopping boolFor Update If true, allows this prvider 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 []InstanceAttached Disk Additional disks to attach to the instance. Can be repeated multiple times for multiple disks. Structure is documented below.
- Can
Ip boolForward Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
- Deletion
Protection bool Enable deletion protection on this instance. Defaults to false. Note: you must disable deletion protection before removing the resource (e.g., via
pulumi destroy), or the instance cannot be deleted and the provider run will not complete successfully.- Description string
A brief description of this resource.
- Desired
Status string Desired status of the instance. Either
"RUNNING"or"TERMINATED".- Enable
Display bool Enable Virtual Displays on this instance. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- Guest
Accelerators []InstanceGuest Accelerator List of the type and count of accelerator cards attached to the instance. Structure documented below. Note: GPU accelerators can only be used with
on_host_maintenanceoption set to TERMINATE.- 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 map of key/value label pairs to assign to the instance.
- Metadata map[string]string
Metadata key/value pairs to make available from within the instance. Ssh keys attached in the Cloud Console will be removed. Add them to your config in order to keep them attached to your instance.
- Metadata
Startup stringScript An alternative to using the startup-script metadata key, except this one forces the instance to be recreated (thus re-running the script) if it is changed. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously. Users are free to use either mechanism - the only distinction is that this separate attribute willl cause a recreate on modification. On import,
metadata_startup_scriptwill be set, butmetadata.startup-scriptwill not - if you choose to use the other mechanism, you will see a diff immediately after import, which will cause a destroy/recreate operation. You may want to modify your state file manually usingpulumi stackcommands, depending on your use case.- Min
Cpu stringPlatform Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as
Intel HaswellorIntel Skylake. See the complete list here. Note:allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- Name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Project string
The ID of the project in which the resource belongs. If it is not 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
Scheduling The scheduling strategy to use. More details about this configuration option are detailed below.
- Scratch
Disks []InstanceScratch Disk Scratch disks to attach to the instance. This can be specified multiple times for multiple scratch disks. Structure is documented below.
- Service
Account InstanceService Account Service account to attach to the instance. Structure is documented below. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- Shielded
Instance InstanceConfig Shielded Instance Config Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note:
shielded_instance_configcan only be used with boot images with shielded vm support. See the complete list here.- []string
A list of network tags to attach to the instance.
- Zone string
The zone that the machine should be created in.
- boot
Disk InstanceBoot Disk The boot disk for the instance. Structure is documented below.
- machine
Type string The machine type to create.
- network
Interfaces InstanceNetwork Interface[] Networks to attach to the instance. This can be specified multiple times. Structure is documented below.
- allow
Stopping booleanFor Update If true, allows this prvider 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 InstanceAttached Disk[] Additional disks to attach to the instance. Can be repeated multiple times for multiple disks. Structure is documented below.
- can
Ip booleanForward Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
- deletion
Protection boolean Enable deletion protection on this instance. Defaults to false. Note: you must disable deletion protection before removing the resource (e.g., via
pulumi destroy), or the instance cannot be deleted and the provider run will not complete successfully.- description string
A brief description of this resource.
- desired
Status string Desired status of the instance. Either
"RUNNING"or"TERMINATED".- enable
Display boolean Enable Virtual Displays on this instance. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- guest
Accelerators InstanceGuest Accelerator[] List of the type and count of accelerator cards attached to the instance. Structure documented below. Note: GPU accelerators can only be used with
on_host_maintenanceoption set to TERMINATE.- 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 map of key/value label pairs to assign to the instance.
- metadata {[key: string]: string}
Metadata key/value pairs to make available from within the instance. Ssh keys attached in the Cloud Console will be removed. Add them to your config in order to keep them attached to your instance.
- metadata
Startup stringScript An alternative to using the startup-script metadata key, except this one forces the instance to be recreated (thus re-running the script) if it is changed. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously. Users are free to use either mechanism - the only distinction is that this separate attribute willl cause a recreate on modification. On import,
metadata_startup_scriptwill be set, butmetadata.startup-scriptwill not - if you choose to use the other mechanism, you will see a diff immediately after import, which will cause a destroy/recreate operation. You may want to modify your state file manually usingpulumi stackcommands, depending on your use case.- min
Cpu stringPlatform Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as
Intel HaswellorIntel Skylake. See the complete list here. Note:allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- project string
The ID of the project in which the resource belongs. If it is not 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
Scheduling The scheduling strategy to use. More details about this configuration option are detailed below.
- scratch
Disks InstanceScratch Disk[] Scratch disks to attach to the instance. This can be specified multiple times for multiple scratch disks. Structure is documented below.
- service
Account InstanceService Account Service account to attach to the instance. Structure is documented below. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- shielded
Instance InstanceConfig Shielded Instance Config Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note:
shielded_instance_configcan only be used with boot images with shielded vm support. See the complete list here.- string[]
A list of network tags to attach to the instance.
- zone string
The zone that the machine should be created in.
- boot_
disk Dict[InstanceBoot Disk] The boot disk for the instance. Structure is documented below.
- machine_
type str The machine type to create.
- network_
interfaces List[InstanceNetwork Interface] Networks to attach to the instance. This can be specified multiple times. Structure is documented below.
- allow_
stopping_ boolfor_ update If true, allows this prvider 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[InstanceAttached Disk] Additional disks to attach to the instance. Can be repeated multiple times for multiple disks. Structure is documented below.
- can_
ip_ boolforward Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
- deletion_
protection bool Enable deletion protection on this instance. Defaults to false. Note: you must disable deletion protection before removing the resource (e.g., via
pulumi destroy), or the instance cannot be deleted and the provider run will not complete successfully.- description str
A brief description of this resource.
- desired_
status str Desired status of the instance. Either
"RUNNING"or"TERMINATED".- enable_
display bool Enable Virtual Displays on this instance. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- guest_
accelerators List[InstanceGuest Accelerator] List of the type and count of accelerator cards attached to the instance. Structure documented below. Note: GPU accelerators can only be used with
on_host_maintenanceoption set to TERMINATE.- 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 map of key/value label pairs to assign to the instance.
- metadata Dict[str, str]
Metadata key/value pairs to make available from within the instance. Ssh keys attached in the Cloud Console will be removed. Add them to your config in order to keep them attached to your instance.
- metadata_
startup_ strscript An alternative to using the startup-script metadata key, except this one forces the instance to be recreated (thus re-running the script) if it is changed. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously. Users are free to use either mechanism - the only distinction is that this separate attribute willl cause a recreate on modification. On import,
metadata_startup_scriptwill be set, butmetadata.startup-scriptwill not - if you choose to use the other mechanism, you will see a diff immediately after import, which will cause a destroy/recreate operation. You may want to modify your state file manually usingpulumi stackcommands, depending on your use case.- min_
cpu_ strplatform Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as
Intel HaswellorIntel Skylake. See the complete list here. Note:allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- name str
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- project str
The ID of the project in which the resource belongs. If it is not 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
Scheduling] The scheduling strategy to use. More details about this configuration option are detailed below.
- scratch_
disks List[InstanceScratch Disk] Scratch disks to attach to the instance. This can be specified multiple times for multiple scratch disks. Structure is documented below.
- service_
account Dict[InstanceService Account] Service account to attach to the instance. Structure is documented below. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- shielded_
instance_ Dict[Instanceconfig Shielded Instance Config] Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note:
shielded_instance_configcan only be used with boot images with shielded vm support. See the complete list here.- List[str]
A list of network tags to attach to the instance.
- zone str
The zone that the machine should be created in.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance 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 Instance Resource
Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instancestatic 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, tags=None, tags_fingerprint=None, zone=None, __props__=None);func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, InstanceState? 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 this prvider 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<InstanceAttached Disk Args> Additional disks to attach to the instance. Can be repeated multiple times for multiple disks. Structure is documented below.
- Boot
Disk InstanceBoot Disk Args The boot disk for the instance. Structure is documented below.
- Can
Ip boolForward Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
- Cpu
Platform string The CPU platform used by this instance.
- Current
Status string Current status of the instance.
- Deletion
Protection bool Enable deletion protection on this instance. Defaults to false. Note: you must disable deletion protection before removing the resource (e.g., via
pulumi destroy), or the instance cannot be deleted and the provider run will not complete successfully.- Description string
A brief description of this resource.
- Desired
Status string Desired status of the instance. Either
"RUNNING"or"TERMINATED".- Enable
Display bool Enable Virtual Displays on this instance. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- Guest
Accelerators List<InstanceGuest Accelerator Args> List of the type and count of accelerator cards attached to the instance. Structure documented below. Note: GPU accelerators can only be used with
on_host_maintenanceoption set to TERMINATE.- 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 map of key/value label pairs to assign to the instance.
- Machine
Type string The machine type to create.
- Metadata Dictionary<string, string>
Metadata key/value pairs to make available from within the instance. Ssh keys attached in the Cloud Console will be removed. Add them to your config in order to keep them attached to your instance.
- Metadata
Fingerprint string The unique fingerprint of the metadata.
- Metadata
Startup stringScript An alternative to using the startup-script metadata key, except this one forces the instance to be recreated (thus re-running the script) if it is changed. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously. Users are free to use either mechanism - the only distinction is that this separate attribute willl cause a recreate on modification. On import,
metadata_startup_scriptwill be set, butmetadata.startup-scriptwill not - if you choose to use the other mechanism, you will see a diff immediately after import, which will cause a destroy/recreate operation. You may want to modify your state file manually usingpulumi stackcommands, depending on your use case.- Min
Cpu stringPlatform Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as
Intel HaswellorIntel Skylake. See the complete list here. Note:allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- Name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Network
Interfaces List<InstanceNetwork Interface Args> Networks to attach to the instance. This can be specified multiple times. Structure is documented below.
- Project string
The ID of the project in which the resource belongs. If it is not 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
Scheduling Args The scheduling strategy to use. More details about this configuration option are detailed below.
- Scratch
Disks List<InstanceScratch Disk Args> Scratch disks to attach to the instance. This can be specified multiple times for multiple scratch disks. Structure is documented below.
- Self
Link string The URI of the created resource.
- Service
Account InstanceService Account Args Service account to attach to the instance. Structure is documented below. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- Shielded
Instance InstanceConfig Shielded Instance Config Args Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note:
shielded_instance_configcan only be used with boot images with shielded vm support. See the complete list here.- List<string>
A list of network tags to attach to the instance.
- string
The unique fingerprint of the tags.
- Zone string
The zone that the machine should be created in.
- Allow
Stopping boolFor Update If true, allows this prvider 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 []InstanceAttached Disk Additional disks to attach to the instance. Can be repeated multiple times for multiple disks. Structure is documented below.
- Boot
Disk InstanceBoot Disk The boot disk for the instance. Structure is documented below.
- Can
Ip boolForward Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
- Cpu
Platform string The CPU platform used by this instance.
- Current
Status string Current status of the instance.
- Deletion
Protection bool Enable deletion protection on this instance. Defaults to false. Note: you must disable deletion protection before removing the resource (e.g., via
pulumi destroy), or the instance cannot be deleted and the provider run will not complete successfully.- Description string
A brief description of this resource.
- Desired
Status string Desired status of the instance. Either
"RUNNING"or"TERMINATED".- Enable
Display bool Enable Virtual Displays on this instance. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- Guest
Accelerators []InstanceGuest Accelerator List of the type and count of accelerator cards attached to the instance. Structure documented below. Note: GPU accelerators can only be used with
on_host_maintenanceoption set to TERMINATE.- 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 map of key/value label pairs to assign to the instance.
- Machine
Type string The machine type to create.
- Metadata map[string]string
Metadata key/value pairs to make available from within the instance. Ssh keys attached in the Cloud Console will be removed. Add them to your config in order to keep them attached to your instance.
- Metadata
Fingerprint string The unique fingerprint of the metadata.
- Metadata
Startup stringScript An alternative to using the startup-script metadata key, except this one forces the instance to be recreated (thus re-running the script) if it is changed. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously. Users are free to use either mechanism - the only distinction is that this separate attribute willl cause a recreate on modification. On import,
metadata_startup_scriptwill be set, butmetadata.startup-scriptwill not - if you choose to use the other mechanism, you will see a diff immediately after import, which will cause a destroy/recreate operation. You may want to modify your state file manually usingpulumi stackcommands, depending on your use case.- Min
Cpu stringPlatform Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as
Intel HaswellorIntel Skylake. See the complete list here. Note:allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- Name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Network
Interfaces []InstanceNetwork Interface Networks to attach to the instance. This can be specified multiple times. Structure is documented below.
- Project string
The ID of the project in which the resource belongs. If it is not 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
Scheduling The scheduling strategy to use. More details about this configuration option are detailed below.
- Scratch
Disks []InstanceScratch Disk Scratch disks to attach to the instance. This can be specified multiple times for multiple scratch disks. Structure is documented below.
- Self
Link string The URI of the created resource.
- Service
Account InstanceService Account Service account to attach to the instance. Structure is documented below. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- Shielded
Instance InstanceConfig Shielded Instance Config Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note:
shielded_instance_configcan only be used with boot images with shielded vm support. See the complete list here.- []string
A list of network tags to attach to the instance.
- string
The unique fingerprint of the tags.
- Zone string
The zone that the machine should be created in.
- allow
Stopping booleanFor Update If true, allows this prvider 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 InstanceAttached Disk[] Additional disks to attach to the instance. Can be repeated multiple times for multiple disks. Structure is documented below.
- boot
Disk InstanceBoot Disk The boot disk for the instance. Structure is documented below.
- can
Ip booleanForward Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
- cpu
Platform string The CPU platform used by this instance.
- current
Status string Current status of the instance.
- deletion
Protection boolean Enable deletion protection on this instance. Defaults to false. Note: you must disable deletion protection before removing the resource (e.g., via
pulumi destroy), or the instance cannot be deleted and the provider run will not complete successfully.- description string
A brief description of this resource.
- desired
Status string Desired status of the instance. Either
"RUNNING"or"TERMINATED".- enable
Display boolean Enable Virtual Displays on this instance. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- guest
Accelerators InstanceGuest Accelerator[] List of the type and count of accelerator cards attached to the instance. Structure documented below. Note: GPU accelerators can only be used with
on_host_maintenanceoption set to TERMINATE.- 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 map of key/value label pairs to assign to the instance.
- machine
Type string The machine type to create.
- metadata {[key: string]: string}
Metadata key/value pairs to make available from within the instance. Ssh keys attached in the Cloud Console will be removed. Add them to your config in order to keep them attached to your instance.
- metadata
Fingerprint string The unique fingerprint of the metadata.
- metadata
Startup stringScript An alternative to using the startup-script metadata key, except this one forces the instance to be recreated (thus re-running the script) if it is changed. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously. Users are free to use either mechanism - the only distinction is that this separate attribute willl cause a recreate on modification. On import,
metadata_startup_scriptwill be set, butmetadata.startup-scriptwill not - if you choose to use the other mechanism, you will see a diff immediately after import, which will cause a destroy/recreate operation. You may want to modify your state file manually usingpulumi stackcommands, depending on your use case.- min
Cpu stringPlatform Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as
Intel HaswellorIntel Skylake. See the complete list here. Note:allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network
Interfaces InstanceNetwork Interface[] Networks to attach to the instance. This can be specified multiple times. Structure is documented below.
- project string
The ID of the project in which the resource belongs. If it is not 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
Scheduling The scheduling strategy to use. More details about this configuration option are detailed below.
- scratch
Disks InstanceScratch Disk[] Scratch disks to attach to the instance. This can be specified multiple times for multiple scratch disks. Structure is documented below.
- self
Link string The URI of the created resource.
- service
Account InstanceService Account Service account to attach to the instance. Structure is documented below. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- shielded
Instance InstanceConfig Shielded Instance Config Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note:
shielded_instance_configcan only be used with boot images with shielded vm support. See the complete list here.- string[]
A list of network tags to attach to the instance.
- string
The unique fingerprint of the tags.
- zone string
The zone that the machine should be created in.
- allow_
stopping_ boolfor_ update If true, allows this prvider 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[InstanceAttached Disk] Additional disks to attach to the instance. Can be repeated multiple times for multiple disks. Structure is documented below.
- boot_
disk Dict[InstanceBoot Disk] The boot disk for the instance. Structure is documented below.
- can_
ip_ boolforward Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
- cpu_
platform str The CPU platform used by this instance.
- current_
status str Current status of the instance.
- deletion_
protection bool Enable deletion protection on this instance. Defaults to false. Note: you must disable deletion protection before removing the resource (e.g., via
pulumi destroy), or the instance cannot be deleted and the provider run will not complete successfully.- description str
A brief description of this resource.
- desired_
status str Desired status of the instance. Either
"RUNNING"or"TERMINATED".- enable_
display bool Enable Virtual Displays on this instance. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- guest_
accelerators List[InstanceGuest Accelerator] List of the type and count of accelerator cards attached to the instance. Structure documented below. Note: GPU accelerators can only be used with
on_host_maintenanceoption set to TERMINATE.- 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 map of key/value label pairs to assign to the instance.
- machine_
type str The machine type to create.
- metadata Dict[str, str]
Metadata key/value pairs to make available from within the instance. Ssh keys attached in the Cloud Console will be removed. Add them to your config in order to keep them attached to your instance.
- metadata_
fingerprint str The unique fingerprint of the metadata.
- metadata_
startup_ strscript An alternative to using the startup-script metadata key, except this one forces the instance to be recreated (thus re-running the script) if it is changed. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously. Users are free to use either mechanism - the only distinction is that this separate attribute willl cause a recreate on modification. On import,
metadata_startup_scriptwill be set, butmetadata.startup-scriptwill not - if you choose to use the other mechanism, you will see a diff immediately after import, which will cause a destroy/recreate operation. You may want to modify your state file manually usingpulumi stackcommands, depending on your use case.- min_
cpu_ strplatform Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as
Intel HaswellorIntel Skylake. See the complete list here. Note:allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- name str
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network_
interfaces List[InstanceNetwork Interface] Networks to attach to the instance. This can be specified multiple times. Structure is documented below.
- project str
The ID of the project in which the resource belongs. If it is not 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
Scheduling] The scheduling strategy to use. More details about this configuration option are detailed below.
- scratch_
disks List[InstanceScratch Disk] Scratch disks to attach to the instance. This can be specified multiple times for multiple scratch disks. Structure is documented below.
- self_
link str The URI of the created resource.
- service_
account Dict[InstanceService Account] Service account to attach to the instance. Structure is documented below. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- shielded_
instance_ Dict[Instanceconfig Shielded Instance Config] Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note:
shielded_instance_configcan only be used with boot images with shielded vm support. See the complete list here.- List[str]
A list of network tags to attach to the instance.
- str
The unique fingerprint of the tags.
- zone str
The zone that the machine should be created in.
Supporting Types
InstanceAttachedDisk
- Source string
The name or self_link of the disk to attach to this instance.
- Device
Name string Name with which the attached disk will be accessible under
/dev/disk/by-id/google-*- Disk
Encryption stringKey Raw A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of
kms_key_self_linkanddisk_encryption_key_rawmay be set.- Disk
Encryption stringKey Sha256 - Kms
Key stringSelf Link The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of
kms_key_self_linkanddisk_encryption_key_rawmay be set.- Mode string
Either “READ_ONLY” or “READ_WRITE”, defaults to “READ_WRITE” If you have a persistent disk with data that you want to share between multiple instances, detach it from any read-write instances and attach it to one or more instances in read-only mode.
- Source string
The name or self_link of the disk to attach to this instance.
- Device
Name string Name with which the attached disk will be accessible under
/dev/disk/by-id/google-*- Disk
Encryption stringKey Raw A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of
kms_key_self_linkanddisk_encryption_key_rawmay be set.- Disk
Encryption stringKey Sha256 - Kms
Key stringSelf Link The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of
kms_key_self_linkanddisk_encryption_key_rawmay be set.- Mode string
Either “READ_ONLY” or “READ_WRITE”, defaults to “READ_WRITE” If you have a persistent disk with data that you want to share between multiple instances, detach it from any read-write instances and attach it to one or more instances in read-only mode.
- source string
The name or self_link of the disk to attach to this instance.
- device
Name string Name with which the attached disk will be accessible under
/dev/disk/by-id/google-*- disk
Encryption stringKey Raw A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of
kms_key_self_linkanddisk_encryption_key_rawmay be set.- disk
Encryption stringKey Sha256 - kms
Key stringSelf Link The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of
kms_key_self_linkanddisk_encryption_key_rawmay be set.- mode string
Either “READ_ONLY” or “READ_WRITE”, defaults to “READ_WRITE” If you have a persistent disk with data that you want to share between multiple instances, detach it from any read-write instances and attach it to one or more instances in read-only mode.
- source str
The name or self_link of the disk to attach to this instance.
- device_
name str Name with which the attached disk will be accessible under
/dev/disk/by-id/google-*- disk
Encryption strKey Raw A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of
kms_key_self_linkanddisk_encryption_key_rawmay be set.- disk
Encryption strKey Sha256 - kms
Key strSelf Link The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of
kms_key_self_linkanddisk_encryption_key_rawmay be set.- mode str
Either “READ_ONLY” or “READ_WRITE”, defaults to “READ_WRITE” If you have a persistent disk with data that you want to share between multiple instances, detach it from any read-write instances and attach it to one or more instances in read-only mode.
InstanceBootDisk
- Auto
Delete bool Whether the disk will be auto-deleted when the instance is deleted. Defaults to true.
- Device
Name string Name with which the attached disk will be accessible under
/dev/disk/by-id/google-*- Disk
Encryption stringKey Raw A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of
kms_key_self_linkanddisk_encryption_key_rawmay be set.- Disk
Encryption stringKey Sha256 - Initialize
Params InstanceBoot Disk Initialize Params Args Parameters for a new disk that will be created alongside the new instance. Either
initialize_paramsorsourcemust be set. Structure is documented below.- Kms
Key stringSelf Link The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of
kms_key_self_linkanddisk_encryption_key_rawmay be set.- Mode string
Either “READ_ONLY” or “READ_WRITE”, defaults to “READ_WRITE” If you have a persistent disk with data that you want to share between multiple instances, detach it from any read-write instances and attach it to one or more instances in read-only mode.
- Source string
The name or self_link of the disk to attach to this instance.
- Auto
Delete bool Whether the disk will be auto-deleted when the instance is deleted. Defaults to true.
- Device
Name string Name with which the attached disk will be accessible under
/dev/disk/by-id/google-*- Disk
Encryption stringKey Raw A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of
kms_key_self_linkanddisk_encryption_key_rawmay be set.- Disk
Encryption stringKey Sha256 - Initialize
Params InstanceBoot Disk Initialize Params Parameters for a new disk that will be created alongside the new instance. Either
initialize_paramsorsourcemust be set. Structure is documented below.- Kms
Key stringSelf Link The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of
kms_key_self_linkanddisk_encryption_key_rawmay be set.- Mode string
Either “READ_ONLY” or “READ_WRITE”, defaults to “READ_WRITE” If you have a persistent disk with data that you want to share between multiple instances, detach it from any read-write instances and attach it to one or more instances in read-only mode.
- Source string
The name or self_link of the disk to attach to this instance.
- auto
Delete boolean Whether the disk will be auto-deleted when the instance is deleted. Defaults to true.
- device
Name string Name with which the attached disk will be accessible under
/dev/disk/by-id/google-*- disk
Encryption stringKey Raw A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of
kms_key_self_linkanddisk_encryption_key_rawmay be set.- disk
Encryption stringKey Sha256 - initialize
Params InstanceBoot Disk Initialize Params Parameters for a new disk that will be created alongside the new instance. Either
initialize_paramsorsourcemust be set. Structure is documented below.- kms
Key stringSelf Link The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of
kms_key_self_linkanddisk_encryption_key_rawmay be set.- mode string
Either “READ_ONLY” or “READ_WRITE”, defaults to “READ_WRITE” If you have a persistent disk with data that you want to share between multiple instances, detach it from any read-write instances and attach it to one or more instances in read-only mode.
- source string
The name or self_link of the disk to attach to this instance.
- auto
Delete bool Whether the disk will be auto-deleted when the instance is deleted. Defaults to true.
- device_
name str Name with which the attached disk will be accessible under
/dev/disk/by-id/google-*- disk
Encryption strKey Raw A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of
kms_key_self_linkanddisk_encryption_key_rawmay be set.- disk
Encryption strKey Sha256 - initialize
Params Dict[InstanceBoot Disk Initialize Params] Parameters for a new disk that will be created alongside the new instance. Either
initialize_paramsorsourcemust be set. Structure is documented below.- kms
Key strSelf Link The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of
kms_key_self_linkanddisk_encryption_key_rawmay be set.- mode str
Either “READ_ONLY” or “READ_WRITE”, defaults to “READ_WRITE” If you have a persistent disk with data that you want to share between multiple instances, detach it from any read-write instances and attach it to one or more instances in read-only mode.
- source str
The name or self_link of the disk to attach to this instance.
InstanceBootDiskInitializeParams
- Image string
The image from which to initialize this disk. This can be one of: the image’s
self_link,projects/{project}/global/images/{image},projects/{project}/global/images/family/{family},global/images/{image},global/images/family/{family},family/{family},{project}/{family},{project}/{image},{family}, or{image}. If referred by family, the images names must include the family name. If they don’t, use the gcp.compute.Image data source. For instance, the imagecentos-6-v20180104includes its family namecentos-6. These images can be referred by family name here.- Labels Dictionary<string, object>
A map of key/value label pairs to assign to the instance.
- Size int
The size of the image in gigabytes. If not specified, it will inherit the size of its base image.
- Type string
The accelerator type resource to expose to this instance. E.g.
nvidia-tesla-k80.
- Image string
The image from which to initialize this disk. This can be one of: the image’s
self_link,projects/{project}/global/images/{image},projects/{project}/global/images/family/{family},global/images/{image},global/images/family/{family},family/{family},{project}/{family},{project}/{image},{family}, or{image}. If referred by family, the images names must include the family name. If they don’t, use the gcp.compute.Image data source. For instance, the imagecentos-6-v20180104includes its family namecentos-6. These images can be referred by family name here.- Labels map[string]interface{}
A map of key/value label pairs to assign to the instance.
- Size int
The size of the image in gigabytes. If not specified, it will inherit the size of its base image.
- Type string
The accelerator type resource to expose to this instance. E.g.
nvidia-tesla-k80.
- image string
The image from which to initialize this disk. This can be one of: the image’s
self_link,projects/{project}/global/images/{image},projects/{project}/global/images/family/{family},global/images/{image},global/images/family/{family},family/{family},{project}/{family},{project}/{image},{family}, or{image}. If referred by family, the images names must include the family name. If they don’t, use the gcp.compute.Image data source. For instance, the imagecentos-6-v20180104includes its family namecentos-6. These images can be referred by family name here.- labels {[key: string]: any}
A map of key/value label pairs to assign to the instance.
- size number
The size of the image in gigabytes. If not specified, it will inherit the size of its base image.
- type string
The accelerator type resource to expose to this instance. E.g.
nvidia-tesla-k80.
- image str
The image from which to initialize this disk. This can be one of: the image’s
self_link,projects/{project}/global/images/{image},projects/{project}/global/images/family/{family},global/images/{image},global/images/family/{family},family/{family},{project}/{family},{project}/{image},{family}, or{image}. If referred by family, the images names must include the family name. If they don’t, use the gcp.compute.Image data source. For instance, the imagecentos-6-v20180104includes its family namecentos-6. These images can be referred by family name here.- labels Dict[str, Any]
A map of key/value label pairs to assign to the instance.
- size float
The size of the image in gigabytes. If not specified, it will inherit the size of its base image.
- type str
The accelerator type resource to expose to this instance. E.g.
nvidia-tesla-k80.
InstanceGuestAccelerator
InstanceNetworkInterface
- Access
Configs List<InstanceNetwork Interface Access Config Args> Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Omit to ensure that the instance is not accessible from the Internet. If omitted, ssh will not work unless this provider can send traffic to the instance’s network (e.g. via tunnel or because it is running on another cloud instance on that network). This block can be repeated multiple times. Structure documented below.
- Alias
Ip List<InstanceRanges Network Interface Alias Ip Range Args> An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.
- Name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Network string
The name or self_link of the network to attach this interface to. Either
networkorsubnetworkmust be provided.- Network
Ip string The private IP address to assign to the instance. If empty, the address will be automatically assigned.
- Subnetwork string
The name or self_link of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either
networkorsubnetworkmust be provided.- Subnetwork
Project string The project in which the subnetwork belongs. If the
subnetworkis a self_link, this field is ignored in favor of the project defined in the subnetwork self_link. If thesubnetworkis a name and this field is not provided, the provider project is used.
- Access
Configs []InstanceNetwork Interface Access Config Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Omit to ensure that the instance is not accessible from the Internet. If omitted, ssh will not work unless this provider can send traffic to the instance’s network (e.g. via tunnel or because it is running on another cloud instance on that network). This block can be repeated multiple times. Structure documented below.
- Alias
Ip []InstanceRanges Network Interface Alias Ip Range An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.
- Name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- Network string
The name or self_link of the network to attach this interface to. Either
networkorsubnetworkmust be provided.- Network
Ip string The private IP address to assign to the instance. If empty, the address will be automatically assigned.
- Subnetwork string
The name or self_link of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either
networkorsubnetworkmust be provided.- Subnetwork
Project string The project in which the subnetwork belongs. If the
subnetworkis a self_link, this field is ignored in favor of the project defined in the subnetwork self_link. If thesubnetworkis a name and this field is not provided, the provider project is used.
- access
Configs InstanceNetwork Interface Access Config[] Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Omit to ensure that the instance is not accessible from the Internet. If omitted, ssh will not work unless this provider can send traffic to the instance’s network (e.g. via tunnel or because it is running on another cloud instance on that network). This block can be repeated multiple times. Structure documented below.
- alias
Ip InstanceRanges Network Interface Alias Ip Range[] An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.
- name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network string
The name or self_link of the network to attach this interface to. Either
networkorsubnetworkmust be provided.- network
Ip string The private IP address to assign to the instance. If empty, the address will be automatically assigned.
- subnetwork string
The name or self_link of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either
networkorsubnetworkmust be provided.- subnetwork
Project string The project in which the subnetwork belongs. If the
subnetworkis a self_link, this field is ignored in favor of the project defined in the subnetwork self_link. If thesubnetworkis a name and this field is not provided, the provider project is used.
- access
Configs List[InstanceNetwork Interface Access Config] Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Omit to ensure that the instance is not accessible from the Internet. If omitted, ssh will not work unless this provider can send traffic to the instance’s network (e.g. via tunnel or because it is running on another cloud instance on that network). This block can be repeated multiple times. Structure documented below.
- alias
Ip List[InstanceRanges Network Interface Alias Ip Range] An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.
- name str
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
- network str
The name or self_link of the network to attach this interface to. Either
networkorsubnetworkmust be provided.- network
Ip str The private IP address to assign to the instance. If empty, the address will be automatically assigned.
- subnetwork str
The name or self_link of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either
networkorsubnetworkmust be provided.- subnetwork
Project str The project in which the subnetwork belongs. If the
subnetworkis a self_link, this field is ignored in favor of the project defined in the subnetwork self_link. If thesubnetworkis a name and this field is not provided, the provider project is used.
InstanceNetworkInterfaceAccessConfig
- Nat
Ip string The IP address that will be 1:1 mapped to the instance’s network ip. If not given, one will be generated.
- Network
Tier string The [networking tier][network-tier] used for configuring this instance. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
- Public
Ptr stringDomain Name The DNS domain name for the public PTR record. To set this field on an instance, you must be verified as the owner of the domain. See the docs for how to become verified as a domain owner.
- Nat
Ip string The IP address that will be 1:1 mapped to the instance’s network ip. If not given, one will be generated.
- Network
Tier string The [networking tier][network-tier] used for configuring this instance. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
- Public
Ptr stringDomain Name The DNS domain name for the public PTR record. To set this field on an instance, you must be verified as the owner of the domain. See the docs for how to become verified as a domain owner.
- nat
Ip string The IP address that will be 1:1 mapped to the instance’s network ip. If not given, one will be generated.
- network
Tier string The [networking tier][network-tier] used for configuring this instance. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
- public
Ptr stringDomain Name The DNS domain name for the public PTR record. To set this field on an instance, you must be verified as the owner of the domain. See the docs for how to become verified as a domain owner.
- nat
Ip str The IP address that will be 1:1 mapped to the instance’s network ip. If not given, one will be generated.
- network_
tier str The [networking tier][network-tier] used for configuring this instance. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM.
- public
Ptr strDomain Name The DNS domain name for the public PTR record. To set this field on an instance, you must be verified as the owner of the domain. See the docs for how to become verified as a domain owner.
InstanceNetworkInterfaceAliasIpRange
- Ip
Cidr stringRange The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format string (e.g. 10.1.2.0/24).
- Subnetwork
Range stringName The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.
- Ip
Cidr stringRange The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format string (e.g. 10.1.2.0/24).
- Subnetwork
Range stringName The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.
- ip
Cidr stringRange The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format string (e.g. 10.1.2.0/24).
- subnetwork
Range stringName The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.
- ip_
cidr_ strrange The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format string (e.g. 10.1.2.0/24).
- subnetwork
Range strName The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.
InstanceScheduling
- Automatic
Restart bool Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user). Defaults to true.
- Min
Node intCpus - Node
Affinities List<InstanceScheduling Node Affinity Args> Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
- On
Host stringMaintenance Describes maintenance behavior for the instance. Can be MIGRATE or TERMINATE, for more info, read here.
- Preemptible bool
Specifies if the instance is preemptible. If this field is set to true, then
automatic_restartmust be set to false. Defaults to false.
- Automatic
Restart bool Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user). Defaults to true.
- Min
Node intCpus - Node
Affinities []InstanceScheduling Node Affinity Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
- On
Host stringMaintenance Describes maintenance behavior for the instance. Can be MIGRATE or TERMINATE, for more info, read here.
- Preemptible bool
Specifies if the instance is preemptible. If this field is set to true, then
automatic_restartmust be set to false. Defaults to false.
- automatic
Restart boolean Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user). Defaults to true.
- min
Node numberCpus - node
Affinities InstanceScheduling Node Affinity[] Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
- on
Host stringMaintenance Describes maintenance behavior for the instance. Can be MIGRATE or TERMINATE, for more info, read here.
- preemptible boolean
Specifies if the instance is preemptible. If this field is set to true, then
automatic_restartmust be set to false. Defaults to false.
- automatic
Restart bool Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user). Defaults to true.
- min
Node floatCpus - node
Affinities List[InstanceScheduling Node Affinity] Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
- on
Host strMaintenance Describes maintenance behavior for the instance. Can be MIGRATE or TERMINATE, for more info, read here.
- preemptible bool
Specifies if the instance is preemptible. If this field is set to true, then
automatic_restartmust be set to false. Defaults to false.
InstanceSchedulingNodeAffinity
InstanceScratchDisk
InstanceServiceAccount
- Scopes List<string>
A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the
cloud-platformscope. See a complete list of scopes here. Note:allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- Email string
The service account e-mail address. If not given, the default Google Compute Engine service account is used. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.
- Scopes []string
A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the
cloud-platformscope. See a complete list of scopes here. Note:allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- Email string
The service account e-mail address. If not given, the default Google Compute Engine service account is used. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.
- scopes string[]
A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the
cloud-platformscope. See a complete list of scopes here. Note:allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- email string
The service account e-mail address. If not given, the default Google Compute Engine service account is used. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.
- scopes List[str]
A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the
cloud-platformscope. See a complete list of scopes here. Note:allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.- email str
The service account e-mail address. If not given, the default Google Compute Engine service account is used. Note:
allow_stopping_for_updatemust be set to true or your instance must have adesired_statusofTERMINATEDin order to update this field.
InstanceShieldedInstanceConfig
- Enable
Integrity boolMonitoring – Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
- Enable
Secure boolBoot – Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
- Enable
Vtpm bool – Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
- Enable
Integrity boolMonitoring – Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
- Enable
Secure boolBoot – Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
- Enable
Vtpm bool – Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
- enable
Integrity booleanMonitoring – Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
- enable
Secure booleanBoot – Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
- enable
Vtpm boolean – Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
- enable
Integrity boolMonitoring – Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
- enable
Secure boolBoot – Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
- enable
Vtpm bool – Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.