exoscale.ComputeInstance
Explore with Pulumi AI
Import
An existing compute instance may be imported by <ID>@<zone>
$ pulumi import exoscale:index/computeInstance:ComputeInstance \
exoscale_compute_instance.my_instance \
f81d4fae-7dec-11d0-a765-00a0c91e6bf6@ch-gva-2
Create ComputeInstance Resource
new ComputeInstance(name: string, args: ComputeInstanceArgs, opts?: CustomResourceOptions);
@overload
def ComputeInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
anti_affinity_group_ids: Optional[Sequence[str]] = None,
deploy_target_id: Optional[str] = None,
disk_size: Optional[int] = None,
elastic_ip_ids: Optional[Sequence[str]] = None,
ipv6: Optional[bool] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
network_interfaces: Optional[Sequence[ComputeInstanceNetworkInterfaceArgs]] = None,
private: Optional[bool] = None,
reverse_dns: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
ssh_key: Optional[str] = None,
state: Optional[str] = None,
template_id: Optional[str] = None,
type: Optional[str] = None,
user_data: Optional[str] = None,
zone: Optional[str] = None)
@overload
def ComputeInstance(resource_name: str,
args: ComputeInstanceArgs,
opts: Optional[ResourceOptions] = None)
func NewComputeInstance(ctx *Context, name string, args ComputeInstanceArgs, opts ...ResourceOption) (*ComputeInstance, error)
public ComputeInstance(string name, ComputeInstanceArgs args, CustomResourceOptions? opts = null)
public ComputeInstance(String name, ComputeInstanceArgs args)
public ComputeInstance(String name, ComputeInstanceArgs args, CustomResourceOptions options)
type: exoscale:ComputeInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComputeInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ComputeInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ComputeInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComputeInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ComputeInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ComputeInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ComputeInstance resource accepts the following input properties:
- Template
Id string ❗ The exoscalecomputetemplate (ID) to use when creating the instance.
- Type string
The instance type (
<family>.<size>
, e.g.standard.medium
; use the Exoscale CLI -exo compute instance-type list
- for the list of available types). WARNING: updating this attribute stops/restarts the instance.- Zone string
❗ The Exoscale Zone name.
- Anti
Affinity List<string>Group Ids ❗ A list of exoscaleantiaffinity_group (IDs) to attach to the instance (may only be set at creation time).
- Deploy
Target stringId ❗ A deploy target ID.
- Disk
Size int The instance disk size (GiB; at least
10
). WARNING: updating this attribute stops/restarts the instance.- Elastic
Ip List<string>Ids A list of exoscaleelasticip (IDs) to attach to the instance.
- Ipv6 bool
Enable IPv6 on the instance (boolean; default:
false
).- Labels Dictionary<string, string>
A map of key/value labels.
- Name string
The compute instance name.
- Network
Interfaces List<Pulumiverse.Exoscale. Inputs. Compute Instance Network Interface> Private network interfaces (may be specified multiple times). Structure is documented below.
- Private bool
Whether the instance is private (no public IP addresses; default: false)
- Reverse
Dns string Domain name for reverse DNS record.
- Security
Group List<string>Ids A list of exoscalesecuritygroup (IDs) to attach to the instance.
- Ssh
Key string The exoscalesshkey (name) to authorize in the instance (may only be set at creation time).
- State string
The instance state (
running
orstopped
; default:running
).- User
Data string cloud-init configuration.
- Template
Id string ❗ The exoscalecomputetemplate (ID) to use when creating the instance.
- Type string
The instance type (
<family>.<size>
, e.g.standard.medium
; use the Exoscale CLI -exo compute instance-type list
- for the list of available types). WARNING: updating this attribute stops/restarts the instance.- Zone string
❗ The Exoscale Zone name.
- Anti
Affinity []stringGroup Ids ❗ A list of exoscaleantiaffinity_group (IDs) to attach to the instance (may only be set at creation time).
- Deploy
Target stringId ❗ A deploy target ID.
- Disk
Size int The instance disk size (GiB; at least
10
). WARNING: updating this attribute stops/restarts the instance.- Elastic
Ip []stringIds A list of exoscaleelasticip (IDs) to attach to the instance.
- Ipv6 bool
Enable IPv6 on the instance (boolean; default:
false
).- Labels map[string]string
A map of key/value labels.
- Name string
The compute instance name.
- Network
Interfaces []ComputeInstance Network Interface Args Private network interfaces (may be specified multiple times). Structure is documented below.
- Private bool
Whether the instance is private (no public IP addresses; default: false)
- Reverse
Dns string Domain name for reverse DNS record.
- Security
Group []stringIds A list of exoscalesecuritygroup (IDs) to attach to the instance.
- Ssh
Key string The exoscalesshkey (name) to authorize in the instance (may only be set at creation time).
- State string
The instance state (
running
orstopped
; default:running
).- User
Data string cloud-init configuration.
- template
Id String ❗ The exoscalecomputetemplate (ID) to use when creating the instance.
- type String
The instance type (
<family>.<size>
, e.g.standard.medium
; use the Exoscale CLI -exo compute instance-type list
- for the list of available types). WARNING: updating this attribute stops/restarts the instance.- zone String
❗ The Exoscale Zone name.
- anti
Affinity List<String>Group Ids ❗ A list of exoscaleantiaffinity_group (IDs) to attach to the instance (may only be set at creation time).
- deploy
Target StringId ❗ A deploy target ID.
- disk
Size Integer The instance disk size (GiB; at least
10
). WARNING: updating this attribute stops/restarts the instance.- elastic
Ip List<String>Ids A list of exoscaleelasticip (IDs) to attach to the instance.
- ipv6 Boolean
Enable IPv6 on the instance (boolean; default:
false
).- labels Map<String,String>
A map of key/value labels.
- name String
The compute instance name.
- network
Interfaces List<ComputeInstance Network Interface> Private network interfaces (may be specified multiple times). Structure is documented below.
- private_ Boolean
Whether the instance is private (no public IP addresses; default: false)
- reverse
Dns String Domain name for reverse DNS record.
- security
Group List<String>Ids A list of exoscalesecuritygroup (IDs) to attach to the instance.
- ssh
Key String The exoscalesshkey (name) to authorize in the instance (may only be set at creation time).
- state String
The instance state (
running
orstopped
; default:running
).- user
Data String cloud-init configuration.
- template
Id string ❗ The exoscalecomputetemplate (ID) to use when creating the instance.
- type string
The instance type (
<family>.<size>
, e.g.standard.medium
; use the Exoscale CLI -exo compute instance-type list
- for the list of available types). WARNING: updating this attribute stops/restarts the instance.- zone string
❗ The Exoscale Zone name.
- anti
Affinity string[]Group Ids ❗ A list of exoscaleantiaffinity_group (IDs) to attach to the instance (may only be set at creation time).
- deploy
Target stringId ❗ A deploy target ID.
- disk
Size number The instance disk size (GiB; at least
10
). WARNING: updating this attribute stops/restarts the instance.- elastic
Ip string[]Ids A list of exoscaleelasticip (IDs) to attach to the instance.
- ipv6 boolean
Enable IPv6 on the instance (boolean; default:
false
).- labels {[key: string]: string}
A map of key/value labels.
- name string
The compute instance name.
- network
Interfaces ComputeInstance Network Interface[] Private network interfaces (may be specified multiple times). Structure is documented below.
- private boolean
Whether the instance is private (no public IP addresses; default: false)
- reverse
Dns string Domain name for reverse DNS record.
- security
Group string[]Ids A list of exoscalesecuritygroup (IDs) to attach to the instance.
- ssh
Key string The exoscalesshkey (name) to authorize in the instance (may only be set at creation time).
- state string
The instance state (
running
orstopped
; default:running
).- user
Data string cloud-init configuration.
- template_
id str ❗ The exoscalecomputetemplate (ID) to use when creating the instance.
- type str
The instance type (
<family>.<size>
, e.g.standard.medium
; use the Exoscale CLI -exo compute instance-type list
- for the list of available types). WARNING: updating this attribute stops/restarts the instance.- zone str
❗ The Exoscale Zone name.
- anti_
affinity_ Sequence[str]group_ ids ❗ A list of exoscaleantiaffinity_group (IDs) to attach to the instance (may only be set at creation time).
- deploy_
target_ strid ❗ A deploy target ID.
- disk_
size int The instance disk size (GiB; at least
10
). WARNING: updating this attribute stops/restarts the instance.- elastic_
ip_ Sequence[str]ids A list of exoscaleelasticip (IDs) to attach to the instance.
- ipv6 bool
Enable IPv6 on the instance (boolean; default:
false
).- labels Mapping[str, str]
A map of key/value labels.
- name str
The compute instance name.
- network_
interfaces Sequence[ComputeInstance Network Interface Args] Private network interfaces (may be specified multiple times). Structure is documented below.
- private bool
Whether the instance is private (no public IP addresses; default: false)
- reverse_
dns str Domain name for reverse DNS record.
- security_
group_ Sequence[str]ids A list of exoscalesecuritygroup (IDs) to attach to the instance.
- ssh_
key str The exoscalesshkey (name) to authorize in the instance (may only be set at creation time).
- state str
The instance state (
running
orstopped
; default:running
).- user_
data str cloud-init configuration.
- template
Id String ❗ The exoscalecomputetemplate (ID) to use when creating the instance.
- type String
The instance type (
<family>.<size>
, e.g.standard.medium
; use the Exoscale CLI -exo compute instance-type list
- for the list of available types). WARNING: updating this attribute stops/restarts the instance.- zone String
❗ The Exoscale Zone name.
- anti
Affinity List<String>Group Ids ❗ A list of exoscaleantiaffinity_group (IDs) to attach to the instance (may only be set at creation time).
- deploy
Target StringId ❗ A deploy target ID.
- disk
Size Number The instance disk size (GiB; at least
10
). WARNING: updating this attribute stops/restarts the instance.- elastic
Ip List<String>Ids A list of exoscaleelasticip (IDs) to attach to the instance.
- ipv6 Boolean
Enable IPv6 on the instance (boolean; default:
false
).- labels Map<String>
A map of key/value labels.
- name String
The compute instance name.
- network
Interfaces List<Property Map> Private network interfaces (may be specified multiple times). Structure is documented below.
- private Boolean
Whether the instance is private (no public IP addresses; default: false)
- reverse
Dns String Domain name for reverse DNS record.
- security
Group List<String>Ids A list of exoscalesecuritygroup (IDs) to attach to the instance.
- ssh
Key String The exoscalesshkey (name) to authorize in the instance (may only be set at creation time).
- state String
The instance state (
running
orstopped
; default:running
).- user
Data String cloud-init configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the ComputeInstance resource produces the following output properties:
- Created
At string The instance creation date.
- Id string
The provider-assigned unique ID for this managed resource.
- Ipv6Address string
The instance (main network interface) IPv6 address (if enabled).
- Private
Network List<string>Ids A list of private networks (IDs) attached to the instance. Please use the
network_interface.*.network_id
argument instead.Use the network_interface block instead.
- Public
Ip stringAddress The instance (main network interface) IPv4 address.
- Created
At string The instance creation date.
- Id string
The provider-assigned unique ID for this managed resource.
- Ipv6Address string
The instance (main network interface) IPv6 address (if enabled).
- Private
Network []stringIds A list of private networks (IDs) attached to the instance. Please use the
network_interface.*.network_id
argument instead.Use the network_interface block instead.
- Public
Ip stringAddress The instance (main network interface) IPv4 address.
- created
At String The instance creation date.
- id String
The provider-assigned unique ID for this managed resource.
- ipv6Address String
The instance (main network interface) IPv6 address (if enabled).
- private
Network List<String>Ids A list of private networks (IDs) attached to the instance. Please use the
network_interface.*.network_id
argument instead.Use the network_interface block instead.
- public
Ip StringAddress The instance (main network interface) IPv4 address.
- created
At string The instance creation date.
- id string
The provider-assigned unique ID for this managed resource.
- ipv6Address string
The instance (main network interface) IPv6 address (if enabled).
- private
Network string[]Ids A list of private networks (IDs) attached to the instance. Please use the
network_interface.*.network_id
argument instead.Use the network_interface block instead.
- public
Ip stringAddress The instance (main network interface) IPv4 address.
- created_
at str The instance creation date.
- id str
The provider-assigned unique ID for this managed resource.
- ipv6_
address str The instance (main network interface) IPv6 address (if enabled).
- private_
network_ Sequence[str]ids A list of private networks (IDs) attached to the instance. Please use the
network_interface.*.network_id
argument instead.Use the network_interface block instead.
- public_
ip_ straddress The instance (main network interface) IPv4 address.
- created
At String The instance creation date.
- id String
The provider-assigned unique ID for this managed resource.
- ipv6Address String
The instance (main network interface) IPv6 address (if enabled).
- private
Network List<String>Ids A list of private networks (IDs) attached to the instance. Please use the
network_interface.*.network_id
argument instead.Use the network_interface block instead.
- public
Ip StringAddress The instance (main network interface) IPv4 address.
Look up Existing ComputeInstance Resource
Get an existing ComputeInstance 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?: ComputeInstanceState, opts?: CustomResourceOptions): ComputeInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
anti_affinity_group_ids: Optional[Sequence[str]] = None,
created_at: Optional[str] = None,
deploy_target_id: Optional[str] = None,
disk_size: Optional[int] = None,
elastic_ip_ids: Optional[Sequence[str]] = None,
ipv6: Optional[bool] = None,
ipv6_address: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
network_interfaces: Optional[Sequence[ComputeInstanceNetworkInterfaceArgs]] = None,
private: Optional[bool] = None,
private_network_ids: Optional[Sequence[str]] = None,
public_ip_address: Optional[str] = None,
reverse_dns: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
ssh_key: Optional[str] = None,
state: Optional[str] = None,
template_id: Optional[str] = None,
type: Optional[str] = None,
user_data: Optional[str] = None,
zone: Optional[str] = None) -> ComputeInstance
func GetComputeInstance(ctx *Context, name string, id IDInput, state *ComputeInstanceState, opts ...ResourceOption) (*ComputeInstance, error)
public static ComputeInstance Get(string name, Input<string> id, ComputeInstanceState? state, CustomResourceOptions? opts = null)
public static ComputeInstance get(String name, Output<String> id, ComputeInstanceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Anti
Affinity List<string>Group Ids ❗ A list of exoscaleantiaffinity_group (IDs) to attach to the instance (may only be set at creation time).
- Created
At string The instance creation date.
- Deploy
Target stringId ❗ A deploy target ID.
- Disk
Size int The instance disk size (GiB; at least
10
). WARNING: updating this attribute stops/restarts the instance.- Elastic
Ip List<string>Ids A list of exoscaleelasticip (IDs) to attach to the instance.
- Ipv6 bool
Enable IPv6 on the instance (boolean; default:
false
).- Ipv6Address string
The instance (main network interface) IPv6 address (if enabled).
- Labels Dictionary<string, string>
A map of key/value labels.
- Name string
The compute instance name.
- Network
Interfaces List<Pulumiverse.Exoscale. Inputs. Compute Instance Network Interface> Private network interfaces (may be specified multiple times). Structure is documented below.
- Private bool
Whether the instance is private (no public IP addresses; default: false)
- Private
Network List<string>Ids A list of private networks (IDs) attached to the instance. Please use the
network_interface.*.network_id
argument instead.Use the network_interface block instead.
- Public
Ip stringAddress The instance (main network interface) IPv4 address.
- Reverse
Dns string Domain name for reverse DNS record.
- Security
Group List<string>Ids A list of exoscalesecuritygroup (IDs) to attach to the instance.
- Ssh
Key string The exoscalesshkey (name) to authorize in the instance (may only be set at creation time).
- State string
The instance state (
running
orstopped
; default:running
).- Template
Id string ❗ The exoscalecomputetemplate (ID) to use when creating the instance.
- Type string
The instance type (
<family>.<size>
, e.g.standard.medium
; use the Exoscale CLI -exo compute instance-type list
- for the list of available types). WARNING: updating this attribute stops/restarts the instance.- User
Data string cloud-init configuration.
- Zone string
❗ The Exoscale Zone name.
- Anti
Affinity []stringGroup Ids ❗ A list of exoscaleantiaffinity_group (IDs) to attach to the instance (may only be set at creation time).
- Created
At string The instance creation date.
- Deploy
Target stringId ❗ A deploy target ID.
- Disk
Size int The instance disk size (GiB; at least
10
). WARNING: updating this attribute stops/restarts the instance.- Elastic
Ip []stringIds A list of exoscaleelasticip (IDs) to attach to the instance.
- Ipv6 bool
Enable IPv6 on the instance (boolean; default:
false
).- Ipv6Address string
The instance (main network interface) IPv6 address (if enabled).
- Labels map[string]string
A map of key/value labels.
- Name string
The compute instance name.
- Network
Interfaces []ComputeInstance Network Interface Args Private network interfaces (may be specified multiple times). Structure is documented below.
- Private bool
Whether the instance is private (no public IP addresses; default: false)
- Private
Network []stringIds A list of private networks (IDs) attached to the instance. Please use the
network_interface.*.network_id
argument instead.Use the network_interface block instead.
- Public
Ip stringAddress The instance (main network interface) IPv4 address.
- Reverse
Dns string Domain name for reverse DNS record.
- Security
Group []stringIds A list of exoscalesecuritygroup (IDs) to attach to the instance.
- Ssh
Key string The exoscalesshkey (name) to authorize in the instance (may only be set at creation time).
- State string
The instance state (
running
orstopped
; default:running
).- Template
Id string ❗ The exoscalecomputetemplate (ID) to use when creating the instance.
- Type string
The instance type (
<family>.<size>
, e.g.standard.medium
; use the Exoscale CLI -exo compute instance-type list
- for the list of available types). WARNING: updating this attribute stops/restarts the instance.- User
Data string cloud-init configuration.
- Zone string
❗ The Exoscale Zone name.
- anti
Affinity List<String>Group Ids ❗ A list of exoscaleantiaffinity_group (IDs) to attach to the instance (may only be set at creation time).
- created
At String The instance creation date.
- deploy
Target StringId ❗ A deploy target ID.
- disk
Size Integer The instance disk size (GiB; at least
10
). WARNING: updating this attribute stops/restarts the instance.- elastic
Ip List<String>Ids A list of exoscaleelasticip (IDs) to attach to the instance.
- ipv6 Boolean
Enable IPv6 on the instance (boolean; default:
false
).- ipv6Address String
The instance (main network interface) IPv6 address (if enabled).
- labels Map<String,String>
A map of key/value labels.
- name String
The compute instance name.
- network
Interfaces List<ComputeInstance Network Interface> Private network interfaces (may be specified multiple times). Structure is documented below.
- private
Network List<String>Ids A list of private networks (IDs) attached to the instance. Please use the
network_interface.*.network_id
argument instead.Use the network_interface block instead.
- private_ Boolean
Whether the instance is private (no public IP addresses; default: false)
- public
Ip StringAddress The instance (main network interface) IPv4 address.
- reverse
Dns String Domain name for reverse DNS record.
- security
Group List<String>Ids A list of exoscalesecuritygroup (IDs) to attach to the instance.
- ssh
Key String The exoscalesshkey (name) to authorize in the instance (may only be set at creation time).
- state String
The instance state (
running
orstopped
; default:running
).- template
Id String ❗ The exoscalecomputetemplate (ID) to use when creating the instance.
- type String
The instance type (
<family>.<size>
, e.g.standard.medium
; use the Exoscale CLI -exo compute instance-type list
- for the list of available types). WARNING: updating this attribute stops/restarts the instance.- user
Data String cloud-init configuration.
- zone String
❗ The Exoscale Zone name.
- anti
Affinity string[]Group Ids ❗ A list of exoscaleantiaffinity_group (IDs) to attach to the instance (may only be set at creation time).
- created
At string The instance creation date.
- deploy
Target stringId ❗ A deploy target ID.
- disk
Size number The instance disk size (GiB; at least
10
). WARNING: updating this attribute stops/restarts the instance.- elastic
Ip string[]Ids A list of exoscaleelasticip (IDs) to attach to the instance.
- ipv6 boolean
Enable IPv6 on the instance (boolean; default:
false
).- ipv6Address string
The instance (main network interface) IPv6 address (if enabled).
- labels {[key: string]: string}
A map of key/value labels.
- name string
The compute instance name.
- network
Interfaces ComputeInstance Network Interface[] Private network interfaces (may be specified multiple times). Structure is documented below.
- private boolean
Whether the instance is private (no public IP addresses; default: false)
- private
Network string[]Ids A list of private networks (IDs) attached to the instance. Please use the
network_interface.*.network_id
argument instead.Use the network_interface block instead.
- public
Ip stringAddress The instance (main network interface) IPv4 address.
- reverse
Dns string Domain name for reverse DNS record.
- security
Group string[]Ids A list of exoscalesecuritygroup (IDs) to attach to the instance.
- ssh
Key string The exoscalesshkey (name) to authorize in the instance (may only be set at creation time).
- state string
The instance state (
running
orstopped
; default:running
).- template
Id string ❗ The exoscalecomputetemplate (ID) to use when creating the instance.
- type string
The instance type (
<family>.<size>
, e.g.standard.medium
; use the Exoscale CLI -exo compute instance-type list
- for the list of available types). WARNING: updating this attribute stops/restarts the instance.- user
Data string cloud-init configuration.
- zone string
❗ The Exoscale Zone name.
- anti_
affinity_ Sequence[str]group_ ids ❗ A list of exoscaleantiaffinity_group (IDs) to attach to the instance (may only be set at creation time).
- created_
at str The instance creation date.
- deploy_
target_ strid ❗ A deploy target ID.
- disk_
size int The instance disk size (GiB; at least
10
). WARNING: updating this attribute stops/restarts the instance.- elastic_
ip_ Sequence[str]ids A list of exoscaleelasticip (IDs) to attach to the instance.
- ipv6 bool
Enable IPv6 on the instance (boolean; default:
false
).- ipv6_
address str The instance (main network interface) IPv6 address (if enabled).
- labels Mapping[str, str]
A map of key/value labels.
- name str
The compute instance name.
- network_
interfaces Sequence[ComputeInstance Network Interface Args] Private network interfaces (may be specified multiple times). Structure is documented below.
- private bool
Whether the instance is private (no public IP addresses; default: false)
- private_
network_ Sequence[str]ids A list of private networks (IDs) attached to the instance. Please use the
network_interface.*.network_id
argument instead.Use the network_interface block instead.
- public_
ip_ straddress The instance (main network interface) IPv4 address.
- reverse_
dns str Domain name for reverse DNS record.
- security_
group_ Sequence[str]ids A list of exoscalesecuritygroup (IDs) to attach to the instance.
- ssh_
key str The exoscalesshkey (name) to authorize in the instance (may only be set at creation time).
- state str
The instance state (
running
orstopped
; default:running
).- template_
id str ❗ The exoscalecomputetemplate (ID) to use when creating the instance.
- type str
The instance type (
<family>.<size>
, e.g.standard.medium
; use the Exoscale CLI -exo compute instance-type list
- for the list of available types). WARNING: updating this attribute stops/restarts the instance.- user_
data str cloud-init configuration.
- zone str
❗ The Exoscale Zone name.
- anti
Affinity List<String>Group Ids ❗ A list of exoscaleantiaffinity_group (IDs) to attach to the instance (may only be set at creation time).
- created
At String The instance creation date.
- deploy
Target StringId ❗ A deploy target ID.
- disk
Size Number The instance disk size (GiB; at least
10
). WARNING: updating this attribute stops/restarts the instance.- elastic
Ip List<String>Ids A list of exoscaleelasticip (IDs) to attach to the instance.
- ipv6 Boolean
Enable IPv6 on the instance (boolean; default:
false
).- ipv6Address String
The instance (main network interface) IPv6 address (if enabled).
- labels Map<String>
A map of key/value labels.
- name String
The compute instance name.
- network
Interfaces List<Property Map> Private network interfaces (may be specified multiple times). Structure is documented below.
- private Boolean
Whether the instance is private (no public IP addresses; default: false)
- private
Network List<String>Ids A list of private networks (IDs) attached to the instance. Please use the
network_interface.*.network_id
argument instead.Use the network_interface block instead.
- public
Ip StringAddress The instance (main network interface) IPv4 address.
- reverse
Dns String Domain name for reverse DNS record.
- security
Group List<String>Ids A list of exoscalesecuritygroup (IDs) to attach to the instance.
- ssh
Key String The exoscalesshkey (name) to authorize in the instance (may only be set at creation time).
- state String
The instance state (
running
orstopped
; default:running
).- template
Id String ❗ The exoscalecomputetemplate (ID) to use when creating the instance.
- type String
The instance type (
<family>.<size>
, e.g.standard.medium
; use the Exoscale CLI -exo compute instance-type list
- for the list of available types). WARNING: updating this attribute stops/restarts the instance.- user
Data String cloud-init configuration.
- zone String
❗ The Exoscale Zone name.
Supporting Types
ComputeInstanceNetworkInterface, ComputeInstanceNetworkInterfaceArgs
- network_
id str The exoscaleprivatenetwork (ID) to attach to the instance.
- ip_
address str The IPv4 address to request as static DHCP lease if the network interface is attached to a managed private network.
Package Details
- Repository
- exoscale pulumiverse/pulumi-exoscale
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
exoscale
Terraform Provider.