1. Registry
  2. Packages
  3. Snowflake Provider
  4. API Docs
  5. CodeBundle
Viewing docs for Snowflake v2.23.0
published on Friday, Nov 6, 2026 by Pulumi
snowflake logo
Viewing docs for Snowflake v2.23.0
published on Friday, Nov 6, 2026 by Pulumi

    Caution: Preview Feature This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to previewFeaturesEnabled field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.

    Resource used to manage code bundles. For more information, check code bundle documentation.

    Example Usage

    Note Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult identifiers guide.

    import * as pulumi from "@pulumi/pulumi";
    import * as snowflake from "@pulumi/snowflake";
    
    //# Minimal
    // from is ForceNew. It is a snow://workspace/... URL, or an internal or temporary stage reference.
    const basic = new snowflake.CodeBundle("basic", {
        database: "database_name",
        schema: "schema_name",
        name: "code_bundle_name",
        from: `@${example.fullyQualifiedName}`,
    });
    //# Complete
    const complete = new snowflake.CodeBundle("complete", {
        database: "database_name",
        schema: "schema_name",
        name: "code_bundle_name",
        from: `@${example.fullyQualifiedName}`,
        comment: "My code bundle",
    });
    
    import pulumi
    import pulumi_snowflake as snowflake
    
    ## Minimal
    # from is ForceNew. It is a snow://workspace/... URL, or an internal or temporary stage reference.
    basic = snowflake.CodeBundle("basic",
        database="database_name",
        schema="schema_name",
        name="code_bundle_name",
        from_=f"@{example['fullyQualifiedName']}")
    ## Complete
    complete = snowflake.CodeBundle("complete",
        database="database_name",
        schema="schema_name",
        name="code_bundle_name",
        from_=f"@{example['fullyQualifiedName']}",
        comment="My code bundle")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-snowflake/sdk/v2/go/snowflake"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		//# Minimal
    		// from is ForceNew. It is a snow://workspace/... URL, or an internal or temporary stage reference.
    		_, err := snowflake.NewCodeBundle(ctx, "basic", &snowflake.CodeBundleArgs{
    			Database: pulumi.String("database_name"),
    			Schema:   pulumi.String("schema_name"),
    			Name:     pulumi.String("code_bundle_name"),
    			From:     pulumi.Sprintf("@%v", example.FullyQualifiedName),
    		})
    		if err != nil {
    			return err
    		}
    		//# Complete
    		_, err = snowflake.NewCodeBundle(ctx, "complete", &snowflake.CodeBundleArgs{
    			Database: pulumi.String("database_name"),
    			Schema:   pulumi.String("schema_name"),
    			Name:     pulumi.String("code_bundle_name"),
    			From:     pulumi.Sprintf("@%v", example.FullyQualifiedName),
    			Comment:  pulumi.String("My code bundle"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Snowflake = Pulumi.Snowflake;
    
    return await Deployment.RunAsync(() => 
    {
        //# Minimal
        // from is ForceNew. It is a snow://workspace/... URL, or an internal or temporary stage reference.
        var basic = new Snowflake.CodeBundle("basic", new()
        {
            Database = "database_name",
            Schema = "schema_name",
            Name = "code_bundle_name",
            From = $"@{example.FullyQualifiedName}",
        });
    
        //# Complete
        var complete = new Snowflake.CodeBundle("complete", new()
        {
            Database = "database_name",
            Schema = "schema_name",
            Name = "code_bundle_name",
            From = $"@{example.FullyQualifiedName}",
            Comment = "My code bundle",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.snowflake.CodeBundle;
    import com.pulumi.snowflake.CodeBundleArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            //# Minimal
            // from is ForceNew. It is a snow://workspace/... URL, or an internal or temporary stage reference.
            var basic = new CodeBundle("basic", CodeBundleArgs.builder()
                .database("database_name")
                .schema("schema_name")
                .name("code_bundle_name")
                .from(String.format("@%s", example.get("fullyQualifiedName")))
                .build());
    
            //# Complete
            var complete = new CodeBundle("complete", CodeBundleArgs.builder()
                .database("database_name")
                .schema("schema_name")
                .name("code_bundle_name")
                .from(String.format("@%s", example.get("fullyQualifiedName")))
                .comment("My code bundle")
                .build());
    
        }
    }
    
    resources:
      ## Minimal
      # from is ForceNew. It is a snow://workspace/... URL, or an internal or temporary stage reference.
      basic:
        type: snowflake:CodeBundle
        properties:
          database: database_name
          schema: schema_name
          name: code_bundle_name
          from: '@${example.fullyQualifiedName}'
      ## Complete
      complete:
        type: snowflake:CodeBundle
        properties:
          database: database_name
          schema: schema_name
          name: code_bundle_name
          from: '@${example.fullyQualifiedName}'
          comment: My code bundle
    
    terraform {
      required_providers {
        snowflake = {
          source = "pulumi/snowflake"
        }
      }
    }
    
    ## Minimal
    # from is ForceNew. It is a snow://workspace/... URL, or an internal or temporary stage reference.
    resource "snowflake_code_bundle" "basic" {
      lifecycle {
        create_before_destroy = true
      }
      database = "database_name"
      schema   = "schema_name"
      name     = "code_bundle_name"
      from     ="@${example.fullyQualifiedName}"
    }
    ## Complete
    resource "snowflake_code_bundle" "complete" {
      lifecycle {
        create_before_destroy = true
      }
      database = "database_name"
      schema   = "schema_name"
      name     = "code_bundle_name"
      from     ="@${example.fullyQualifiedName}"
      comment  = "My code bundle"
    }
    

    Note If a field has a default value, it is shown next to the type in the schema.

    Create CodeBundle Resource

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

    Constructor syntax

    new CodeBundle(name: string, args: CodeBundleArgs, opts?: CustomResourceOptions);
    @overload
    def CodeBundle(resource_name: str,
                   args: CodeBundleArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def CodeBundle(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   database: Optional[str] = None,
                   from_: Optional[str] = None,
                   schema: Optional[str] = None,
                   comment: Optional[str] = None,
                   name: Optional[str] = None)
    func NewCodeBundle(ctx *Context, name string, args CodeBundleArgs, opts ...ResourceOption) (*CodeBundle, error)
    public CodeBundle(string name, CodeBundleArgs args, CustomResourceOptions? opts = null)
    public CodeBundle(String name, CodeBundleArgs args)
    public CodeBundle(String name, CodeBundleArgs args, CustomResourceOptions options)
    
    type: snowflake:CodeBundle
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "snowflake_code_bundle" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args CodeBundleArgs
    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 CodeBundleArgs
    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 CodeBundleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CodeBundleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CodeBundleArgs
    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 codeBundleResource = new Snowflake.CodeBundle("codeBundleResource", new()
    {
        Database = "string",
        From = "string",
        Schema = "string",
        Comment = "string",
        Name = "string",
    });
    
    example, err := snowflake.NewCodeBundle(ctx, "codeBundleResource", &snowflake.CodeBundleArgs{
    	Database: pulumi.String("string"),
    	From:     pulumi.String("string"),
    	Schema:   pulumi.String("string"),
    	Comment:  pulumi.String("string"),
    	Name:     pulumi.String("string"),
    })
    
    resource "snowflake_code_bundle" "codeBundleResource" {
      lifecycle {
        create_before_destroy = true
      }
      database = "string"
      from     = "string"
      schema   = "string"
      comment  = "string"
      name     = "string"
    }
    
    var codeBundleResource = new CodeBundle("codeBundleResource", CodeBundleArgs.builder()
        .database("string")
        .from("string")
        .schema("string")
        .comment("string")
        .name("string")
        .build());
    
    code_bundle_resource = snowflake.CodeBundle("codeBundleResource",
        database="string",
        from_="string",
        schema="string",
        comment="string",
        name="string")
    
    const codeBundleResource = new snowflake.CodeBundle("codeBundleResource", {
        database: "string",
        from: "string",
        schema: "string",
        comment: "string",
        name: "string",
    });
    
    type: snowflake:CodeBundle
    properties:
        comment: string
        database: string
        from: string
        name: string
        schema: string
    

    CodeBundle 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 CodeBundle resource accepts the following input properties:

    Database string
    The database in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    From string
    Specifies the source that backs this code bundle: a snow://workspace/... URL, or an internal or temporary stage reference. External stages are not supported.
    Schema string
    The schema in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Comment string
    Specifies a comment for the code bundle.
    Name string
    Specifies the identifier for the code bundle; must be unique for the schema in which the code bundle is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Database string
    The database in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    From string
    Specifies the source that backs this code bundle: a snow://workspace/... URL, or an internal or temporary stage reference. External stages are not supported.
    Schema string
    The schema in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Comment string
    Specifies a comment for the code bundle.
    Name string
    Specifies the identifier for the code bundle; must be unique for the schema in which the code bundle is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    database string
    The database in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    from string
    Specifies the source that backs this code bundle: a snow://workspace/... URL, or an internal or temporary stage reference. External stages are not supported.
    schema string
    The schema in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    comment string
    Specifies a comment for the code bundle.
    name string
    Specifies the identifier for the code bundle; must be unique for the schema in which the code bundle is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    database String
    The database in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    from String
    Specifies the source that backs this code bundle: a snow://workspace/... URL, or an internal or temporary stage reference. External stages are not supported.
    schema String
    The schema in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    comment String
    Specifies a comment for the code bundle.
    name String
    Specifies the identifier for the code bundle; must be unique for the schema in which the code bundle is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    database string
    The database in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    from string
    Specifies the source that backs this code bundle: a snow://workspace/... URL, or an internal or temporary stage reference. External stages are not supported.
    schema string
    The schema in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    comment string
    Specifies a comment for the code bundle.
    name string
    Specifies the identifier for the code bundle; must be unique for the schema in which the code bundle is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    database str
    The database in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    from_ str
    Specifies the source that backs this code bundle: a snow://workspace/... URL, or an internal or temporary stage reference. External stages are not supported.
    schema str
    The schema in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    comment str
    Specifies a comment for the code bundle.
    name str
    Specifies the identifier for the code bundle; must be unique for the schema in which the code bundle is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    database String
    The database in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    from String
    Specifies the source that backs this code bundle: a snow://workspace/... URL, or an internal or temporary stage reference. External stages are not supported.
    schema String
    The schema in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    comment String
    Specifies a comment for the code bundle.
    name String
    Specifies the identifier for the code bundle; must be unique for the schema in which the code bundle is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".

    Outputs

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

    DescribeOutputs List<CodeBundleDescribeOutput>
    Outputs the result of DESCRIBE CODE BUNDLE for the given code bundle.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    Id string
    The provider-assigned unique ID for this managed resource.
    ShowOutputs List<CodeBundleShowOutput>
    Outputs the result of SHOW CODE BUNDLES for the given code bundle.
    DescribeOutputs []CodeBundleDescribeOutput
    Outputs the result of DESCRIBE CODE BUNDLE for the given code bundle.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    Id string
    The provider-assigned unique ID for this managed resource.
    ShowOutputs []CodeBundleShowOutput
    Outputs the result of SHOW CODE BUNDLES for the given code bundle.
    describe_outputs list(object)
    Outputs the result of DESCRIBE CODE BUNDLE for the given code bundle.
    fully_qualified_name string
    Fully qualified name of the resource. For more information, see object name resolution.
    id string
    The provider-assigned unique ID for this managed resource.
    show_outputs list(object)
    Outputs the result of SHOW CODE BUNDLES for the given code bundle.
    describeOutputs List<CodeBundleDescribeOutput>
    Outputs the result of DESCRIBE CODE BUNDLE for the given code bundle.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    id String
    The provider-assigned unique ID for this managed resource.
    showOutputs List<CodeBundleShowOutput>
    Outputs the result of SHOW CODE BUNDLES for the given code bundle.
    describeOutputs CodeBundleDescribeOutput[]
    Outputs the result of DESCRIBE CODE BUNDLE for the given code bundle.
    fullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    id string
    The provider-assigned unique ID for this managed resource.
    showOutputs CodeBundleShowOutput[]
    Outputs the result of SHOW CODE BUNDLES for the given code bundle.
    describe_outputs Sequence[CodeBundleDescribeOutput]
    Outputs the result of DESCRIBE CODE BUNDLE for the given code bundle.
    fully_qualified_name str
    Fully qualified name of the resource. For more information, see object name resolution.
    id str
    The provider-assigned unique ID for this managed resource.
    show_outputs Sequence[CodeBundleShowOutput]
    Outputs the result of SHOW CODE BUNDLES for the given code bundle.
    describeOutputs List<Property Map>
    Outputs the result of DESCRIBE CODE BUNDLE for the given code bundle.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    id String
    The provider-assigned unique ID for this managed resource.
    showOutputs List<Property Map>
    Outputs the result of SHOW CODE BUNDLES for the given code bundle.

    Look up Existing CodeBundle Resource

    Get an existing CodeBundle 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?: CodeBundleState, opts?: CustomResourceOptions): CodeBundle
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            comment: Optional[str] = None,
            database: Optional[str] = None,
            describe_outputs: Optional[Sequence[CodeBundleDescribeOutputArgs]] = None,
            from_: Optional[str] = None,
            fully_qualified_name: Optional[str] = None,
            name: Optional[str] = None,
            schema: Optional[str] = None,
            show_outputs: Optional[Sequence[CodeBundleShowOutputArgs]] = None) -> CodeBundle
    func GetCodeBundle(ctx *Context, name string, id IDInput, state *CodeBundleState, opts ...ResourceOption) (*CodeBundle, error)
    public static CodeBundle Get(string name, Input<string> id, CodeBundleState? state, CustomResourceOptions? opts = null)
    public static CodeBundle get(String name, Output<String> id, CodeBundleState state, CustomResourceOptions options)
    resources:  _:    type: snowflake:CodeBundle    get:      id: ${id}
    import {
      to = snowflake_code_bundle.example
      id = "${id}"
    }
    
    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:
    Comment string
    Specifies a comment for the code bundle.
    Database string
    The database in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    DescribeOutputs List<CodeBundleDescribeOutput>
    Outputs the result of DESCRIBE CODE BUNDLE for the given code bundle.
    From string
    Specifies the source that backs this code bundle: a snow://workspace/... URL, or an internal or temporary stage reference. External stages are not supported.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    Name string
    Specifies the identifier for the code bundle; must be unique for the schema in which the code bundle is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Schema string
    The schema in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    ShowOutputs List<CodeBundleShowOutput>
    Outputs the result of SHOW CODE BUNDLES for the given code bundle.
    Comment string
    Specifies a comment for the code bundle.
    Database string
    The database in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    DescribeOutputs []CodeBundleDescribeOutputArgs
    Outputs the result of DESCRIBE CODE BUNDLE for the given code bundle.
    From string
    Specifies the source that backs this code bundle: a snow://workspace/... URL, or an internal or temporary stage reference. External stages are not supported.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    Name string
    Specifies the identifier for the code bundle; must be unique for the schema in which the code bundle is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Schema string
    The schema in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    ShowOutputs []CodeBundleShowOutputArgs
    Outputs the result of SHOW CODE BUNDLES for the given code bundle.
    comment string
    Specifies a comment for the code bundle.
    database string
    The database in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    describe_outputs list(object)
    Outputs the result of DESCRIBE CODE BUNDLE for the given code bundle.
    from string
    Specifies the source that backs this code bundle: a snow://workspace/... URL, or an internal or temporary stage reference. External stages are not supported.
    fully_qualified_name string
    Fully qualified name of the resource. For more information, see object name resolution.
    name string
    Specifies the identifier for the code bundle; must be unique for the schema in which the code bundle is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    schema string
    The schema in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    show_outputs list(object)
    Outputs the result of SHOW CODE BUNDLES for the given code bundle.
    comment String
    Specifies a comment for the code bundle.
    database String
    The database in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    describeOutputs List<CodeBundleDescribeOutput>
    Outputs the result of DESCRIBE CODE BUNDLE for the given code bundle.
    from String
    Specifies the source that backs this code bundle: a snow://workspace/... URL, or an internal or temporary stage reference. External stages are not supported.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    name String
    Specifies the identifier for the code bundle; must be unique for the schema in which the code bundle is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    schema String
    The schema in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    showOutputs List<CodeBundleShowOutput>
    Outputs the result of SHOW CODE BUNDLES for the given code bundle.
    comment string
    Specifies a comment for the code bundle.
    database string
    The database in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    describeOutputs CodeBundleDescribeOutput[]
    Outputs the result of DESCRIBE CODE BUNDLE for the given code bundle.
    from string
    Specifies the source that backs this code bundle: a snow://workspace/... URL, or an internal or temporary stage reference. External stages are not supported.
    fullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    name string
    Specifies the identifier for the code bundle; must be unique for the schema in which the code bundle is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    schema string
    The schema in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    showOutputs CodeBundleShowOutput[]
    Outputs the result of SHOW CODE BUNDLES for the given code bundle.
    comment str
    Specifies a comment for the code bundle.
    database str
    The database in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    describe_outputs Sequence[CodeBundleDescribeOutputArgs]
    Outputs the result of DESCRIBE CODE BUNDLE for the given code bundle.
    from_ str
    Specifies the source that backs this code bundle: a snow://workspace/... URL, or an internal or temporary stage reference. External stages are not supported.
    fully_qualified_name str
    Fully qualified name of the resource. For more information, see object name resolution.
    name str
    Specifies the identifier for the code bundle; must be unique for the schema in which the code bundle is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    schema str
    The schema in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    show_outputs Sequence[CodeBundleShowOutputArgs]
    Outputs the result of SHOW CODE BUNDLES for the given code bundle.
    comment String
    Specifies a comment for the code bundle.
    database String
    The database in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    describeOutputs List<Property Map>
    Outputs the result of DESCRIBE CODE BUNDLE for the given code bundle.
    from String
    Specifies the source that backs this code bundle: a snow://workspace/... URL, or an internal or temporary stage reference. External stages are not supported.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    name String
    Specifies the identifier for the code bundle; must be unique for the schema in which the code bundle is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    schema String
    The schema in which to create the code bundle. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    showOutputs List<Property Map>
    Outputs the result of SHOW CODE BUNDLES for the given code bundle.

    Supporting Types

    CodeBundleDescribeOutput, CodeBundleDescribeOutputArgs

    CodeBundleShowOutput, CodeBundleShowOutputArgs

    Comment string
    CreatedOn string
    DatabaseName string
    Name string
    Owner string
    SchemaName string
    Comment string
    CreatedOn string
    DatabaseName string
    Name string
    Owner string
    SchemaName string
    comment string
    created_on string
    database_name string
    name string
    owner string
    schema_name string
    comment String
    createdOn String
    databaseName String
    name String
    owner String
    schemaName String
    comment string
    createdOn string
    databaseName string
    name string
    owner string
    schemaName string
    comment String
    createdOn String
    databaseName String
    name String
    owner String
    schemaName String

    Import

    $ pulumi import snowflake:index/codeBundle:CodeBundle example '"<database_name>"."<schema_name>"."<code_bundle_name>"'
    

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

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Viewing docs for Snowflake v2.23.0
    published on Friday, Nov 6, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial