1. Packages
  2. Linode
  3. API Docs
  4. StackScript
Linode v4.22.0 published on Tuesday, Jun 25, 2024 by Pulumi

linode.StackScript

Explore with Pulumi AI

linode logo
Linode v4.22.0 published on Tuesday, Jun 25, 2024 by Pulumi

    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",
        },
    });
    
    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",
        })
    
    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.Map{
    				"package": pulumi.Any("nginx"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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" },
            },
        });
    
    });
    
    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());
    
        }
    }
    
    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
    

    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 string
    The unique name of the resource.
    args StackScriptArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args StackScriptArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StackScriptArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
    });
    
    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"),
    })
    
    var stackScriptResource = new StackScript("stackScriptResource", StackScriptArgs.builder()
        .description("string")
        .images("string")
        .label("string")
        .script("string")
        .isPublic(false)
        .revNote("string")
        .build());
    
    stack_script_resource = linode.StackScript("stackScriptResource",
        description="string",
        images=["string"],
        label="string",
        script="string",
        is_public=False,
        rev_note="string")
    
    const stackScriptResource = new linode.StackScript("stackScriptResource", {
        description: "string",
        images: ["string"],
        label: "string",
        script: "string",
        isPublic: false,
        revNote: "string",
    });
    
    type: linode:StackScript
    properties:
        description: string
        images:
            - string
        isPublic: false
        label: string
        revNote: string
        script: string
    

    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

    The StackScript resource accepts the following input properties:

    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.


    Label string
    The StackScript's label is for display purposes only.
    Script 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 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.


    Label string
    The StackScript's label is for display purposes only.
    Script 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 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.


    label String
    The StackScript's label is for display purposes only.
    script 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 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.


    label string
    The StackScript's label is for display purposes only.
    script 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 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.


    label str
    The StackScript's label is for display purposes only.
    script 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 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.


    label String
    The StackScript's label is for display purposes only.
    script 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)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    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 string
    The default value. If not specified, this value will be used.
    Example string
    An example value for the field.
    Label string
    The StackScript's label is for display purposes only.
    ManyOf string
    A list of acceptable values for the field in any quantity, combination or order.
    Name string
    The name of the field.
    OneOf string
    A list of acceptable single values for the field.
    Default string
    The default value. If not specified, this value will be used.
    Example string
    An example value for the field.
    Label string
    The StackScript's label is for display purposes only.
    ManyOf string
    A list of acceptable values for the field in any quantity, combination or order.
    Name string
    The name of the field.
    OneOf string
    A list of acceptable single values for the field.
    default_ String
    The default value. If not specified, this value will be used.
    example String
    An example value for the field.
    label String
    The StackScript's label is for display purposes only.
    manyOf String
    A list of acceptable values for the field in any quantity, combination or order.
    name String
    The name of the field.
    oneOf String
    A list of acceptable single values for the field.
    default string
    The default value. If not specified, this value will be used.
    example string
    An example value for the field.
    label string
    The StackScript's label is for display purposes only.
    manyOf string
    A list of acceptable values for the field in any quantity, combination or order.
    name string
    The name of the field.
    oneOf string
    A list of acceptable single values for the field.
    default str
    The default value. If not specified, this value will be used.
    example str
    An example value for the field.
    label str
    The StackScript's label is for display purposes only.
    many_of str
    A list of acceptable values for the field in any quantity, combination or order.
    name str
    The name of the field.
    one_of str
    A list of acceptable single values for the field.
    default String
    The default value. If not specified, this value will be used.
    example String
    An example value for the field.
    label String
    The StackScript's label is for display purposes only.
    manyOf String
    A list of acceptable values for the field in any quantity, combination or order.
    name String
    The name of the field.
    oneOf 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
    

    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.
    linode logo
    Linode v4.22.0 published on Tuesday, Jun 25, 2024 by Pulumi