Instance
Provides a Linode Instance resource. This can be used to create, modify, and delete Linodes. For more information, see Getting Started with Linode and the Linode APIv4 docs.
Attributes
This Linode Instance resource exports the following attributes:
status- The status of the instance, indicating the current readiness state. (running,offline, …)ip_address- A string containing the Linode’s public IP address.private_ip_address- This Linode’s Private IPv4 Address, if enabled. The regional private IP address range, 192.168.128.0/17, is shared by all Linode Instances in a region.ipv6- This Linode’s IPv6 SLAAC addresses. This address is specific to a Linode, and may not be shared. The prefix (/64) is included in this attribute.ipv4- This Linode’s IPv4 Addresses. Each Linode is assigned a single public IPv4 address upon creation, and may get a single private IPv4 address if needed. You may need to open a support ticket to get additional IPv4 addresses.specs.0.disk- The amount of storage space, in GB. this Linode has access to. A typical Linode will divide this space between a primary disk with an image deployed to it, and a swap disk, usually 512 MB. This is the default configuration created when deploying a Linode with an image through POST /linode/instances.specs.0.memory- The amount of RAM, in MB, this Linode has access to. Typically a Linode will choose to boot with all of its available RAM, but this can be configured in a Config profile.specs.0.vcpus- The number of vcpus this Linode has access to. Typically a Linode will choose to boot with all of its available vcpus, but this can be configured in a Config Profile.specs.0.transfer- The amount of network transfer this Linode is allotted each month.backups- Information about this Linode’s backups status.enabled- If this Linode has the Backup service enabled.scheduleday- The day of the week that your Linode’s weekly Backup is taken. If not set manually, a day will be chosen for you. Backups are taken every day, but backups taken on this day are preferred when selecting backups to retain for a longer period. If not set manually, then when backups are initially enabled, this may come back as “Scheduling” until the day is automatically selected.window- The window (‘W0’-‘W22’) in which your backups will be taken, in UTC. A backups window is a two-hour span of time in which the backup may occur. For example, ‘W10’ indicates that your backups should be taken between 10:00 and 12:00. If you do not choose a backup window, one will be selected for you automatically. If not set manually, when backups are initially enabled this may come back as Scheduling until the window is automatically selected.
Example Usage
Simple Linode Instance
using Pulumi;
using Linode = Pulumi.Linode;
class MyStack : Stack
{
public MyStack()
{
var web = new Linode.Instance("web", new Linode.InstanceArgs
{
AuthorizedKeys =
{
"ssh-rsa AAAA...Gw== user@example.local",
},
Group = "foo",
Image = "linode/ubuntu18.04",
Label = "simple_instance",
PrivateIp = true,
Region = "us-central",
RootPass = "terr4form-test",
SwapSize = 256,
Tags =
{
"foo",
},
Type = "g6-standard-1",
});
}
}
Coming soon!
import pulumi
import pulumi_linode as linode
web = linode.Instance("web",
authorized_keys=["ssh-rsa AAAA...Gw== user@example.local"],
group="foo",
image="linode/ubuntu18.04",
label="simple_instance",
private_ip=True,
region="us-central",
root_pass="terr4form-test",
swap_size=256,
tags=["foo"],
type="g6-standard-1")import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const web = new linode.Instance("web", {
authorizedKeys: ["ssh-rsa AAAA...Gw== user@example.local"],
group: "foo",
image: "linode/ubuntu18.04",
label: "simple_instance",
privateIp: true,
region: "us-central",
rootPass: "terr4form-test",
swapSize: 256,
tags: ["foo"],
type: "g6-standard-1",
});Linode Instance with explicit Configs and Disks
using Pulumi;
using Linode = Pulumi.Linode;
class MyStack : Stack
{
public MyStack()
{
var me = Output.Create(Linode.GetProfile.InvokeAsync());
var webVolume = new Linode.Volume("webVolume", new Linode.VolumeArgs
{
Label = "web_volume",
Region = "us-central",
Size = 20,
});
var web = new Linode.Instance("web", new Linode.InstanceArgs
{
BootConfigLabel = "boot_config",
Configs =
{
new Linode.Inputs.InstanceConfigArgs
{
Devices = new Linode.Inputs.InstanceConfigDevicesArgs
{
Sda = new Linode.Inputs.InstanceConfigDevicesSdaArgs
{
DiskLabel = "boot",
},
Sdb = new Linode.Inputs.InstanceConfigDevicesSdbArgs
{
VolumeId = webVolume.Id,
},
},
Kernel = "linode/latest-64bit",
Label = "boot_config",
RootDevice = "/dev/sda",
},
},
Disks =
{
new Linode.Inputs.InstanceDiskArgs
{
AuthorizedKeys =
{
"ssh-rsa AAAA...Gw== user@example.local",
},
AuthorizedUsers =
{
me.Apply(me => me.Username),
},
Image = "linode/ubuntu18.04",
Label = "boot",
RootPass = "terr4form-test",
Size = 3000,
},
},
Group = "foo",
Label = "complex_instance",
PrivateIp = true,
Region = "us-central",
Tags =
{
"foo",
},
Type = "g6-nanode-1",
});
}
}
Coming soon!
import pulumi
import pulumi_linode as linode
me = linode.get_profile()
web_volume = linode.Volume("webVolume",
label="web_volume",
region="us-central",
size=20)
web = linode.Instance("web",
boot_config_label="boot_config",
configs=[{
"devices": {
"sda": {
"diskLabel": "boot",
},
"sdb": {
"volumeId": web_volume.id,
},
},
"kernel": "linode/latest-64bit",
"label": "boot_config",
"rootDevice": "/dev/sda",
}],
disks=[{
"authorized_keys": ["ssh-rsa AAAA...Gw== user@example.local"],
"authorized_users": [me.username],
"image": "linode/ubuntu18.04",
"label": "boot",
"root_pass": "terr4form-test",
"size": 3000,
}],
group="foo",
label="complex_instance",
private_ip=True,
region="us-central",
tags=["foo"],
type="g6-nanode-1")import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const me = pulumi.output(linode.getProfile({ async: true }));
const webVolume = new linode.Volume("web_volume", {
label: "web_volume",
region: "us-central",
size: 20,
});
const web = new linode.Instance("web", {
bootConfigLabel: "boot_config",
configs: [{
devices: {
sda: {
diskLabel: "boot",
},
sdb: {
volumeId: webVolume.id,
},
},
kernel: "linode/latest-64bit",
label: "boot_config",
rootDevice: "/dev/sda",
}],
disks: [{
// Any of authorized_keys, authorized_users, and root_pass
// can be used for provisioning.
authorizedKeys: ["ssh-rsa AAAA...Gw== user@example.local"],
authorizedUsers: [me.username],
image: "linode/ubuntu18.04",
label: "boot",
rootPass: "terr4form-test",
size: 3000,
}],
group: "foo",
label: "complex_instance",
privateIp: true,
region: "us-central",
tags: ["foo"],
type: "g6-nanode-1",
});Create a Instance Resource
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);def Instance(resource_name, opts=None, alerts=None, authorized_keys=None, authorized_users=None, backup_id=None, backups_enabled=None, boot_config_label=None, configs=None, disks=None, group=None, image=None, label=None, private_ip=None, region=None, root_pass=None, stackscript_data=None, stackscript_id=None, swap_size=None, tags=None, type=None, watchdog_enabled=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:
- Region string
This is the location where the Linode is deployed. Examples are
"us-east","us-west","ap-south", etc. See all regions here. Changingregionforces the creation of a new Linode Instance..- Alerts
Instance
Alerts Args - List<string>
A list of SSH public keys to deploy for the root user on the newly created Linode. Only accepted if
imageis provided. This value can not be imported. Changingauthorized_keysforces the creation of a new Linode Instance.- List<string>
A list of Linode usernames. If the usernames have associated SSH keys, the keys will be appended to the
rootuser’s~/.ssh/authorized_keysfile automatically. This value can not be imported. Changingauthorized_usersforces the creation of a new Linode Instance.- Backup
Id int A Backup ID from another Linode’s available backups. Your User must have read_write access to that Linode, the Backup must have a status of successful, and the Linode must be deployed to the same region as the Backup. See /linode/instances/{linodeId}/backups for a Linode’s available backups. This field and the image field are mutually exclusive. This value can not be imported. Changing
backup_idforces the creation of a new Linode Instance.- Backups
Enabled bool If this field is set to true, the created Linode will automatically be enrolled in the Linode Backup service. This will incur an additional charge. The cost for the Backup service is dependent on the Type of Linode deployed.
- Boot
Config stringLabel The Label of the Instance Config that should be used to boot the Linode instance. If there is only one
config, thelabelof thatconfigwill be used as theboot_config_label. This value can not be imported.- Configs
List<Instance
Config Args> Configuration profiles define the VM settings and boot behavior of the Linode Instance.
- Disks
List<Instance
Disk Args> - Group string
The display group of the Linode instance.
- Image string
An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with private/. See /images for more information on the Images available for you to use. Examples are
linode/debian9,linode/fedora28,linode/ubuntu16.04lts,linode/arch, andprivate/12345. See all images here. Changingimageforces the creation of a new Linode Instance.- Label string
The Config’s label for display purposes. Also used by
boot_config_label.- Private
Ip bool If true, the created Linode will have private networking enabled, allowing use of the 192.168.128.0/17 network within the Linode’s region. It can be enabled on an existing Linode but it can’t be disabled.
- Root
Pass string The initial password for the
rootuser account. This value can not be imported. Changingroot_passforces the creation of a new Linode Instance. If omitted, a random password will be generated but will not be stored in state.- Stackscript
Data Dictionary<string, object> An object containing responses to any User Defined Fields present in the StackScript being deployed to this Linode. Only accepted if ‘stackscript_id’ is given. The required values depend on the StackScript being deployed. This value can not be imported. Changing
stackscript_dataforces the creation of a new Linode Instance.- Stackscript
Id int The StackScript to deploy to the newly created Linode. If provided, ‘image’ must also be provided, and must be an Image that is compatible with this StackScript. This value can not be imported. Changing
stackscript_idforces the creation of a new Linode Instance.- Swap
Size int When deploying from an Image, this field is optional with a Linode API default of 512mb, otherwise it is ignored. This is used to set the swap disk size for the newly-created Linode.
- List<string>
A list of tags applied to this object. Tags are for organizational purposes only.
- Type string
The Linode type defines the pricing, CPU, disk, and RAM specs of the instance. Examples are
"g6-nanode-1","g6-standard-2","g6-highmem-16","g6-dedicated-16", etc. See all types here.- Watchdog
Enabled bool The watchdog, named Lassie, is a Shutdown Watchdog that monitors your Linode and will reboot it if it powers off unexpectedly. It works by issuing a boot job when your Linode powers off without a shutdown job being responsible. To prevent a loop, Lassie will give up if there have been more than 5 boot jobs issued within 15 minutes.
- Region string
This is the location where the Linode is deployed. Examples are
"us-east","us-west","ap-south", etc. See all regions here. Changingregionforces the creation of a new Linode Instance..- Alerts
Instance
Alerts - []string
A list of SSH public keys to deploy for the root user on the newly created Linode. Only accepted if
imageis provided. This value can not be imported. Changingauthorized_keysforces the creation of a new Linode Instance.- []string
A list of Linode usernames. If the usernames have associated SSH keys, the keys will be appended to the
rootuser’s~/.ssh/authorized_keysfile automatically. This value can not be imported. Changingauthorized_usersforces the creation of a new Linode Instance.- Backup
Id int A Backup ID from another Linode’s available backups. Your User must have read_write access to that Linode, the Backup must have a status of successful, and the Linode must be deployed to the same region as the Backup. See /linode/instances/{linodeId}/backups for a Linode’s available backups. This field and the image field are mutually exclusive. This value can not be imported. Changing
backup_idforces the creation of a new Linode Instance.- Backups
Enabled bool If this field is set to true, the created Linode will automatically be enrolled in the Linode Backup service. This will incur an additional charge. The cost for the Backup service is dependent on the Type of Linode deployed.
- Boot
Config stringLabel The Label of the Instance Config that should be used to boot the Linode instance. If there is only one
config, thelabelof thatconfigwill be used as theboot_config_label. This value can not be imported.- Configs
[]Instance
Config Configuration profiles define the VM settings and boot behavior of the Linode Instance.
- Disks
[]Instance
Disk - Group string
The display group of the Linode instance.
- Image string
An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with private/. See /images for more information on the Images available for you to use. Examples are
linode/debian9,linode/fedora28,linode/ubuntu16.04lts,linode/arch, andprivate/12345. See all images here. Changingimageforces the creation of a new Linode Instance.- Label string
The Config’s label for display purposes. Also used by
boot_config_label.- Private
Ip bool If true, the created Linode will have private networking enabled, allowing use of the 192.168.128.0/17 network within the Linode’s region. It can be enabled on an existing Linode but it can’t be disabled.
- Root
Pass string The initial password for the
rootuser account. This value can not be imported. Changingroot_passforces the creation of a new Linode Instance. If omitted, a random password will be generated but will not be stored in state.- Stackscript
Data map[string]interface{} An object containing responses to any User Defined Fields present in the StackScript being deployed to this Linode. Only accepted if ‘stackscript_id’ is given. The required values depend on the StackScript being deployed. This value can not be imported. Changing
stackscript_dataforces the creation of a new Linode Instance.- Stackscript
Id int The StackScript to deploy to the newly created Linode. If provided, ‘image’ must also be provided, and must be an Image that is compatible with this StackScript. This value can not be imported. Changing
stackscript_idforces the creation of a new Linode Instance.- Swap
Size int When deploying from an Image, this field is optional with a Linode API default of 512mb, otherwise it is ignored. This is used to set the swap disk size for the newly-created Linode.
- []string
A list of tags applied to this object. Tags are for organizational purposes only.
- Type string
The Linode type defines the pricing, CPU, disk, and RAM specs of the instance. Examples are
"g6-nanode-1","g6-standard-2","g6-highmem-16","g6-dedicated-16", etc. See all types here.- Watchdog
Enabled bool The watchdog, named Lassie, is a Shutdown Watchdog that monitors your Linode and will reboot it if it powers off unexpectedly. It works by issuing a boot job when your Linode powers off without a shutdown job being responsible. To prevent a loop, Lassie will give up if there have been more than 5 boot jobs issued within 15 minutes.
- region string
This is the location where the Linode is deployed. Examples are
"us-east","us-west","ap-south", etc. See all regions here. Changingregionforces the creation of a new Linode Instance..- alerts
Instance
Alerts - string[]
A list of SSH public keys to deploy for the root user on the newly created Linode. Only accepted if
imageis provided. This value can not be imported. Changingauthorized_keysforces the creation of a new Linode Instance.- string[]
A list of Linode usernames. If the usernames have associated SSH keys, the keys will be appended to the
rootuser’s~/.ssh/authorized_keysfile automatically. This value can not be imported. Changingauthorized_usersforces the creation of a new Linode Instance.- backup
Id number A Backup ID from another Linode’s available backups. Your User must have read_write access to that Linode, the Backup must have a status of successful, and the Linode must be deployed to the same region as the Backup. See /linode/instances/{linodeId}/backups for a Linode’s available backups. This field and the image field are mutually exclusive. This value can not be imported. Changing
backup_idforces the creation of a new Linode Instance.- backups
Enabled boolean If this field is set to true, the created Linode will automatically be enrolled in the Linode Backup service. This will incur an additional charge. The cost for the Backup service is dependent on the Type of Linode deployed.
- boot
Config stringLabel The Label of the Instance Config that should be used to boot the Linode instance. If there is only one
config, thelabelof thatconfigwill be used as theboot_config_label. This value can not be imported.- configs
Instance
Config[] Configuration profiles define the VM settings and boot behavior of the Linode Instance.
- disks
Instance
Disk[] - group string
The display group of the Linode instance.
- image string
An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with private/. See /images for more information on the Images available for you to use. Examples are
linode/debian9,linode/fedora28,linode/ubuntu16.04lts,linode/arch, andprivate/12345. See all images here. Changingimageforces the creation of a new Linode Instance.- label string
The Config’s label for display purposes. Also used by
boot_config_label.- private
Ip boolean If true, the created Linode will have private networking enabled, allowing use of the 192.168.128.0/17 network within the Linode’s region. It can be enabled on an existing Linode but it can’t be disabled.
- root
Pass string The initial password for the
rootuser account. This value can not be imported. Changingroot_passforces the creation of a new Linode Instance. If omitted, a random password will be generated but will not be stored in state.- stackscript
Data {[key: string]: any} An object containing responses to any User Defined Fields present in the StackScript being deployed to this Linode. Only accepted if ‘stackscript_id’ is given. The required values depend on the StackScript being deployed. This value can not be imported. Changing
stackscript_dataforces the creation of a new Linode Instance.- stackscript
Id number The StackScript to deploy to the newly created Linode. If provided, ‘image’ must also be provided, and must be an Image that is compatible with this StackScript. This value can not be imported. Changing
stackscript_idforces the creation of a new Linode Instance.- swap
Size number When deploying from an Image, this field is optional with a Linode API default of 512mb, otherwise it is ignored. This is used to set the swap disk size for the newly-created Linode.
- string[]
A list of tags applied to this object. Tags are for organizational purposes only.
- type string
The Linode type defines the pricing, CPU, disk, and RAM specs of the instance. Examples are
"g6-nanode-1","g6-standard-2","g6-highmem-16","g6-dedicated-16", etc. See all types here.- watchdog
Enabled boolean The watchdog, named Lassie, is a Shutdown Watchdog that monitors your Linode and will reboot it if it powers off unexpectedly. It works by issuing a boot job when your Linode powers off without a shutdown job being responsible. To prevent a loop, Lassie will give up if there have been more than 5 boot jobs issued within 15 minutes.
- region str
This is the location where the Linode is deployed. Examples are
"us-east","us-west","ap-south", etc. See all regions here. Changingregionforces the creation of a new Linode Instance..- alerts
Dict[Instance
Alerts] - List[str]
A list of SSH public keys to deploy for the root user on the newly created Linode. Only accepted if
imageis provided. This value can not be imported. Changingauthorized_keysforces the creation of a new Linode Instance.- List[str]
A list of Linode usernames. If the usernames have associated SSH keys, the keys will be appended to the
rootuser’s~/.ssh/authorized_keysfile automatically. This value can not be imported. Changingauthorized_usersforces the creation of a new Linode Instance.- backup_
id float A Backup ID from another Linode’s available backups. Your User must have read_write access to that Linode, the Backup must have a status of successful, and the Linode must be deployed to the same region as the Backup. See /linode/instances/{linodeId}/backups for a Linode’s available backups. This field and the image field are mutually exclusive. This value can not be imported. Changing
backup_idforces the creation of a new Linode Instance.- backups_
enabled bool If this field is set to true, the created Linode will automatically be enrolled in the Linode Backup service. This will incur an additional charge. The cost for the Backup service is dependent on the Type of Linode deployed.
- boot_
config_ strlabel The Label of the Instance Config that should be used to boot the Linode instance. If there is only one
config, thelabelof thatconfigwill be used as theboot_config_label. This value can not be imported.- configs
List[Instance
Config] Configuration profiles define the VM settings and boot behavior of the Linode Instance.
- disks
List[Instance
Disk] - group str
The display group of the Linode instance.
- image str
An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with private/. See /images for more information on the Images available for you to use. Examples are
linode/debian9,linode/fedora28,linode/ubuntu16.04lts,linode/arch, andprivate/12345. See all images here. Changingimageforces the creation of a new Linode Instance.- label str
The Config’s label for display purposes. Also used by
boot_config_label.- private_
ip bool If true, the created Linode will have private networking enabled, allowing use of the 192.168.128.0/17 network within the Linode’s region. It can be enabled on an existing Linode but it can’t be disabled.
- root_
pass str The initial password for the
rootuser account. This value can not be imported. Changingroot_passforces the creation of a new Linode Instance. If omitted, a random password will be generated but will not be stored in state.- stackscript_
data Dict[str, Any] An object containing responses to any User Defined Fields present in the StackScript being deployed to this Linode. Only accepted if ‘stackscript_id’ is given. The required values depend on the StackScript being deployed. This value can not be imported. Changing
stackscript_dataforces the creation of a new Linode Instance.- stackscript_
id float The StackScript to deploy to the newly created Linode. If provided, ‘image’ must also be provided, and must be an Image that is compatible with this StackScript. This value can not be imported. Changing
stackscript_idforces the creation of a new Linode Instance.- swap_
size float When deploying from an Image, this field is optional with a Linode API default of 512mb, otherwise it is ignored. This is used to set the swap disk size for the newly-created Linode.
- List[str]
A list of tags applied to this object. Tags are for organizational purposes only.
- type str
The Linode type defines the pricing, CPU, disk, and RAM specs of the instance. Examples are
"g6-nanode-1","g6-standard-2","g6-highmem-16","g6-dedicated-16", etc. See all types here.- watchdog_
enabled bool The watchdog, named Lassie, is a Shutdown Watchdog that monitors your Linode and will reboot it if it powers off unexpectedly. It works by issuing a boot job when your Linode powers off without a shutdown job being responsible. To prevent a loop, Lassie will give up if there have been more than 5 boot jobs issued within 15 minutes.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Backups
Instance
Backups Information about this Linode’s backups status.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string This Linode’s Public IPv4 Address. If there are multiple public IPv4 addresses on this Instance, an arbitrary address will be used for this field.
- Ipv4s List<string>
This Linode’s IPv4 Addresses. Each Linode is assigned a single public IPv4 address upon creation, and may get a single private IPv4 address if needed. You may need to open a support ticket to get additional IPv4 addresses.
- Ipv6 string
This Linode’s IPv6 SLAAC addresses. This address is specific to a Linode, and may not be shared.
- Private
Ip stringAddress This Linode’s Private IPv4 Address. The regional private IP address range is 192.168.128/17 address shared by all Linode Instances in a region.
- Specs
Instance
Specs - Status string
The status of the instance, indicating the current readiness state.
- Backups
Instance
Backups Information about this Linode’s backups status.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string This Linode’s Public IPv4 Address. If there are multiple public IPv4 addresses on this Instance, an arbitrary address will be used for this field.
- Ipv4s []string
This Linode’s IPv4 Addresses. Each Linode is assigned a single public IPv4 address upon creation, and may get a single private IPv4 address if needed. You may need to open a support ticket to get additional IPv4 addresses.
- Ipv6 string
This Linode’s IPv6 SLAAC addresses. This address is specific to a Linode, and may not be shared.
- Private
Ip stringAddress This Linode’s Private IPv4 Address. The regional private IP address range is 192.168.128/17 address shared by all Linode Instances in a region.
- Specs
Instance
Specs - Status string
The status of the instance, indicating the current readiness state.
- backups
Instance
Backups Information about this Linode’s backups status.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Address string This Linode’s Public IPv4 Address. If there are multiple public IPv4 addresses on this Instance, an arbitrary address will be used for this field.
- ipv4s string[]
This Linode’s IPv4 Addresses. Each Linode is assigned a single public IPv4 address upon creation, and may get a single private IPv4 address if needed. You may need to open a support ticket to get additional IPv4 addresses.
- ipv6 string
This Linode’s IPv6 SLAAC addresses. This address is specific to a Linode, and may not be shared.
- private
Ip stringAddress This Linode’s Private IPv4 Address. The regional private IP address range is 192.168.128/17 address shared by all Linode Instances in a region.
- specs
Instance
Specs - status string
The status of the instance, indicating the current readiness state.
- backups
Dict[Instance
Backups] Information about this Linode’s backups status.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str This Linode’s Public IPv4 Address. If there are multiple public IPv4 addresses on this Instance, an arbitrary address will be used for this field.
- ipv4s List[str]
This Linode’s IPv4 Addresses. Each Linode is assigned a single public IPv4 address upon creation, and may get a single private IPv4 address if needed. You may need to open a support ticket to get additional IPv4 addresses.
- ipv6 str
This Linode’s IPv6 SLAAC addresses. This address is specific to a Linode, and may not be shared.
- private_
ip_ straddress This Linode’s Private IPv4 Address. The regional private IP address range is 192.168.128/17 address shared by all Linode Instances in a region.
- specs
Dict[Instance
Specs] - status str
The status of the instance, indicating the current readiness state.
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, alerts=None, authorized_keys=None, authorized_users=None, backup_id=None, backups=None, backups_enabled=None, boot_config_label=None, configs=None, disks=None, group=None, image=None, ip_address=None, ipv4s=None, ipv6=None, label=None, private_ip=None, private_ip_address=None, region=None, root_pass=None, specs=None, stackscript_data=None, stackscript_id=None, status=None, swap_size=None, tags=None, type=None, watchdog_enabled=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:
- Alerts
Instance
Alerts Args - List<string>
A list of SSH public keys to deploy for the root user on the newly created Linode. Only accepted if
imageis provided. This value can not be imported. Changingauthorized_keysforces the creation of a new Linode Instance.- List<string>
A list of Linode usernames. If the usernames have associated SSH keys, the keys will be appended to the
rootuser’s~/.ssh/authorized_keysfile automatically. This value can not be imported. Changingauthorized_usersforces the creation of a new Linode Instance.- Backup
Id int A Backup ID from another Linode’s available backups. Your User must have read_write access to that Linode, the Backup must have a status of successful, and the Linode must be deployed to the same region as the Backup. See /linode/instances/{linodeId}/backups for a Linode’s available backups. This field and the image field are mutually exclusive. This value can not be imported. Changing
backup_idforces the creation of a new Linode Instance.- Backups
Instance
Backups Args Information about this Linode’s backups status.
- Backups
Enabled bool If this field is set to true, the created Linode will automatically be enrolled in the Linode Backup service. This will incur an additional charge. The cost for the Backup service is dependent on the Type of Linode deployed.
- Boot
Config stringLabel The Label of the Instance Config that should be used to boot the Linode instance. If there is only one
config, thelabelof thatconfigwill be used as theboot_config_label. This value can not be imported.- Configs
List<Instance
Config Args> Configuration profiles define the VM settings and boot behavior of the Linode Instance.
- Disks
List<Instance
Disk Args> - Group string
The display group of the Linode instance.
- Image string
An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with private/. See /images for more information on the Images available for you to use. Examples are
linode/debian9,linode/fedora28,linode/ubuntu16.04lts,linode/arch, andprivate/12345. See all images here. Changingimageforces the creation of a new Linode Instance.- Ip
Address string This Linode’s Public IPv4 Address. If there are multiple public IPv4 addresses on this Instance, an arbitrary address will be used for this field.
- Ipv4s List<string>
This Linode’s IPv4 Addresses. Each Linode is assigned a single public IPv4 address upon creation, and may get a single private IPv4 address if needed. You may need to open a support ticket to get additional IPv4 addresses.
- Ipv6 string
This Linode’s IPv6 SLAAC addresses. This address is specific to a Linode, and may not be shared.
- Label string
The Config’s label for display purposes. Also used by
boot_config_label.- Private
Ip bool If true, the created Linode will have private networking enabled, allowing use of the 192.168.128.0/17 network within the Linode’s region. It can be enabled on an existing Linode but it can’t be disabled.
- Private
Ip stringAddress This Linode’s Private IPv4 Address. The regional private IP address range is 192.168.128/17 address shared by all Linode Instances in a region.
- Region string
This is the location where the Linode is deployed. Examples are
"us-east","us-west","ap-south", etc. See all regions here. Changingregionforces the creation of a new Linode Instance..- Root
Pass string The initial password for the
rootuser account. This value can not be imported. Changingroot_passforces the creation of a new Linode Instance. If omitted, a random password will be generated but will not be stored in state.- Specs
Instance
Specs Args - Stackscript
Data Dictionary<string, object> An object containing responses to any User Defined Fields present in the StackScript being deployed to this Linode. Only accepted if ‘stackscript_id’ is given. The required values depend on the StackScript being deployed. This value can not be imported. Changing
stackscript_dataforces the creation of a new Linode Instance.- Stackscript
Id int The StackScript to deploy to the newly created Linode. If provided, ‘image’ must also be provided, and must be an Image that is compatible with this StackScript. This value can not be imported. Changing
stackscript_idforces the creation of a new Linode Instance.- Status string
The status of the instance, indicating the current readiness state.
- Swap
Size int When deploying from an Image, this field is optional with a Linode API default of 512mb, otherwise it is ignored. This is used to set the swap disk size for the newly-created Linode.
- List<string>
A list of tags applied to this object. Tags are for organizational purposes only.
- Type string
The Linode type defines the pricing, CPU, disk, and RAM specs of the instance. Examples are
"g6-nanode-1","g6-standard-2","g6-highmem-16","g6-dedicated-16", etc. See all types here.- Watchdog
Enabled bool The watchdog, named Lassie, is a Shutdown Watchdog that monitors your Linode and will reboot it if it powers off unexpectedly. It works by issuing a boot job when your Linode powers off without a shutdown job being responsible. To prevent a loop, Lassie will give up if there have been more than 5 boot jobs issued within 15 minutes.
- Alerts
Instance
Alerts - []string
A list of SSH public keys to deploy for the root user on the newly created Linode. Only accepted if
imageis provided. This value can not be imported. Changingauthorized_keysforces the creation of a new Linode Instance.- []string
A list of Linode usernames. If the usernames have associated SSH keys, the keys will be appended to the
rootuser’s~/.ssh/authorized_keysfile automatically. This value can not be imported. Changingauthorized_usersforces the creation of a new Linode Instance.- Backup
Id int A Backup ID from another Linode’s available backups. Your User must have read_write access to that Linode, the Backup must have a status of successful, and the Linode must be deployed to the same region as the Backup. See /linode/instances/{linodeId}/backups for a Linode’s available backups. This field and the image field are mutually exclusive. This value can not be imported. Changing
backup_idforces the creation of a new Linode Instance.- Backups
Instance
Backups Information about this Linode’s backups status.
- Backups
Enabled bool If this field is set to true, the created Linode will automatically be enrolled in the Linode Backup service. This will incur an additional charge. The cost for the Backup service is dependent on the Type of Linode deployed.
- Boot
Config stringLabel The Label of the Instance Config that should be used to boot the Linode instance. If there is only one
config, thelabelof thatconfigwill be used as theboot_config_label. This value can not be imported.- Configs
[]Instance
Config Configuration profiles define the VM settings and boot behavior of the Linode Instance.
- Disks
[]Instance
Disk - Group string
The display group of the Linode instance.
- Image string
An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with private/. See /images for more information on the Images available for you to use. Examples are
linode/debian9,linode/fedora28,linode/ubuntu16.04lts,linode/arch, andprivate/12345. See all images here. Changingimageforces the creation of a new Linode Instance.- Ip
Address string This Linode’s Public IPv4 Address. If there are multiple public IPv4 addresses on this Instance, an arbitrary address will be used for this field.
- Ipv4s []string
This Linode’s IPv4 Addresses. Each Linode is assigned a single public IPv4 address upon creation, and may get a single private IPv4 address if needed. You may need to open a support ticket to get additional IPv4 addresses.
- Ipv6 string
This Linode’s IPv6 SLAAC addresses. This address is specific to a Linode, and may not be shared.
- Label string
The Config’s label for display purposes. Also used by
boot_config_label.- Private
Ip bool If true, the created Linode will have private networking enabled, allowing use of the 192.168.128.0/17 network within the Linode’s region. It can be enabled on an existing Linode but it can’t be disabled.
- Private
Ip stringAddress This Linode’s Private IPv4 Address. The regional private IP address range is 192.168.128/17 address shared by all Linode Instances in a region.
- Region string
This is the location where the Linode is deployed. Examples are
"us-east","us-west","ap-south", etc. See all regions here. Changingregionforces the creation of a new Linode Instance..- Root
Pass string The initial password for the
rootuser account. This value can not be imported. Changingroot_passforces the creation of a new Linode Instance. If omitted, a random password will be generated but will not be stored in state.- Specs
Instance
Specs - Stackscript
Data map[string]interface{} An object containing responses to any User Defined Fields present in the StackScript being deployed to this Linode. Only accepted if ‘stackscript_id’ is given. The required values depend on the StackScript being deployed. This value can not be imported. Changing
stackscript_dataforces the creation of a new Linode Instance.- Stackscript
Id int The StackScript to deploy to the newly created Linode. If provided, ‘image’ must also be provided, and must be an Image that is compatible with this StackScript. This value can not be imported. Changing
stackscript_idforces the creation of a new Linode Instance.- Status string
The status of the instance, indicating the current readiness state.
- Swap
Size int When deploying from an Image, this field is optional with a Linode API default of 512mb, otherwise it is ignored. This is used to set the swap disk size for the newly-created Linode.
- []string
A list of tags applied to this object. Tags are for organizational purposes only.
- Type string
The Linode type defines the pricing, CPU, disk, and RAM specs of the instance. Examples are
"g6-nanode-1","g6-standard-2","g6-highmem-16","g6-dedicated-16", etc. See all types here.- Watchdog
Enabled bool The watchdog, named Lassie, is a Shutdown Watchdog that monitors your Linode and will reboot it if it powers off unexpectedly. It works by issuing a boot job when your Linode powers off without a shutdown job being responsible. To prevent a loop, Lassie will give up if there have been more than 5 boot jobs issued within 15 minutes.
- alerts
Instance
Alerts - string[]
A list of SSH public keys to deploy for the root user on the newly created Linode. Only accepted if
imageis provided. This value can not be imported. Changingauthorized_keysforces the creation of a new Linode Instance.- string[]
A list of Linode usernames. If the usernames have associated SSH keys, the keys will be appended to the
rootuser’s~/.ssh/authorized_keysfile automatically. This value can not be imported. Changingauthorized_usersforces the creation of a new Linode Instance.- backup
Id number A Backup ID from another Linode’s available backups. Your User must have read_write access to that Linode, the Backup must have a status of successful, and the Linode must be deployed to the same region as the Backup. See /linode/instances/{linodeId}/backups for a Linode’s available backups. This field and the image field are mutually exclusive. This value can not be imported. Changing
backup_idforces the creation of a new Linode Instance.- backups
Instance
Backups Information about this Linode’s backups status.
- backups
Enabled boolean If this field is set to true, the created Linode will automatically be enrolled in the Linode Backup service. This will incur an additional charge. The cost for the Backup service is dependent on the Type of Linode deployed.
- boot
Config stringLabel The Label of the Instance Config that should be used to boot the Linode instance. If there is only one
config, thelabelof thatconfigwill be used as theboot_config_label. This value can not be imported.- configs
Instance
Config[] Configuration profiles define the VM settings and boot behavior of the Linode Instance.
- disks
Instance
Disk[] - group string
The display group of the Linode instance.
- image string
An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with private/. See /images for more information on the Images available for you to use. Examples are
linode/debian9,linode/fedora28,linode/ubuntu16.04lts,linode/arch, andprivate/12345. See all images here. Changingimageforces the creation of a new Linode Instance.- ip
Address string This Linode’s Public IPv4 Address. If there are multiple public IPv4 addresses on this Instance, an arbitrary address will be used for this field.
- ipv4s string[]
This Linode’s IPv4 Addresses. Each Linode is assigned a single public IPv4 address upon creation, and may get a single private IPv4 address if needed. You may need to open a support ticket to get additional IPv4 addresses.
- ipv6 string
This Linode’s IPv6 SLAAC addresses. This address is specific to a Linode, and may not be shared.
- label string
The Config’s label for display purposes. Also used by
boot_config_label.- private
Ip boolean If true, the created Linode will have private networking enabled, allowing use of the 192.168.128.0/17 network within the Linode’s region. It can be enabled on an existing Linode but it can’t be disabled.
- private
Ip stringAddress This Linode’s Private IPv4 Address. The regional private IP address range is 192.168.128/17 address shared by all Linode Instances in a region.
- region string
This is the location where the Linode is deployed. Examples are
"us-east","us-west","ap-south", etc. See all regions here. Changingregionforces the creation of a new Linode Instance..- root
Pass string The initial password for the
rootuser account. This value can not be imported. Changingroot_passforces the creation of a new Linode Instance. If omitted, a random password will be generated but will not be stored in state.- specs
Instance
Specs - stackscript
Data {[key: string]: any} An object containing responses to any User Defined Fields present in the StackScript being deployed to this Linode. Only accepted if ‘stackscript_id’ is given. The required values depend on the StackScript being deployed. This value can not be imported. Changing
stackscript_dataforces the creation of a new Linode Instance.- stackscript
Id number The StackScript to deploy to the newly created Linode. If provided, ‘image’ must also be provided, and must be an Image that is compatible with this StackScript. This value can not be imported. Changing
stackscript_idforces the creation of a new Linode Instance.- status string
The status of the instance, indicating the current readiness state.
- swap
Size number When deploying from an Image, this field is optional with a Linode API default of 512mb, otherwise it is ignored. This is used to set the swap disk size for the newly-created Linode.
- string[]
A list of tags applied to this object. Tags are for organizational purposes only.
- type string
The Linode type defines the pricing, CPU, disk, and RAM specs of the instance. Examples are
"g6-nanode-1","g6-standard-2","g6-highmem-16","g6-dedicated-16", etc. See all types here.- watchdog
Enabled boolean The watchdog, named Lassie, is a Shutdown Watchdog that monitors your Linode and will reboot it if it powers off unexpectedly. It works by issuing a boot job when your Linode powers off without a shutdown job being responsible. To prevent a loop, Lassie will give up if there have been more than 5 boot jobs issued within 15 minutes.
- alerts
Dict[Instance
Alerts] - List[str]
A list of SSH public keys to deploy for the root user on the newly created Linode. Only accepted if
imageis provided. This value can not be imported. Changingauthorized_keysforces the creation of a new Linode Instance.- List[str]
A list of Linode usernames. If the usernames have associated SSH keys, the keys will be appended to the
rootuser’s~/.ssh/authorized_keysfile automatically. This value can not be imported. Changingauthorized_usersforces the creation of a new Linode Instance.- backup_
id float A Backup ID from another Linode’s available backups. Your User must have read_write access to that Linode, the Backup must have a status of successful, and the Linode must be deployed to the same region as the Backup. See /linode/instances/{linodeId}/backups for a Linode’s available backups. This field and the image field are mutually exclusive. This value can not be imported. Changing
backup_idforces the creation of a new Linode Instance.- backups
Dict[Instance
Backups] Information about this Linode’s backups status.
- backups_
enabled bool If this field is set to true, the created Linode will automatically be enrolled in the Linode Backup service. This will incur an additional charge. The cost for the Backup service is dependent on the Type of Linode deployed.
- boot_
config_ strlabel The Label of the Instance Config that should be used to boot the Linode instance. If there is only one
config, thelabelof thatconfigwill be used as theboot_config_label. This value can not be imported.- configs
List[Instance
Config] Configuration profiles define the VM settings and boot behavior of the Linode Instance.
- disks
List[Instance
Disk] - group str
The display group of the Linode instance.
- image str
An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with private/. See /images for more information on the Images available for you to use. Examples are
linode/debian9,linode/fedora28,linode/ubuntu16.04lts,linode/arch, andprivate/12345. See all images here. Changingimageforces the creation of a new Linode Instance.- ip_
address str This Linode’s Public IPv4 Address. If there are multiple public IPv4 addresses on this Instance, an arbitrary address will be used for this field.
- ipv4s List[str]
This Linode’s IPv4 Addresses. Each Linode is assigned a single public IPv4 address upon creation, and may get a single private IPv4 address if needed. You may need to open a support ticket to get additional IPv4 addresses.
- ipv6 str
This Linode’s IPv6 SLAAC addresses. This address is specific to a Linode, and may not be shared.
- label str
The Config’s label for display purposes. Also used by
boot_config_label.- private_
ip bool If true, the created Linode will have private networking enabled, allowing use of the 192.168.128.0/17 network within the Linode’s region. It can be enabled on an existing Linode but it can’t be disabled.
- private_
ip_ straddress This Linode’s Private IPv4 Address. The regional private IP address range is 192.168.128/17 address shared by all Linode Instances in a region.
- region str
This is the location where the Linode is deployed. Examples are
"us-east","us-west","ap-south", etc. See all regions here. Changingregionforces the creation of a new Linode Instance..- root_
pass str The initial password for the
rootuser account. This value can not be imported. Changingroot_passforces the creation of a new Linode Instance. If omitted, a random password will be generated but will not be stored in state.- specs
Dict[Instance
Specs] - stackscript_
data Dict[str, Any] An object containing responses to any User Defined Fields present in the StackScript being deployed to this Linode. Only accepted if ‘stackscript_id’ is given. The required values depend on the StackScript being deployed. This value can not be imported. Changing
stackscript_dataforces the creation of a new Linode Instance.- stackscript_
id float The StackScript to deploy to the newly created Linode. If provided, ‘image’ must also be provided, and must be an Image that is compatible with this StackScript. This value can not be imported. Changing
stackscript_idforces the creation of a new Linode Instance.- status str
The status of the instance, indicating the current readiness state.
- swap_
size float When deploying from an Image, this field is optional with a Linode API default of 512mb, otherwise it is ignored. This is used to set the swap disk size for the newly-created Linode.
- List[str]
A list of tags applied to this object. Tags are for organizational purposes only.
- type str
The Linode type defines the pricing, CPU, disk, and RAM specs of the instance. Examples are
"g6-nanode-1","g6-standard-2","g6-highmem-16","g6-dedicated-16", etc. See all types here.- watchdog_
enabled bool The watchdog, named Lassie, is a Shutdown Watchdog that monitors your Linode and will reboot it if it powers off unexpectedly. It works by issuing a boot job when your Linode powers off without a shutdown job being responsible. To prevent a loop, Lassie will give up if there have been more than 5 boot jobs issued within 15 minutes.
Supporting Types
InstanceAlerts
InstanceBackups
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
InstanceBackupsSchedule
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
InstanceConfig
- Label string
The Config’s label for display purposes. Also used by
boot_config_label.- Comments string
- Arbitrary user comments about this
config.
- Arbitrary user comments about this
- Devices
Instance
Config Devices Args A list of
diskorvolumeattachments for thisconfig. If theboot_config_labelomits adevicesblock, the Linode will not be booted.- Helpers
Instance
Config Helpers Args Helpers enabled when booting to this Linode Config.
- Kernel string
- A Kernel ID to boot a Linode with. Default is based on image choice. Examples are
linode/latest-64bit,linode/grub2,linode/direct-disk, etc. See all kernels here.
- A Kernel ID to boot a Linode with. Default is based on image choice. Examples are
- Memory
Limit int - Defaults to the total RAM of the Linode
- Root
Device string - The root device to boot. The corresponding disk must be attached to a
deviceslot. Example:"/dev/sda"
- The root device to boot. The corresponding disk must be attached to a
- Run
Level string - Defines the state of your Linode after booting. Defaults to
"default".
- Defines the state of your Linode after booting. Defaults to
- Virt
Mode string - Controls the virtualization mode. Defaults to
"paravirt".
- Controls the virtualization mode. Defaults to
- Label string
The Config’s label for display purposes. Also used by
boot_config_label.- Comments string
- Arbitrary user comments about this
config.
- Arbitrary user comments about this
- Devices
Instance
Config Devices A list of
diskorvolumeattachments for thisconfig. If theboot_config_labelomits adevicesblock, the Linode will not be booted.- Helpers
Instance
Config Helpers Helpers enabled when booting to this Linode Config.
- Kernel string
- A Kernel ID to boot a Linode with. Default is based on image choice. Examples are
linode/latest-64bit,linode/grub2,linode/direct-disk, etc. See all kernels here.
- A Kernel ID to boot a Linode with. Default is based on image choice. Examples are
- Memory
Limit int - Defaults to the total RAM of the Linode
- Root
Device string - The root device to boot. The corresponding disk must be attached to a
deviceslot. Example:"/dev/sda"
- The root device to boot. The corresponding disk must be attached to a
- Run
Level string - Defines the state of your Linode after booting. Defaults to
"default".
- Defines the state of your Linode after booting. Defaults to
- Virt
Mode string - Controls the virtualization mode. Defaults to
"paravirt".
- Controls the virtualization mode. Defaults to
- label string
The Config’s label for display purposes. Also used by
boot_config_label.- comments string
- Arbitrary user comments about this
config.
- Arbitrary user comments about this
- devices
Instance
Config Devices A list of
diskorvolumeattachments for thisconfig. If theboot_config_labelomits adevicesblock, the Linode will not be booted.- helpers
Instance
Config Helpers Helpers enabled when booting to this Linode Config.
- kernel string
- A Kernel ID to boot a Linode with. Default is based on image choice. Examples are
linode/latest-64bit,linode/grub2,linode/direct-disk, etc. See all kernels here.
- A Kernel ID to boot a Linode with. Default is based on image choice. Examples are
- memory
Limit number - Defaults to the total RAM of the Linode
- root
Device string - The root device to boot. The corresponding disk must be attached to a
deviceslot. Example:"/dev/sda"
- The root device to boot. The corresponding disk must be attached to a
- run
Level string - Defines the state of your Linode after booting. Defaults to
"default".
- Defines the state of your Linode after booting. Defaults to
- virt
Mode string - Controls the virtualization mode. Defaults to
"paravirt".
- Controls the virtualization mode. Defaults to
- label str
The Config’s label for display purposes. Also used by
boot_config_label.- comments str
- Arbitrary user comments about this
config.
- Arbitrary user comments about this
- devices
Dict[Instance
Config Devices] A list of
diskorvolumeattachments for thisconfig. If theboot_config_labelomits adevicesblock, the Linode will not be booted.- helpers
Dict[Instance
Config Helpers] Helpers enabled when booting to this Linode Config.
- kernel str
- A Kernel ID to boot a Linode with. Default is based on image choice. Examples are
linode/latest-64bit,linode/grub2,linode/direct-disk, etc. See all kernels here.
- A Kernel ID to boot a Linode with. Default is based on image choice. Examples are
- memory
Limit float - Defaults to the total RAM of the Linode
- root
Device str - The root device to boot. The corresponding disk must be attached to a
deviceslot. Example:"/dev/sda"
- The root device to boot. The corresponding disk must be attached to a
- run
Level str - Defines the state of your Linode after booting. Defaults to
"default".
- Defines the state of your Linode after booting. Defaults to
- virt
Mode str - Controls the virtualization mode. Defaults to
"paravirt".
- Controls the virtualization mode. Defaults to
InstanceConfigDevices
- Sda
Instance
Config Devices Sda Args …
sdh- (Optional) The SDA-SDH slots, represent the Linux block device nodes for the first 8 disks attached to the Linode. Each device must be suplied sequentially. The device can be either a Disk or a Volume identified bydisk_labelorvolume_id. Only one disk identifier is permitted per slot. Devices mapped fromsdethroughsdhare unavailable in"fullvirt"virt_mode.- Sdb
Instance
Config Devices Sdb Args - Sdc
Instance
Config Devices Sdc Args - Sdd
Instance
Config Devices Sdd Args - Sde
Instance
Config Devices Sde Args - Sdf
Instance
Config Devices Sdf Args - Sdg
Instance
Config Devices Sdg Args - Sdh
Instance
Config Devices Sdh Args
- Sda
Instance
Config Devices Sda …
sdh- (Optional) The SDA-SDH slots, represent the Linux block device nodes for the first 8 disks attached to the Linode. Each device must be suplied sequentially. The device can be either a Disk or a Volume identified bydisk_labelorvolume_id. Only one disk identifier is permitted per slot. Devices mapped fromsdethroughsdhare unavailable in"fullvirt"virt_mode.- Sdb
Instance
Config Devices Sdb - Sdc
Instance
Config Devices Sdc - Sdd
Instance
Config Devices Sdd - Sde
Instance
Config Devices Sde - Sdf
Instance
Config Devices Sdf - Sdg
Instance
Config Devices Sdg - Sdh
Instance
Config Devices Sdh
- sda
Instance
Config Devices Sda …
sdh- (Optional) The SDA-SDH slots, represent the Linux block device nodes for the first 8 disks attached to the Linode. Each device must be suplied sequentially. The device can be either a Disk or a Volume identified bydisk_labelorvolume_id. Only one disk identifier is permitted per slot. Devices mapped fromsdethroughsdhare unavailable in"fullvirt"virt_mode.- sdb
Instance
Config Devices Sdb - sdc
Instance
Config Devices Sdc - sdd
Instance
Config Devices Sdd - sde
Instance
Config Devices Sde - sdf
Instance
Config Devices Sdf - sdg
Instance
Config Devices Sdg - sdh
Instance
Config Devices Sdh
- sda
Dict[Instance
Config Devices Sda] …
sdh- (Optional) The SDA-SDH slots, represent the Linux block device nodes for the first 8 disks attached to the Linode. Each device must be suplied sequentially. The device can be either a Disk or a Volume identified bydisk_labelorvolume_id. Only one disk identifier is permitted per slot. Devices mapped fromsdethroughsdhare unavailable in"fullvirt"virt_mode.- sdb
Dict[Instance
Config Devices Sdb] - sdc
Dict[Instance
Config Devices Sdc] - sdd
Dict[Instance
Config Devices Sdd] - sde
Dict[Instance
Config Devices Sde] - sdf
Dict[Instance
Config Devices Sdf] - sdg
Dict[Instance
Config Devices Sdg] - sdh
Dict[Instance
Config Devices Sdh]
InstanceConfigDevicesSda
InstanceConfigDevicesSdb
InstanceConfigDevicesSdc
InstanceConfigDevicesSdd
InstanceConfigDevicesSde
InstanceConfigDevicesSdf
InstanceConfigDevicesSdg
InstanceConfigDevicesSdh
InstanceConfigHelpers
- Devtmpfs
Automount bool - Distro bool
Controls the behavior of the Linode Config’s Distribution Helper setting.
- Modules
Dep bool Creates a modules dependency file for the Kernel you run.
- Network bool
Controls the behavior of the Linode Config’s Network Helper setting, used to automatically configure additional IP addresses assigned to this instance.
- Updatedb
Disabled bool Disables updatedb cron job to avoid disk thrashing.
- Devtmpfs
Automount bool - Distro bool
Controls the behavior of the Linode Config’s Distribution Helper setting.
- Modules
Dep bool Creates a modules dependency file for the Kernel you run.
- Network bool
Controls the behavior of the Linode Config’s Network Helper setting, used to automatically configure additional IP addresses assigned to this instance.
- Updatedb
Disabled bool Disables updatedb cron job to avoid disk thrashing.
- devtmpfs
Automount boolean - distro boolean
Controls the behavior of the Linode Config’s Distribution Helper setting.
- modules
Dep boolean Creates a modules dependency file for the Kernel you run.
- network boolean
Controls the behavior of the Linode Config’s Network Helper setting, used to automatically configure additional IP addresses assigned to this instance.
- updatedb
Disabled boolean Disables updatedb cron job to avoid disk thrashing.
- devtmpfs
Automount bool - distro bool
Controls the behavior of the Linode Config’s Distribution Helper setting.
- modules
Dep bool Creates a modules dependency file for the Kernel you run.
- network bool
Controls the behavior of the Linode Config’s Network Helper setting, used to automatically configure additional IP addresses assigned to this instance.
- updatedb
Disabled bool Disables updatedb cron job to avoid disk thrashing.
InstanceDisk
- Label string
The Config’s label for display purposes. Also used by
boot_config_label.- Size int
The size of the Disk in MB.
- List<string>
A list of SSH public keys to deploy for the root user on the newly created Linode. Only accepted if
imageis provided. This value can not be imported. Changingauthorized_keysforces the creation of a new Linode Instance.- List<string>
A list of Linode usernames. If the usernames have associated SSH keys, the keys will be appended to the
rootuser’s~/.ssh/authorized_keysfile automatically. This value can not be imported. Changingauthorized_usersforces the creation of a new Linode Instance.- Filesystem string
The Disk filesystem can be one of:
"raw","swap","ext3","ext4", or"initrd"which has a max size of 32mb and can be used in the configinitrd(not currently supported in this provider).- Id int
The ID of the disk in the Linode API.
- Image string
An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with private/. See /images for more information on the Images available for you to use. Examples are
linode/debian9,linode/fedora28,linode/ubuntu16.04lts,linode/arch, andprivate/12345. See all images here. Changingimageforces the creation of a new Linode Instance.- Read
Only bool - Root
Pass string The initial password for the
rootuser account. This value can not be imported. Changingroot_passforces the creation of a new Linode Instance. If omitted, a random password will be generated but will not be stored in state.- Stackscript
Data Dictionary<string, object> An object containing responses to any User Defined Fields present in the StackScript being deployed to this Linode. Only accepted if ‘stackscript_id’ is given. The required values depend on the StackScript being deployed. This value can not be imported. Changing
stackscript_dataforces the creation of a new Linode Instance.- Stackscript
Id int The StackScript to deploy to the newly created Linode. If provided, ‘image’ must also be provided, and must be an Image that is compatible with this StackScript. This value can not be imported. Changing
stackscript_idforces the creation of a new Linode Instance.
- Label string
The Config’s label for display purposes. Also used by
boot_config_label.- Size int
The size of the Disk in MB.
- []string
A list of SSH public keys to deploy for the root user on the newly created Linode. Only accepted if
imageis provided. This value can not be imported. Changingauthorized_keysforces the creation of a new Linode Instance.- []string
A list of Linode usernames. If the usernames have associated SSH keys, the keys will be appended to the
rootuser’s~/.ssh/authorized_keysfile automatically. This value can not be imported. Changingauthorized_usersforces the creation of a new Linode Instance.- Filesystem string
The Disk filesystem can be one of:
"raw","swap","ext3","ext4", or"initrd"which has a max size of 32mb and can be used in the configinitrd(not currently supported in this provider).- Id int
The ID of the disk in the Linode API.
- Image string
An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with private/. See /images for more information on the Images available for you to use. Examples are
linode/debian9,linode/fedora28,linode/ubuntu16.04lts,linode/arch, andprivate/12345. See all images here. Changingimageforces the creation of a new Linode Instance.- Read
Only bool - Root
Pass string The initial password for the
rootuser account. This value can not be imported. Changingroot_passforces the creation of a new Linode Instance. If omitted, a random password will be generated but will not be stored in state.- Stackscript
Data map[string]interface{} An object containing responses to any User Defined Fields present in the StackScript being deployed to this Linode. Only accepted if ‘stackscript_id’ is given. The required values depend on the StackScript being deployed. This value can not be imported. Changing
stackscript_dataforces the creation of a new Linode Instance.- Stackscript
Id int The StackScript to deploy to the newly created Linode. If provided, ‘image’ must also be provided, and must be an Image that is compatible with this StackScript. This value can not be imported. Changing
stackscript_idforces the creation of a new Linode Instance.
- label string
The Config’s label for display purposes. Also used by
boot_config_label.- size number
The size of the Disk in MB.
- string[]
A list of SSH public keys to deploy for the root user on the newly created Linode. Only accepted if
imageis provided. This value can not be imported. Changingauthorized_keysforces the creation of a new Linode Instance.- string[]
A list of Linode usernames. If the usernames have associated SSH keys, the keys will be appended to the
rootuser’s~/.ssh/authorized_keysfile automatically. This value can not be imported. Changingauthorized_usersforces the creation of a new Linode Instance.- filesystem string
The Disk filesystem can be one of:
"raw","swap","ext3","ext4", or"initrd"which has a max size of 32mb and can be used in the configinitrd(not currently supported in this provider).- id number
The ID of the disk in the Linode API.
- image string
An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with private/. See /images for more information on the Images available for you to use. Examples are
linode/debian9,linode/fedora28,linode/ubuntu16.04lts,linode/arch, andprivate/12345. See all images here. Changingimageforces the creation of a new Linode Instance.- read
Only boolean - root
Pass string The initial password for the
rootuser account. This value can not be imported. Changingroot_passforces the creation of a new Linode Instance. If omitted, a random password will be generated but will not be stored in state.- stackscript
Data {[key: string]: any} An object containing responses to any User Defined Fields present in the StackScript being deployed to this Linode. Only accepted if ‘stackscript_id’ is given. The required values depend on the StackScript being deployed. This value can not be imported. Changing
stackscript_dataforces the creation of a new Linode Instance.- stackscript
Id number The StackScript to deploy to the newly created Linode. If provided, ‘image’ must also be provided, and must be an Image that is compatible with this StackScript. This value can not be imported. Changing
stackscript_idforces the creation of a new Linode Instance.
- label str
The Config’s label for display purposes. Also used by
boot_config_label.- size float
The size of the Disk in MB.
- List[str]
A list of SSH public keys to deploy for the root user on the newly created Linode. Only accepted if
imageis provided. This value can not be imported. Changingauthorized_keysforces the creation of a new Linode Instance.- List[str]
A list of Linode usernames. If the usernames have associated SSH keys, the keys will be appended to the
rootuser’s~/.ssh/authorized_keysfile automatically. This value can not be imported. Changingauthorized_usersforces the creation of a new Linode Instance.- filesystem str
The Disk filesystem can be one of:
"raw","swap","ext3","ext4", or"initrd"which has a max size of 32mb and can be used in the configinitrd(not currently supported in this provider).- id float
The ID of the disk in the Linode API.
- image str
An Image ID to deploy the Disk from. Official Linode Images start with linode/, while your Images start with private/. See /images for more information on the Images available for you to use. Examples are
linode/debian9,linode/fedora28,linode/ubuntu16.04lts,linode/arch, andprivate/12345. See all images here. Changingimageforces the creation of a new Linode Instance.- read
Only bool - root_
pass str The initial password for the
rootuser account. This value can not be imported. Changingroot_passforces the creation of a new Linode Instance. If omitted, a random password will be generated but will not be stored in state.- stackscript_
data Dict[str, Any] An object containing responses to any User Defined Fields present in the StackScript being deployed to this Linode. Only accepted if ‘stackscript_id’ is given. The required values depend on the StackScript being deployed. This value can not be imported. Changing
stackscript_dataforces the creation of a new Linode Instance.- stackscript_
id float The StackScript to deploy to the newly created Linode. If provided, ‘image’ must also be provided, and must be an Image that is compatible with this StackScript. This value can not be imported. Changing
stackscript_idforces the creation of a new Linode Instance.
InstanceSpecs
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.