InstanceInstance is the Schema for the Instances API. Manages the yandex_compute_instance resource.
TypeMR
Providercrossplane-provider-yc
Groupcompute.yandex-cloud.m.jet.crossplane.io
Scopenamespaced
Versionv1alpha1

1apiVersion: compute.yandex-cloud.m.jet.crossplane.io/v1alpha1

2kind: Instance

kind
string
metadata
object
spec
object

InstanceSpec defines the desired state of Instance

forProvider
required
object

(No description available)

array

[Block]. The boot disk for the instance. Either initialize_params or disk_id must be specified. The boot disk for the instance. Either initialize_params or disk_id must be specified.

autoDelete
boolean
diskId
string
diskIdRef
object

Reference to a Disk in compute to populate diskId.

name
required
string
namespace
string
policy
object

Policies for referencing.

resolve
string
object

Selector for a Disk in compute to populate diskId.

namespace
string
policy
object

Policies for selection.

resolve
string
array

[Block]. Parameters for a new disk that will be created alongside the new instance. Either initialize_params or disk_id must be set. Either image_id or snapshot_id must be specified. Parameters for a new disk that will be created alongside the new instance. Either initialize_params or disk_id must be set. Either image_id or snapshot_id must be specified.

blockSize
number
imageId
string
kmsKeyId
string
name
string
size
number
type
string
mode
string
array

[Block]. List of filesystems that are attached to the instance. List of filesystems that are attached to the instance.

object

Reference to a Filesystem in compute to populate filesystemId.

name
required
string
namespace
string
policy
object

Policies for referencing.

resolve
string
object

Selector for a Filesystem in compute to populate filesystemId.

namespace
string
policy
object

Policies for selection.

resolve
string
mode
string
folderId
string
object

Reference to a Folder in resourcemanager to populate folderId.

name
required
string
namespace
string
policy
object

Policies for referencing.

resolve
string
object

Selector for a Folder in resourcemanager to populate folderId.

namespace
string
policy
object

Policies for selection.

resolve
string
hostname
string
labels
object
array

[Block]. List of local disks that are attached to the instance. List of local disks that are attached to the instance.

~> Local disks are not available for all users by default.

kmsKeyId
string
sizeBytes
number
metadata
object
array

[Block]. Options allow user to configure access to instance's metadata. Options allow user to configure access to instance's metadata.

name
string
array

[Block]. Networks to attach to the instance. This can be specified multiple times. Networks to attach to the instance. This can be specified multiple times.

array

[Block]. List of configurations for creating ipv4 DNS records. List of configurations for creating ipv4 DNS records.

dnsZoneId
string
fqdn
string
ptr
boolean
ttl
number
index
number
ipAddress
string
ipv4
boolean
ipv6
boolean
array

[Block]. List of configurations for creating ipv6 DNS records. List of configurations for creating ipv6 DNS records.

dnsZoneId
string
fqdn
string
ptr
boolean
ttl
number
nat
boolean
array

[Block]. List of configurations for creating ipv4 NAT DNS records. List of configurations for creating ipv4 NAT DNS records.

dnsZoneId
string
fqdn
string
ptr
boolean
ttl
number
array

(Set Of String). Security Group (SG) IDs for network interface. Security Group (SG) IDs for network interface.

array

References to SecurityGroup in vpc to populate securityGroupIds.

name
required
string
namespace
string
policy
object

Policies for referencing.

resolve
string
object

Selector for a list of SecurityGroup in vpc to populate securityGroupIds.

namespace
string
policy
object

Policies for selection.

resolve
string
subnetId
string
object

Reference to a Subnet in vpc to populate subnetId.

name
required
string
namespace
string
policy
object

Policies for referencing.

resolve
string
object

Selector for a Subnet in vpc to populate subnetId.

namespace
string
policy
object

Policies for selection.

resolve
string
array

[Block]. The placement policy configuration. The placement policy configuration.

array

(List Of Object). List of host affinity rules. List of host affinity rules. To reset the values of these fields, you need to set them empty:

placement_policy { placement_group_id = "" host_affinity_rules = [] }

key
string
op
string
values
array

(No description available)

object

Reference to a PlacementGroup in compute to populate placementGroupId.

name
required
string
namespace
string
policy
object

Policies for referencing.

resolve
string
object

Selector for a PlacementGroup in compute to populate placementGroupId.

namespace
string
policy
object

Policies for selection.

resolve
string
array

[Block]. Compute resources that are allocated for the instance. Compute resources that are allocated for the instance.

cores
number
gpus
number
memory
number
array

[Block]. Scheduling policy configuration. Scheduling policy configuration.

array

[Block]. A set of disks to attach to the instance. The structure is documented below. A set of disks to attach to the instance. The structure is documented below.

~> The allow_stopping_for_update property must be set to true in order to update this structure.

autoDelete
boolean
diskId
string
diskIdRef
object

Reference to a Disk in compute to populate diskId.

name
required
string
namespace
string
policy
object

Policies for referencing.

resolve
string
object

Selector for a Disk in compute to populate diskId.

namespace
string
policy
object

Policies for selection.

resolve
string
mode
string
object

Reference to a ServiceAccount in iam to populate serviceAccountId.

name
required
string
namespace
string
policy
object

Policies for referencing.

resolve
string
object

Selector for a ServiceAccount in iam to populate serviceAccountId.

namespace
string
policy
object

Policies for selection.

resolve
string
zone
string
object

THIS IS A BETA FIELD. It will be honored unless the Management Policies feature flag is disabled. InitProvider holds the same fields as ForProvider, with the exception of Identifier and other resource reference fields. The fields that are in InitProvider are merged into ForProvider when the resource is created. The same fields are also added to the terraform ignore_changes hook, to avoid updating them after creation. This is useful for fields that are required on creation, but we do not desire to update them after creation, for example because of an external controller is managing them, like an autoscaler.

array

[Block]. The boot disk for the instance. Either initialize_params or disk_id must be specified. The boot disk for the instance. Either initialize_params or disk_id must be specified.

autoDelete
boolean
diskId
string
diskIdRef
object

Reference to a Disk in compute to populate diskId.

name
required
string
namespace
string
policy
object

Policies for referencing.

resolve
string
object

Selector for a Disk in compute to populate diskId.

namespace
string
policy
object

Policies for selection.

resolve
string
array

[Block]. Parameters for a new disk that will be created alongside the new instance. Either initialize_params or disk_id must be set. Either image_id or snapshot_id must be specified. Parameters for a new disk that will be created alongside the new instance. Either initialize_params or disk_id must be set. Either image_id or snapshot_id must be specified.

blockSize
number
imageId
string
kmsKeyId
string
name
string
size
number
type
string
mode
string
array

[Block]. List of filesystems that are attached to the instance. List of filesystems that are attached to the instance.

object

Reference to a Filesystem in compute to populate filesystemId.

name
required
string
namespace
string
policy
object

Policies for referencing.

resolve
string
object

Selector for a Filesystem in compute to populate filesystemId.

namespace
string
policy
object

Policies for selection.

resolve
string
mode
string
folderId
string
object

Reference to a Folder in resourcemanager to populate folderId.

name
required
string
namespace
string
policy
object

Policies for referencing.

resolve
string
object

Selector for a Folder in resourcemanager to populate folderId.

namespace
string
policy
object

Policies for selection.

resolve
string
hostname
string
labels
object
array

[Block]. List of local disks that are attached to the instance. List of local disks that are attached to the instance.

~> Local disks are not available for all users by default.

kmsKeyId
string
sizeBytes
number
metadata
object
array

[Block]. Options allow user to configure access to instance's metadata. Options allow user to configure access to instance's metadata.

name
string
array

[Block]. Networks to attach to the instance. This can be specified multiple times. Networks to attach to the instance. This can be specified multiple times.

array

[Block]. List of configurations for creating ipv4 DNS records. List of configurations for creating ipv4 DNS records.

dnsZoneId
string
fqdn
string
ptr
boolean
ttl
number
index
number
ipAddress
string
ipv4
boolean
ipv6
boolean
array

[Block]. List of configurations for creating ipv6 DNS records. List of configurations for creating ipv6 DNS records.

dnsZoneId
string
fqdn
string
ptr
boolean
ttl
number
nat
boolean
array

[Block]. List of configurations for creating ipv4 NAT DNS records. List of configurations for creating ipv4 NAT DNS records.

dnsZoneId
string
fqdn
string
ptr
boolean
ttl
number
array

(Set Of String). Security Group (SG) IDs for network interface. Security Group (SG) IDs for network interface.

array

References to SecurityGroup in vpc to populate securityGroupIds.

name
required
string
namespace
string
policy
object

Policies for referencing.

resolve
string
object

Selector for a list of SecurityGroup in vpc to populate securityGroupIds.

namespace
string
policy
object

Policies for selection.

resolve
string
subnetId
string
object

Reference to a Subnet in vpc to populate subnetId.

name
required
string
namespace
string
policy
object

Policies for referencing.

resolve
string
object

Selector for a Subnet in vpc to populate subnetId.

namespace
string
policy
object

Policies for selection.

resolve
string
array

[Block]. The placement policy configuration. The placement policy configuration.

array

(List Of Object). List of host affinity rules. List of host affinity rules. To reset the values of these fields, you need to set them empty:

placement_policy { placement_group_id = "" host_affinity_rules = [] }

key
string
op
string
values
array

(No description available)

object

Reference to a PlacementGroup in compute to populate placementGroupId.

name
required
string
namespace
string
policy
object

Policies for referencing.

resolve
string
object

Selector for a PlacementGroup in compute to populate placementGroupId.

namespace
string
policy
object

Policies for selection.

resolve
string
array

[Block]. Compute resources that are allocated for the instance. Compute resources that are allocated for the instance.

cores
number
gpus
number
memory
number
array

[Block]. Scheduling policy configuration. Scheduling policy configuration.

array

[Block]. A set of disks to attach to the instance. The structure is documented below. A set of disks to attach to the instance. The structure is documented below.

~> The allow_stopping_for_update property must be set to true in order to update this structure.

autoDelete
boolean
diskId
string
diskIdRef
object

Reference to a Disk in compute to populate diskId.

name
required
string
namespace
string
policy
object

Policies for referencing.

resolve
string
object

Selector for a Disk in compute to populate diskId.

namespace
string
policy
object

Policies for selection.

resolve
string
mode
string
object

Reference to a ServiceAccount in iam to populate serviceAccountId.

name
required
string
namespace
string
policy
object

Policies for referencing.

resolve
string
object

Selector for a ServiceAccount in iam to populate serviceAccountId.

namespace
string
policy
object

Policies for selection.

resolve
string
zone
string
array

THIS IS A BETA FIELD. It is on by default but can be opted out through a Crossplane feature flag. ManagementPolicies specify the array of actions Crossplane is allowed to take on the managed and external resources. See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md

object

ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.

kind
required
string
name
required
string
object

WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.

name
required
string
status
object

InstanceStatus defines the observed state of Instance.

object

(No description available)

array

[Block]. The boot disk for the instance. Either initialize_params or disk_id must be specified. The boot disk for the instance. Either initialize_params or disk_id must be specified.

autoDelete
boolean
diskId
string
array

[Block]. Parameters for a new disk that will be created alongside the new instance. Either initialize_params or disk_id must be set. Either image_id or snapshot_id must be specified. Parameters for a new disk that will be created alongside the new instance. Either initialize_params or disk_id must be set. Either image_id or snapshot_id must be specified.

blockSize
number
imageId
string
kmsKeyId
string
name
string
size
number
type
string
mode
string
createdAt
string
array

[Block]. List of filesystems that are attached to the instance. List of filesystems that are attached to the instance.

mode
string
folderId
string
fqdn
string
array

Only) (List Of Object).

hostname
string
id
string
labels
object
array

[Block]. List of local disks that are attached to the instance. List of local disks that are attached to the instance.

~> Local disks are not available for all users by default.

kmsKeyId
string
sizeBytes
number
metadata
object
array

[Block]. Options allow user to configure access to instance's metadata. Options allow user to configure access to instance's metadata.

name
string
array

[Block]. Networks to attach to the instance. This can be specified multiple times. Networks to attach to the instance. This can be specified multiple times.

array

[Block]. List of configurations for creating ipv4 DNS records. List of configurations for creating ipv4 DNS records.

dnsZoneId
string
fqdn
string
ptr
boolean
ttl
number
index
number
ipAddress
string
ipv4
boolean
ipv6
boolean
array

[Block]. List of configurations for creating ipv6 DNS records. List of configurations for creating ipv6 DNS records.

dnsZoneId
string
fqdn
string
ptr
boolean
ttl
number
nat
boolean
array

[Block]. List of configurations for creating ipv4 NAT DNS records. List of configurations for creating ipv4 NAT DNS records.

dnsZoneId
string
fqdn
string
ptr
boolean
ttl
number
array

(Set Of String). Security Group (SG) IDs for network interface. Security Group (SG) IDs for network interface.

subnetId
string
array

[Block]. The placement policy configuration. The placement policy configuration.

array

(List Of Object). List of host affinity rules. List of host affinity rules. To reset the values of these fields, you need to set them empty:

placement_policy { placement_group_id = "" host_affinity_rules = [] }

key
string
op
string
values
array

(No description available)

array

[Block]. Compute resources that are allocated for the instance. Compute resources that are allocated for the instance.

cores
number
gpus
number
memory
number
array

[Block]. Scheduling policy configuration. Scheduling policy configuration.

array

[Block]. A set of disks to attach to the instance. The structure is documented below. A set of disks to attach to the instance. The structure is documented below.

~> The allow_stopping_for_update property must be set to true in order to update this structure.

autoDelete
boolean
diskId
string
mode
string
status
string
zone
string
array

Conditions of the resource.

lastTransitionTime
required
string
message
string
reason
required
string
status
required
string
type
required
string