1. Packages
  2. Linode Provider
  3. API Docs
  4. StackScript
Linode v4.37.0 published on Thursday, Apr 10, 2025 by Pulumi

linode.StackScript

Explore with Pulumi AI

Provides a Linode StackScript resource. This can be used to create, modify, and delete Linode StackScripts. StackScripts are private or public managed scripts which run within an instance during startup. StackScripts can include variables whose values are specified when the Instance is created.

For more information, see Automate Deployment with StackScripts and the Linode APIv4 docs.

Example Usage

The following example shows how one might use this resource to configure a StackScript attached to a Linode Instance. As shown below, StackScripts must begin with a shebang (#!). The <UDF ...> element provided in the Bash comment block defines a variable whose value is provided when creating the Instance (or disk) using the stackscript_data field.

import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";

const foo = new linode.StackScript("foo", {
    label: "foo",
    description: "Installs a Package",
    script: `#!/bin/bash
# <UDF name="package" label="System Package to Install" example="nginx" default="">
apt-get -q update && apt-get -q -y install PACKAGE
`,
    images: [
        "linode/ubuntu22.04",
        "linode/ubuntu20.04",
    ],
    revNote: "initial version",
});
const fooInstance = new linode.Instance("foo", {
    image: "linode/ubuntu22.04",
    label: "foo",
    region: "us-east",
    type: "g6-nanode-1",
    authorizedKeys: ["..."],
    rootPass: "...",
    stackscriptId: foo.id,
    stackscriptData: {
        "package": "nginx",
    },
});
Copy
import pulumi
import pulumi_linode as linode

foo = linode.StackScript("foo",
    label="foo",
    description="Installs a Package",
    script="""#!/bin/bash
# <UDF name="package" label="System Package to Install" example="nginx" default="">
apt-get -q update && apt-get -q -y install $PACKAGE
""",
    images=[
        "linode/ubuntu22.04",
        "linode/ubuntu20.04",
    ],
    rev_note="initial version")
foo_instance = linode.Instance("foo",
    image="linode/ubuntu22.04",
    label="foo",
    region="us-east",
    type="g6-nanode-1",
    authorized_keys=["..."],
    root_pass="...",
    stackscript_id=foo.id,
    stackscript_data={
        "package": "nginx",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-linode/sdk/v4/go/linode"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		foo, err := linode.NewStackScript(ctx, "foo", &linode.StackScriptArgs{
			Label:       pulumi.String("foo"),
			Description: pulumi.String("Installs a Package"),
			Script:      pulumi.String("#!/bin/bash\n# <UDF name=\"package\" label=\"System Package to Install\" example=\"nginx\" default=\"\">\napt-get -q update && apt-get -q -y install $PACKAGE\n"),
			Images: pulumi.StringArray{
				pulumi.String("linode/ubuntu22.04"),
				pulumi.String("linode/ubuntu20.04"),
			},
			RevNote: pulumi.String("initial version"),
		})
		if err != nil {
			return err
		}
		_, err = linode.NewInstance(ctx, "foo", &linode.InstanceArgs{
			Image:  pulumi.String("linode/ubuntu22.04"),
			Label:  pulumi.String("foo"),
			Region: pulumi.String("us-east"),
			Type:   pulumi.String("g6-nanode-1"),
			AuthorizedKeys: pulumi.StringArray{
				pulumi.String("..."),
			},
			RootPass:      pulumi.String("..."),
			StackscriptId: foo.ID(),
			StackscriptData: pulumi.StringMap{
				"package": pulumi.String("nginx"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Linode = Pulumi.Linode;

return await Deployment.RunAsync(() => 
{
    var foo = new Linode.StackScript("foo", new()
    {
        Label = "foo",
        Description = "Installs a Package",
        Script = @"#!/bin/bash
# <UDF name=""package"" label=""System Package to Install"" example=""nginx"" default="""">
apt-get -q update && apt-get -q -y install $PACKAGE
",
        Images = new[]
        {
            "linode/ubuntu22.04",
            "linode/ubuntu20.04",
        },
        RevNote = "initial version",
    });

    var fooInstance = new Linode.Instance("foo", new()
    {
        Image = "linode/ubuntu22.04",
        Label = "foo",
        Region = "us-east",
        Type = "g6-nanode-1",
        AuthorizedKeys = new[]
        {
            "...",
        },
        RootPass = "...",
        StackscriptId = foo.Id,
        StackscriptData = 
        {
            { "package", "nginx" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.StackScript;
import com.pulumi.linode.StackScriptArgs;
import com.pulumi.linode.Instance;
import com.pulumi.linode.InstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var foo = new StackScript("foo", StackScriptArgs.builder()
            .label("foo")
            .description("Installs a Package")
            .script("""
#!/bin/bash
# <UDF name="package" label="System Package to Install" example="nginx" default="">
apt-get -q update && apt-get -q -y install $PACKAGE
            """)
            .images(            
                "linode/ubuntu22.04",
                "linode/ubuntu20.04")
            .revNote("initial version")
            .build());

        var fooInstance = new Instance("fooInstance", InstanceArgs.builder()
            .image("linode/ubuntu22.04")
            .label("foo")
            .region("us-east")
            .type("g6-nanode-1")
            .authorizedKeys("...")
            .rootPass("...")
            .stackscriptId(foo.id())
            .stackscriptData(Map.of("package", "nginx"))
            .build());

    }
}
Copy
resources:
  foo:
    type: linode:StackScript
    properties:
      label: foo
      description: Installs a Package
      script: |
        #!/bin/bash
        # <UDF name="package" label="System Package to Install" example="nginx" default="">
        apt-get -q update && apt-get -q -y install $PACKAGE        
      images:
        - linode/ubuntu22.04
        - linode/ubuntu20.04
      revNote: initial version
  fooInstance:
    type: linode:Instance
    name: foo
    properties:
      image: linode/ubuntu22.04
      label: foo
      region: us-east
      type: g6-nanode-1
      authorizedKeys:
        - '...'
      rootPass: '...'
      stackscriptId: ${foo.id}
      stackscriptData:
        package: nginx
Copy

Create StackScript Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new StackScript(name: string, args: StackScriptArgs, opts?: CustomResourceOptions);
@overload
def StackScript(resource_name: str,
                args: StackScriptArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def StackScript(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                description: Optional[str] = None,
                images: Optional[Sequence[str]] = None,
                label: Optional[str] = None,
                script: Optional[str] = None,
                is_public: Optional[bool] = None,
                rev_note: Optional[str] = None)
func NewStackScript(ctx *Context, name string, args StackScriptArgs, opts ...ResourceOption) (*StackScript, error)
public StackScript(string name, StackScriptArgs args, CustomResourceOptions? opts = null)
public StackScript(String name, StackScriptArgs args)
public StackScript(String name, StackScriptArgs args, CustomResourceOptions options)
type: linode:StackScript
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. StackScriptArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. StackScriptArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. StackScriptArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. StackScriptArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. StackScriptArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var stackScriptResource = new Linode.StackScript("stackScriptResource", new()
{
    Description = "string",
    Images = new[]
    {
        "string",
    },
    Label = "string",
    Script = "string",
    IsPublic = false,
    RevNote = "string",
});
Copy
example, err := linode.NewStackScript(ctx, "stackScriptResource", &linode.StackScriptArgs{
	Description: pulumi.String("string"),
	Images: pulumi.StringArray{
		pulumi.String("string"),
	},
	Label:    pulumi.String("string"),
	Script:   pulumi.String("string"),
	IsPublic: pulumi.Bool(false),
	RevNote:  pulumi.String("string"),
})
Copy
var stackScriptResource = new StackScript("stackScriptResource", StackScriptArgs.builder()
    .description("string")
    .images("string")
    .label("string")
    .script("string")
    .isPublic(false)
    .revNote("string")
    .build());
Copy
stack_script_resource = linode.StackScript("stackScriptResource",
    description="string",
    images=["string"],
    label="string",
    script="string",
    is_public=False,
    rev_note="string")
Copy
const stackScriptResource = new linode.StackScript("stackScriptResource", {
    description: "string",
    images: ["string"],
    label: "string",
    script: "string",
    isPublic: false,
    revNote: "string",
});
Copy
type: linode:StackScript
properties:
    description: string
    images:
        - string
    isPublic: false
    label: string
    revNote: string
    script: string
Copy

StackScript Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The StackScript resource accepts the following input properties:

Description This property is required. string
A description for the StackScript.
Images This property is required. List<string>
A set of Image IDs representing the Images that this StackScript is compatible for deploying with. any/all indicates that all available image distributions, including private images, are accepted. Currently private image IDs are not supported.


Label This property is required. string
The StackScript's label is for display purposes only.
Script This property is required. string
The script to execute when provisioning a new Linode with this StackScript.
IsPublic bool
This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private. Changing is_public forces the creation of a new StackScript
RevNote string
This field allows you to add notes for the set of revisions made to this StackScript.
Description This property is required. string
A description for the StackScript.
Images This property is required. []string
A set of Image IDs representing the Images that this StackScript is compatible for deploying with. any/all indicates that all available image distributions, including private images, are accepted. Currently private image IDs are not supported.


Label This property is required. string
The StackScript's label is for display purposes only.
Script This property is required. string
The script to execute when provisioning a new Linode with this StackScript.
IsPublic bool
This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private. Changing is_public forces the creation of a new StackScript
RevNote string
This field allows you to add notes for the set of revisions made to this StackScript.
description This property is required. String
A description for the StackScript.
images This property is required. List<String>
A set of Image IDs representing the Images that this StackScript is compatible for deploying with. any/all indicates that all available image distributions, including private images, are accepted. Currently private image IDs are not supported.


label This property is required. String
The StackScript's label is for display purposes only.
script This property is required. String
The script to execute when provisioning a new Linode with this StackScript.
isPublic Boolean
This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private. Changing is_public forces the creation of a new StackScript
revNote String
This field allows you to add notes for the set of revisions made to this StackScript.
description This property is required. string
A description for the StackScript.
images This property is required. string[]
A set of Image IDs representing the Images that this StackScript is compatible for deploying with. any/all indicates that all available image distributions, including private images, are accepted. Currently private image IDs are not supported.


label This property is required. string
The StackScript's label is for display purposes only.
script This property is required. string
The script to execute when provisioning a new Linode with this StackScript.
isPublic boolean
This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private. Changing is_public forces the creation of a new StackScript
revNote string
This field allows you to add notes for the set of revisions made to this StackScript.
description This property is required. str
A description for the StackScript.
images This property is required. Sequence[str]
A set of Image IDs representing the Images that this StackScript is compatible for deploying with. any/all indicates that all available image distributions, including private images, are accepted. Currently private image IDs are not supported.


label This property is required. str
The StackScript's label is for display purposes only.
script This property is required. str
The script to execute when provisioning a new Linode with this StackScript.
is_public bool
This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private. Changing is_public forces the creation of a new StackScript
rev_note str
This field allows you to add notes for the set of revisions made to this StackScript.
description This property is required. String
A description for the StackScript.
images This property is required. List<String>
A set of Image IDs representing the Images that this StackScript is compatible for deploying with. any/all indicates that all available image distributions, including private images, are accepted. Currently private image IDs are not supported.


label This property is required. String
The StackScript's label is for display purposes only.
script This property is required. String
The script to execute when provisioning a new Linode with this StackScript.
isPublic Boolean
This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private. Changing is_public forces the creation of a new StackScript
revNote String
This field allows you to add notes for the set of revisions made to this StackScript.

Outputs

All input properties are implicitly available as output properties. Additionally, the StackScript resource produces the following output properties:

Created string
The date this StackScript was created.
DeploymentsActive int
Count of currently active, deployed Linodes created from this StackScript.
DeploymentsTotal int
The total number of times this StackScript has been deployed.
Id string
The provider-assigned unique ID for this managed resource.
Updated string
The date this StackScript was updated.
UserDefinedFields List<StackScriptUserDefinedField>
This is a list of fields defined with a special syntax inside this StackScript that allow for supplying customized parameters during deployment.
UserGravatarId string
The Gravatar ID for the User who created the StackScript.
Username string
The User who created the StackScript.
Created string
The date this StackScript was created.
DeploymentsActive int
Count of currently active, deployed Linodes created from this StackScript.
DeploymentsTotal int
The total number of times this StackScript has been deployed.
Id string
The provider-assigned unique ID for this managed resource.
Updated string
The date this StackScript was updated.
UserDefinedFields []StackScriptUserDefinedField
This is a list of fields defined with a special syntax inside this StackScript that allow for supplying customized parameters during deployment.
UserGravatarId string
The Gravatar ID for the User who created the StackScript.
Username string
The User who created the StackScript.
created String
The date this StackScript was created.
deploymentsActive Integer
Count of currently active, deployed Linodes created from this StackScript.
deploymentsTotal Integer
The total number of times this StackScript has been deployed.
id String
The provider-assigned unique ID for this managed resource.
updated String
The date this StackScript was updated.
userDefinedFields List<StackScriptUserDefinedField>
This is a list of fields defined with a special syntax inside this StackScript that allow for supplying customized parameters during deployment.
userGravatarId String
The Gravatar ID for the User who created the StackScript.
username String
The User who created the StackScript.
created string
The date this StackScript was created.
deploymentsActive number
Count of currently active, deployed Linodes created from this StackScript.
deploymentsTotal number
The total number of times this StackScript has been deployed.
id string
The provider-assigned unique ID for this managed resource.
updated string
The date this StackScript was updated.
userDefinedFields StackScriptUserDefinedField[]
This is a list of fields defined with a special syntax inside this StackScript that allow for supplying customized parameters during deployment.
userGravatarId string
The Gravatar ID for the User who created the StackScript.
username string
The User who created the StackScript.
created str
The date this StackScript was created.
deployments_active int
Count of currently active, deployed Linodes created from this StackScript.
deployments_total int
The total number of times this StackScript has been deployed.
id str
The provider-assigned unique ID for this managed resource.
updated str
The date this StackScript was updated.
user_defined_fields Sequence[StackScriptUserDefinedField]
This is a list of fields defined with a special syntax inside this StackScript that allow for supplying customized parameters during deployment.
user_gravatar_id str
The Gravatar ID for the User who created the StackScript.
username str
The User who created the StackScript.
created String
The date this StackScript was created.
deploymentsActive Number
Count of currently active, deployed Linodes created from this StackScript.
deploymentsTotal Number
The total number of times this StackScript has been deployed.
id String
The provider-assigned unique ID for this managed resource.
updated String
The date this StackScript was updated.
userDefinedFields List<Property Map>
This is a list of fields defined with a special syntax inside this StackScript that allow for supplying customized parameters during deployment.
userGravatarId String
The Gravatar ID for the User who created the StackScript.
username String
The User who created the StackScript.

Look up Existing StackScript Resource

Get an existing StackScript 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?: StackScriptState, opts?: CustomResourceOptions): StackScript
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created: Optional[str] = None,
        deployments_active: Optional[int] = None,
        deployments_total: Optional[int] = None,
        description: Optional[str] = None,
        images: Optional[Sequence[str]] = None,
        is_public: Optional[bool] = None,
        label: Optional[str] = None,
        rev_note: Optional[str] = None,
        script: Optional[str] = None,
        updated: Optional[str] = None,
        user_defined_fields: Optional[Sequence[StackScriptUserDefinedFieldArgs]] = None,
        user_gravatar_id: Optional[str] = None,
        username: Optional[str] = None) -> StackScript
func GetStackScript(ctx *Context, name string, id IDInput, state *StackScriptState, opts ...ResourceOption) (*StackScript, error)
public static StackScript Get(string name, Input<string> id, StackScriptState? state, CustomResourceOptions? opts = null)
public static StackScript get(String name, Output<String> id, StackScriptState state, CustomResourceOptions options)
resources:  _:    type: linode:StackScript    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Created string
The date this StackScript was created.
DeploymentsActive int
Count of currently active, deployed Linodes created from this StackScript.
DeploymentsTotal int
The total number of times this StackScript has been deployed.
Description string
A description for the StackScript.
Images List<string>
A set of Image IDs representing the Images that this StackScript is compatible for deploying with. any/all indicates that all available image distributions, including private images, are accepted. Currently private image IDs are not supported.


IsPublic bool
This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private. Changing is_public forces the creation of a new StackScript
Label string
The StackScript's label is for display purposes only.
RevNote string
This field allows you to add notes for the set of revisions made to this StackScript.
Script string
The script to execute when provisioning a new Linode with this StackScript.
Updated string
The date this StackScript was updated.
UserDefinedFields List<StackScriptUserDefinedField>
This is a list of fields defined with a special syntax inside this StackScript that allow for supplying customized parameters during deployment.
UserGravatarId string
The Gravatar ID for the User who created the StackScript.
Username string
The User who created the StackScript.
Created string
The date this StackScript was created.
DeploymentsActive int
Count of currently active, deployed Linodes created from this StackScript.
DeploymentsTotal int
The total number of times this StackScript has been deployed.
Description string
A description for the StackScript.
Images []string
A set of Image IDs representing the Images that this StackScript is compatible for deploying with. any/all indicates that all available image distributions, including private images, are accepted. Currently private image IDs are not supported.


IsPublic bool
This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private. Changing is_public forces the creation of a new StackScript
Label string
The StackScript's label is for display purposes only.
RevNote string
This field allows you to add notes for the set of revisions made to this StackScript.
Script string
The script to execute when provisioning a new Linode with this StackScript.
Updated string
The date this StackScript was updated.
UserDefinedFields []StackScriptUserDefinedFieldArgs
This is a list of fields defined with a special syntax inside this StackScript that allow for supplying customized parameters during deployment.
UserGravatarId string
The Gravatar ID for the User who created the StackScript.
Username string
The User who created the StackScript.
created String
The date this StackScript was created.
deploymentsActive Integer
Count of currently active, deployed Linodes created from this StackScript.
deploymentsTotal Integer
The total number of times this StackScript has been deployed.
description String
A description for the StackScript.
images List<String>
A set of Image IDs representing the Images that this StackScript is compatible for deploying with. any/all indicates that all available image distributions, including private images, are accepted. Currently private image IDs are not supported.


isPublic Boolean
This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private. Changing is_public forces the creation of a new StackScript
label String
The StackScript's label is for display purposes only.
revNote String
This field allows you to add notes for the set of revisions made to this StackScript.
script String
The script to execute when provisioning a new Linode with this StackScript.
updated String
The date this StackScript was updated.
userDefinedFields List<StackScriptUserDefinedField>
This is a list of fields defined with a special syntax inside this StackScript that allow for supplying customized parameters during deployment.
userGravatarId String
The Gravatar ID for the User who created the StackScript.
username String
The User who created the StackScript.
created string
The date this StackScript was created.
deploymentsActive number
Count of currently active, deployed Linodes created from this StackScript.
deploymentsTotal number
The total number of times this StackScript has been deployed.
description string
A description for the StackScript.
images string[]
A set of Image IDs representing the Images that this StackScript is compatible for deploying with. any/all indicates that all available image distributions, including private images, are accepted. Currently private image IDs are not supported.


isPublic boolean
This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private. Changing is_public forces the creation of a new StackScript
label string
The StackScript's label is for display purposes only.
revNote string
This field allows you to add notes for the set of revisions made to this StackScript.
script string
The script to execute when provisioning a new Linode with this StackScript.
updated string
The date this StackScript was updated.
userDefinedFields StackScriptUserDefinedField[]
This is a list of fields defined with a special syntax inside this StackScript that allow for supplying customized parameters during deployment.
userGravatarId string
The Gravatar ID for the User who created the StackScript.
username string
The User who created the StackScript.
created str
The date this StackScript was created.
deployments_active int
Count of currently active, deployed Linodes created from this StackScript.
deployments_total int
The total number of times this StackScript has been deployed.
description str
A description for the StackScript.
images Sequence[str]
A set of Image IDs representing the Images that this StackScript is compatible for deploying with. any/all indicates that all available image distributions, including private images, are accepted. Currently private image IDs are not supported.


is_public bool
This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private. Changing is_public forces the creation of a new StackScript
label str
The StackScript's label is for display purposes only.
rev_note str
This field allows you to add notes for the set of revisions made to this StackScript.
script str
The script to execute when provisioning a new Linode with this StackScript.
updated str
The date this StackScript was updated.
user_defined_fields Sequence[StackScriptUserDefinedFieldArgs]
This is a list of fields defined with a special syntax inside this StackScript that allow for supplying customized parameters during deployment.
user_gravatar_id str
The Gravatar ID for the User who created the StackScript.
username str
The User who created the StackScript.
created String
The date this StackScript was created.
deploymentsActive Number
Count of currently active, deployed Linodes created from this StackScript.
deploymentsTotal Number
The total number of times this StackScript has been deployed.
description String
A description for the StackScript.
images List<String>
A set of Image IDs representing the Images that this StackScript is compatible for deploying with. any/all indicates that all available image distributions, including private images, are accepted. Currently private image IDs are not supported.


isPublic Boolean
This determines whether other users can use your StackScript. Once a StackScript is made public, it cannot be made private. Changing is_public forces the creation of a new StackScript
label String
The StackScript's label is for display purposes only.
revNote String
This field allows you to add notes for the set of revisions made to this StackScript.
script String
The script to execute when provisioning a new Linode with this StackScript.
updated String
The date this StackScript was updated.
userDefinedFields List<Property Map>
This is a list of fields defined with a special syntax inside this StackScript that allow for supplying customized parameters during deployment.
userGravatarId String
The Gravatar ID for the User who created the StackScript.
username String
The User who created the StackScript.

Supporting Types

StackScriptUserDefinedField
, StackScriptUserDefinedFieldArgs

Default This property is required. string
The default value. If not specified, this value will be used.
Example This property is required. string
An example value for the field.
Label This property is required. string
The StackScript's label is for display purposes only.
ManyOf This property is required. string
A list of acceptable values for the field in any quantity, combination or order.
Name This property is required. string
The name of the field.
OneOf This property is required. string
A list of acceptable single values for the field.
Default This property is required. string
The default value. If not specified, this value will be used.
Example This property is required. string
An example value for the field.
Label This property is required. string
The StackScript's label is for display purposes only.
ManyOf This property is required. string
A list of acceptable values for the field in any quantity, combination or order.
Name This property is required. string
The name of the field.
OneOf This property is required. string
A list of acceptable single values for the field.
default_ This property is required. String
The default value. If not specified, this value will be used.
example This property is required. String
An example value for the field.
label This property is required. String
The StackScript's label is for display purposes only.
manyOf This property is required. String
A list of acceptable values for the field in any quantity, combination or order.
name This property is required. String
The name of the field.
oneOf This property is required. String
A list of acceptable single values for the field.
default This property is required. string
The default value. If not specified, this value will be used.
example This property is required. string
An example value for the field.
label This property is required. string
The StackScript's label is for display purposes only.
manyOf This property is required. string
A list of acceptable values for the field in any quantity, combination or order.
name This property is required. string
The name of the field.
oneOf This property is required. string
A list of acceptable single values for the field.
default This property is required. str
The default value. If not specified, this value will be used.
example This property is required. str
An example value for the field.
label This property is required. str
The StackScript's label is for display purposes only.
many_of This property is required. str
A list of acceptable values for the field in any quantity, combination or order.
name This property is required. str
The name of the field.
one_of This property is required. str
A list of acceptable single values for the field.
default This property is required. String
The default value. If not specified, this value will be used.
example This property is required. String
An example value for the field.
label This property is required. String
The StackScript's label is for display purposes only.
manyOf This property is required. String
A list of acceptable values for the field in any quantity, combination or order.
name This property is required. String
The name of the field.
oneOf This property is required. String
A list of acceptable single values for the field.

Import

Linodes StackScripts can be imported using the Linode StackScript id, e.g.

$ pulumi import linode:index/stackScript:StackScript mystackscript 1234567
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Linode pulumi/pulumi-linode
License
Apache-2.0
Notes
This Pulumi package is based on the linode Terraform Provider.