1. Packages
  2. Snowflake Provider
  3. API Docs
  4. GitRepository
Snowflake v2.12.0 published on Friday, Feb 13, 2026 by Pulumi
snowflake logo
Snowflake v2.12.0 published on Friday, Feb 13, 2026 by Pulumi

    Note Note that snowflake_api_integration_resource currently does not support git_https_api type. It will be added during the resource rework. Instead, you can use execute resource.

    Resource used to manage git repositories. For more information, check git repositories 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";
    
    // basic resource
    const basic = new snowflake.GitRepository("basic", {
        database: "DATABASE",
        schema: "SCHEMA",
        name: "GIT_REPOSITORY",
        origin: "https://github.com/user/repo",
        apiIntegration: "API_INTEGRATION",
    });
    // complete resource
    const complete = new snowflake.GitRepository("complete", {
        name: "GIT_REPOSITORY",
        database: "DATABASE",
        schema: "SCHEMA",
        origin: "https://github.com/user/repo",
        apiIntegration: "API_INTEGRATION",
        gitCredentials: secretName.fullyQualifiedName,
        comment: "comment",
    });
    
    import pulumi
    import pulumi_snowflake as snowflake
    
    # basic resource
    basic = snowflake.GitRepository("basic",
        database="DATABASE",
        schema="SCHEMA",
        name="GIT_REPOSITORY",
        origin="https://github.com/user/repo",
        api_integration="API_INTEGRATION")
    # complete resource
    complete = snowflake.GitRepository("complete",
        name="GIT_REPOSITORY",
        database="DATABASE",
        schema="SCHEMA",
        origin="https://github.com/user/repo",
        api_integration="API_INTEGRATION",
        git_credentials=secret_name["fullyQualifiedName"],
        comment="comment")
    
    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 {
    		// basic resource
    		_, err := snowflake.NewGitRepository(ctx, "basic", &snowflake.GitRepositoryArgs{
    			Database:       pulumi.String("DATABASE"),
    			Schema:         pulumi.String("SCHEMA"),
    			Name:           pulumi.String("GIT_REPOSITORY"),
    			Origin:         pulumi.String("https://github.com/user/repo"),
    			ApiIntegration: pulumi.String("API_INTEGRATION"),
    		})
    		if err != nil {
    			return err
    		}
    		// complete resource
    		_, err = snowflake.NewGitRepository(ctx, "complete", &snowflake.GitRepositoryArgs{
    			Name:           pulumi.String("GIT_REPOSITORY"),
    			Database:       pulumi.String("DATABASE"),
    			Schema:         pulumi.String("SCHEMA"),
    			Origin:         pulumi.String("https://github.com/user/repo"),
    			ApiIntegration: pulumi.String("API_INTEGRATION"),
    			GitCredentials: pulumi.Any(secretName.FullyQualifiedName),
    			Comment:        pulumi.String("comment"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Snowflake = Pulumi.Snowflake;
    
    return await Deployment.RunAsync(() => 
    {
        // basic resource
        var basic = new Snowflake.GitRepository("basic", new()
        {
            Database = "DATABASE",
            Schema = "SCHEMA",
            Name = "GIT_REPOSITORY",
            Origin = "https://github.com/user/repo",
            ApiIntegration = "API_INTEGRATION",
        });
    
        // complete resource
        var complete = new Snowflake.GitRepository("complete", new()
        {
            Name = "GIT_REPOSITORY",
            Database = "DATABASE",
            Schema = "SCHEMA",
            Origin = "https://github.com/user/repo",
            ApiIntegration = "API_INTEGRATION",
            GitCredentials = secretName.FullyQualifiedName,
            Comment = "comment",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.snowflake.GitRepository;
    import com.pulumi.snowflake.GitRepositoryArgs;
    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) {
            // basic resource
            var basic = new GitRepository("basic", GitRepositoryArgs.builder()
                .database("DATABASE")
                .schema("SCHEMA")
                .name("GIT_REPOSITORY")
                .origin("https://github.com/user/repo")
                .apiIntegration("API_INTEGRATION")
                .build());
    
            // complete resource
            var complete = new GitRepository("complete", GitRepositoryArgs.builder()
                .name("GIT_REPOSITORY")
                .database("DATABASE")
                .schema("SCHEMA")
                .origin("https://github.com/user/repo")
                .apiIntegration("API_INTEGRATION")
                .gitCredentials(secretName.fullyQualifiedName())
                .comment("comment")
                .build());
    
        }
    }
    
    resources:
      # basic resource
      basic:
        type: snowflake:GitRepository
        properties:
          database: DATABASE
          schema: SCHEMA
          name: GIT_REPOSITORY
          origin: https://github.com/user/repo
          apiIntegration: API_INTEGRATION
      # complete resource
      complete:
        type: snowflake:GitRepository
        properties:
          name: GIT_REPOSITORY
          database: DATABASE
          schema: SCHEMA
          origin: https://github.com/user/repo
          apiIntegration: API_INTEGRATION
          gitCredentials: ${secretName.fullyQualifiedName}
          comment: comment
    

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

    Create GitRepository Resource

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

    Constructor syntax

    new GitRepository(name: string, args: GitRepositoryArgs, opts?: CustomResourceOptions);
    @overload
    def GitRepository(resource_name: str,
                      args: GitRepositoryArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def GitRepository(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      api_integration: Optional[str] = None,
                      database: Optional[str] = None,
                      origin: Optional[str] = None,
                      schema: Optional[str] = None,
                      comment: Optional[str] = None,
                      git_credentials: Optional[str] = None,
                      name: Optional[str] = None)
    func NewGitRepository(ctx *Context, name string, args GitRepositoryArgs, opts ...ResourceOption) (*GitRepository, error)
    public GitRepository(string name, GitRepositoryArgs args, CustomResourceOptions? opts = null)
    public GitRepository(String name, GitRepositoryArgs args)
    public GitRepository(String name, GitRepositoryArgs args, CustomResourceOptions options)
    
    type: snowflake:GitRepository
    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 GitRepositoryArgs
    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 GitRepositoryArgs
    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 GitRepositoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GitRepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GitRepositoryArgs
    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 gitRepositoryResource = new Snowflake.GitRepository("gitRepositoryResource", new()
    {
        ApiIntegration = "string",
        Database = "string",
        Origin = "string",
        Schema = "string",
        Comment = "string",
        GitCredentials = "string",
        Name = "string",
    });
    
    example, err := snowflake.NewGitRepository(ctx, "gitRepositoryResource", &snowflake.GitRepositoryArgs{
    	ApiIntegration: pulumi.String("string"),
    	Database:       pulumi.String("string"),
    	Origin:         pulumi.String("string"),
    	Schema:         pulumi.String("string"),
    	Comment:        pulumi.String("string"),
    	GitCredentials: pulumi.String("string"),
    	Name:           pulumi.String("string"),
    })
    
    var gitRepositoryResource = new GitRepository("gitRepositoryResource", GitRepositoryArgs.builder()
        .apiIntegration("string")
        .database("string")
        .origin("string")
        .schema("string")
        .comment("string")
        .gitCredentials("string")
        .name("string")
        .build());
    
    git_repository_resource = snowflake.GitRepository("gitRepositoryResource",
        api_integration="string",
        database="string",
        origin="string",
        schema="string",
        comment="string",
        git_credentials="string",
        name="string")
    
    const gitRepositoryResource = new snowflake.GitRepository("gitRepositoryResource", {
        apiIntegration: "string",
        database: "string",
        origin: "string",
        schema: "string",
        comment: "string",
        gitCredentials: "string",
        name: "string",
    });
    
    type: snowflake:GitRepository
    properties:
        apiIntegration: string
        comment: string
        database: string
        gitCredentials: string
        name: string
        origin: string
        schema: string
    

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

    ApiIntegration string
    Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
    Database string
    The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Origin string
    Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
    Schema string
    The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Comment string
    Specifies a comment for the git repository.
    GitCredentials string
    Specifies the Snowflake secret fully qualified name (e.g "\"<db_name>\".\"<schema_name>\".\"<secret_name>\"") containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
    Name string
    Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    ApiIntegration string
    Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
    Database string
    The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Origin string
    Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
    Schema string
    The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Comment string
    Specifies a comment for the git repository.
    GitCredentials string
    Specifies the Snowflake secret fully qualified name (e.g "\"<db_name>\".\"<schema_name>\".\"<secret_name>\"") containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
    Name string
    Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    apiIntegration String
    Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
    database String
    The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    origin String
    Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
    schema String
    The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    comment String
    Specifies a comment for the git repository.
    gitCredentials String
    Specifies the Snowflake secret fully qualified name (e.g "\"<db_name>\".\"<schema_name>\".\"<secret_name>\"") containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
    name String
    Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    apiIntegration string
    Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
    database string
    The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    origin string
    Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
    schema string
    The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    comment string
    Specifies a comment for the git repository.
    gitCredentials string
    Specifies the Snowflake secret fully qualified name (e.g "\"<db_name>\".\"<schema_name>\".\"<secret_name>\"") containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
    name string
    Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    api_integration str
    Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
    database str
    The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    origin str
    Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
    schema str
    The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    comment str
    Specifies a comment for the git repository.
    git_credentials str
    Specifies the Snowflake secret fully qualified name (e.g "\"<db_name>\".\"<schema_name>\".\"<secret_name>\"") containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
    name str
    Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    apiIntegration String
    Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
    database String
    The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    origin String
    Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
    schema String
    The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    comment String
    Specifies a comment for the git repository.
    gitCredentials String
    Specifies the Snowflake secret fully qualified name (e.g "\"<db_name>\".\"<schema_name>\".\"<secret_name>\"") containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
    name String
    Specifies the identifier for the git repository; must be unique for the schema in which the git repository 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 GitRepository resource produces the following output properties:

    DescribeOutputs List<GitRepositoryDescribeOutput>
    Outputs the result of DESCRIBE GIT REPOSITORY for the given git repository.
    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<GitRepositoryShowOutput>
    Outputs the result of SHOW GIT REPOSITORIES for the given git repository.
    DescribeOutputs []GitRepositoryDescribeOutput
    Outputs the result of DESCRIBE GIT REPOSITORY for the given git repository.
    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 []GitRepositoryShowOutput
    Outputs the result of SHOW GIT REPOSITORIES for the given git repository.
    describeOutputs List<GitRepositoryDescribeOutput>
    Outputs the result of DESCRIBE GIT REPOSITORY for the given git repository.
    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<GitRepositoryShowOutput>
    Outputs the result of SHOW GIT REPOSITORIES for the given git repository.
    describeOutputs GitRepositoryDescribeOutput[]
    Outputs the result of DESCRIBE GIT REPOSITORY for the given git repository.
    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 GitRepositoryShowOutput[]
    Outputs the result of SHOW GIT REPOSITORIES for the given git repository.
    describe_outputs Sequence[GitRepositoryDescribeOutput]
    Outputs the result of DESCRIBE GIT REPOSITORY for the given git repository.
    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[GitRepositoryShowOutput]
    Outputs the result of SHOW GIT REPOSITORIES for the given git repository.
    describeOutputs List<Property Map>
    Outputs the result of DESCRIBE GIT REPOSITORY for the given git repository.
    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 GIT REPOSITORIES for the given git repository.

    Look up Existing GitRepository Resource

    Get an existing GitRepository 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?: GitRepositoryState, opts?: CustomResourceOptions): GitRepository
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_integration: Optional[str] = None,
            comment: Optional[str] = None,
            database: Optional[str] = None,
            describe_outputs: Optional[Sequence[GitRepositoryDescribeOutputArgs]] = None,
            fully_qualified_name: Optional[str] = None,
            git_credentials: Optional[str] = None,
            name: Optional[str] = None,
            origin: Optional[str] = None,
            schema: Optional[str] = None,
            show_outputs: Optional[Sequence[GitRepositoryShowOutputArgs]] = None) -> GitRepository
    func GetGitRepository(ctx *Context, name string, id IDInput, state *GitRepositoryState, opts ...ResourceOption) (*GitRepository, error)
    public static GitRepository Get(string name, Input<string> id, GitRepositoryState? state, CustomResourceOptions? opts = null)
    public static GitRepository get(String name, Output<String> id, GitRepositoryState state, CustomResourceOptions options)
    resources:  _:    type: snowflake:GitRepository    get:      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:
    ApiIntegration string
    Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
    Comment string
    Specifies a comment for the git repository.
    Database string
    The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    DescribeOutputs List<GitRepositoryDescribeOutput>
    Outputs the result of DESCRIBE GIT REPOSITORY for the given git repository.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    GitCredentials string
    Specifies the Snowflake secret fully qualified name (e.g "\"<db_name>\".\"<schema_name>\".\"<secret_name>\"") containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
    Name string
    Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Origin string
    Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
    Schema string
    The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    ShowOutputs List<GitRepositoryShowOutput>
    Outputs the result of SHOW GIT REPOSITORIES for the given git repository.
    ApiIntegration string
    Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
    Comment string
    Specifies a comment for the git repository.
    Database string
    The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    DescribeOutputs []GitRepositoryDescribeOutputArgs
    Outputs the result of DESCRIBE GIT REPOSITORY for the given git repository.
    FullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    GitCredentials string
    Specifies the Snowflake secret fully qualified name (e.g "\"<db_name>\".\"<schema_name>\".\"<secret_name>\"") containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
    Name string
    Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    Origin string
    Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
    Schema string
    The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    ShowOutputs []GitRepositoryShowOutputArgs
    Outputs the result of SHOW GIT REPOSITORIES for the given git repository.
    apiIntegration String
    Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
    comment String
    Specifies a comment for the git repository.
    database String
    The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    describeOutputs List<GitRepositoryDescribeOutput>
    Outputs the result of DESCRIBE GIT REPOSITORY for the given git repository.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    gitCredentials String
    Specifies the Snowflake secret fully qualified name (e.g "\"<db_name>\".\"<schema_name>\".\"<secret_name>\"") containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
    name String
    Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    origin String
    Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
    schema String
    The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    showOutputs List<GitRepositoryShowOutput>
    Outputs the result of SHOW GIT REPOSITORIES for the given git repository.
    apiIntegration string
    Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
    comment string
    Specifies a comment for the git repository.
    database string
    The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    describeOutputs GitRepositoryDescribeOutput[]
    Outputs the result of DESCRIBE GIT REPOSITORY for the given git repository.
    fullyQualifiedName string
    Fully qualified name of the resource. For more information, see object name resolution.
    gitCredentials string
    Specifies the Snowflake secret fully qualified name (e.g "\"<db_name>\".\"<schema_name>\".\"<secret_name>\"") containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
    name string
    Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    origin string
    Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
    schema string
    The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    showOutputs GitRepositoryShowOutput[]
    Outputs the result of SHOW GIT REPOSITORIES for the given git repository.
    api_integration str
    Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
    comment str
    Specifies a comment for the git repository.
    database str
    The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    describe_outputs Sequence[GitRepositoryDescribeOutputArgs]
    Outputs the result of DESCRIBE GIT REPOSITORY for the given git repository.
    fully_qualified_name str
    Fully qualified name of the resource. For more information, see object name resolution.
    git_credentials str
    Specifies the Snowflake secret fully qualified name (e.g "\"<db_name>\".\"<schema_name>\".\"<secret_name>\"") containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
    name str
    Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    origin str
    Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
    schema str
    The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    show_outputs Sequence[GitRepositoryShowOutputArgs]
    Outputs the result of SHOW GIT REPOSITORIES for the given git repository.
    apiIntegration String
    Identifier of API INTEGRATION containing information about the remote Git repository such as allowed credentials and prefixes for target URLs.
    comment String
    Specifies a comment for the git repository.
    database String
    The database in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    describeOutputs List<Property Map>
    Outputs the result of DESCRIBE GIT REPOSITORY for the given git repository.
    fullyQualifiedName String
    Fully qualified name of the resource. For more information, see object name resolution.
    gitCredentials String
    Specifies the Snowflake secret fully qualified name (e.g "\"<db_name>\".\"<schema_name>\".\"<secret_name>\"") containing the credentials to use for authenticating with the remote Git repository. Omit this parameter to use the default secret specified by the API integration or if this integration does not require authentication.
    name String
    Specifies the identifier for the git repository; must be unique for the schema in which the git repository is created. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    origin String
    Specifies the origin URL of the remote Git repository that this Git repository clone represents. The URL must use HTTPS.
    schema String
    The schema in which to create the git repository. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
    showOutputs List<Property Map>
    Outputs the result of SHOW GIT REPOSITORIES for the given git repository.

    Supporting Types

    GitRepositoryDescribeOutput, GitRepositoryDescribeOutputArgs

    ApiIntegration string
    Comment string
    CreatedOn string
    DatabaseName string
    GitCredentials string
    LastFetchedAt string
    Name string
    Origin string
    Owner string
    OwnerRoleType string
    SchemaName string
    ApiIntegration string
    Comment string
    CreatedOn string
    DatabaseName string
    GitCredentials string
    LastFetchedAt string
    Name string
    Origin string
    Owner string
    OwnerRoleType string
    SchemaName string
    apiIntegration String
    comment String
    createdOn String
    databaseName String
    gitCredentials String
    lastFetchedAt String
    name String
    origin String
    owner String
    ownerRoleType String
    schemaName String
    apiIntegration string
    comment string
    createdOn string
    databaseName string
    gitCredentials string
    lastFetchedAt string
    name string
    origin string
    owner string
    ownerRoleType string
    schemaName string
    apiIntegration String
    comment String
    createdOn String
    databaseName String
    gitCredentials String
    lastFetchedAt String
    name String
    origin String
    owner String
    ownerRoleType String
    schemaName String

    GitRepositoryShowOutput, GitRepositoryShowOutputArgs

    ApiIntegration string
    Comment string
    CreatedOn string
    DatabaseName string
    GitCredentials string
    LastFetchedAt string
    Name string
    Origin string
    Owner string
    OwnerRoleType string
    SchemaName string
    ApiIntegration string
    Comment string
    CreatedOn string
    DatabaseName string
    GitCredentials string
    LastFetchedAt string
    Name string
    Origin string
    Owner string
    OwnerRoleType string
    SchemaName string
    apiIntegration String
    comment String
    createdOn String
    databaseName String
    gitCredentials String
    lastFetchedAt String
    name String
    origin String
    owner String
    ownerRoleType String
    schemaName String
    apiIntegration string
    comment string
    createdOn string
    databaseName string
    gitCredentials string
    lastFetchedAt string
    name string
    origin string
    owner string
    ownerRoleType string
    schemaName string
    apiIntegration String
    comment String
    createdOn String
    databaseName String
    gitCredentials String
    lastFetchedAt String
    name String
    origin String
    owner String
    ownerRoleType String
    schemaName String

    Import

    $ pulumi import snowflake:index/gitRepository:GitRepository example '"<db_name>"."<schema_name>"."<git_repository_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
    Snowflake v2.12.0 published on Friday, Feb 13, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate