fivetran.DbtProject
Explore with Pulumi AI
This resource is Deprecated, please follow the 1.5.0 migration guide to update the schema.
This resource allows you to add, manage and delete dbt Projects in your account.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fivetran from "@pulumi/fivetran";
const project = new fivetran.DbtProject("project", {
    dbtVersion: "1.4.1",
    defaultSchema: "default_schema",
    environmentVars: ["environment_var=value"],
    groupId: "group_id",
    targetName: "target_name",
    threads: 8,
    type: "GIT",
});
import pulumi
import pulumi_fivetran as fivetran
project = fivetran.DbtProject("project",
    dbt_version="1.4.1",
    default_schema="default_schema",
    environment_vars=["environment_var=value"],
    group_id="group_id",
    target_name="target_name",
    threads=8,
    type="GIT")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fivetran/fivetran"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fivetran.NewDbtProject(ctx, "project", &fivetran.DbtProjectArgs{
			DbtVersion:    pulumi.String("1.4.1"),
			DefaultSchema: pulumi.String("default_schema"),
			EnvironmentVars: pulumi.StringArray{
				pulumi.String("environment_var=value"),
			},
			GroupId:    pulumi.String("group_id"),
			TargetName: pulumi.String("target_name"),
			Threads:    pulumi.Float64(8),
			Type:       pulumi.String("GIT"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fivetran = Pulumi.Fivetran;
return await Deployment.RunAsync(() => 
{
    var project = new Fivetran.DbtProject("project", new()
    {
        DbtVersion = "1.4.1",
        DefaultSchema = "default_schema",
        EnvironmentVars = new[]
        {
            "environment_var=value",
        },
        GroupId = "group_id",
        TargetName = "target_name",
        Threads = 8,
        Type = "GIT",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fivetran.DbtProject;
import com.pulumi.fivetran.DbtProjectArgs;
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 project = new DbtProject("project", DbtProjectArgs.builder()
            .dbtVersion("1.4.1")
            .defaultSchema("default_schema")
            .environmentVars("environment_var=value")
            .groupId("group_id")
            .targetName("target_name")
            .threads(8)
            .type("GIT")
            .build());
    }
}
resources:
  project:
    type: fivetran:DbtProject
    properties:
      dbtVersion: 1.4.1
      defaultSchema: default_schema
      environmentVars:
        - environment_var=value
      groupId: group_id
      targetName: target_name
      threads: 8
      type: GIT
Create DbtProject Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbtProject(name: string, args: DbtProjectArgs, opts?: CustomResourceOptions);@overload
def DbtProject(resource_name: str,
               args: DbtProjectArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def DbtProject(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               dbt_version: Optional[str] = None,
               default_schema: Optional[str] = None,
               group_id: Optional[str] = None,
               ensure_readiness: Optional[bool] = None,
               environment_vars: Optional[Sequence[str]] = None,
               project_config: Optional[DbtProjectProjectConfigArgs] = None,
               target_name: Optional[str] = None,
               threads: Optional[float] = None,
               timeouts: Optional[DbtProjectTimeoutsArgs] = None,
               type: Optional[str] = None)func NewDbtProject(ctx *Context, name string, args DbtProjectArgs, opts ...ResourceOption) (*DbtProject, error)public DbtProject(string name, DbtProjectArgs args, CustomResourceOptions? opts = null)
public DbtProject(String name, DbtProjectArgs args)
public DbtProject(String name, DbtProjectArgs args, CustomResourceOptions options)
type: fivetran:DbtProject
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 DbtProjectArgs
- 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 DbtProjectArgs
- 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 DbtProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbtProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbtProjectArgs
- 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 dbtProjectResource = new Fivetran.DbtProject("dbtProjectResource", new()
{
    DbtVersion = "string",
    DefaultSchema = "string",
    GroupId = "string",
    EnvironmentVars = new[]
    {
        "string",
    },
    TargetName = "string",
    Threads = 0,
    Timeouts = new Fivetran.Inputs.DbtProjectTimeoutsArgs
    {
        Create = "string",
    },
    Type = "string",
});
example, err := fivetran.NewDbtProject(ctx, "dbtProjectResource", &fivetran.DbtProjectArgs{
DbtVersion: pulumi.String("string"),
DefaultSchema: pulumi.String("string"),
GroupId: pulumi.String("string"),
EnvironmentVars: pulumi.StringArray{
pulumi.String("string"),
},
TargetName: pulumi.String("string"),
Threads: pulumi.Float64(0),
Timeouts: &.DbtProjectTimeoutsArgs{
Create: pulumi.String("string"),
},
Type: pulumi.String("string"),
})
var dbtProjectResource = new DbtProject("dbtProjectResource", DbtProjectArgs.builder()
    .dbtVersion("string")
    .defaultSchema("string")
    .groupId("string")
    .environmentVars("string")
    .targetName("string")
    .threads(0)
    .timeouts(DbtProjectTimeoutsArgs.builder()
        .create("string")
        .build())
    .type("string")
    .build());
dbt_project_resource = fivetran.DbtProject("dbtProjectResource",
    dbt_version="string",
    default_schema="string",
    group_id="string",
    environment_vars=["string"],
    target_name="string",
    threads=0,
    timeouts={
        "create": "string",
    },
    type="string")
const dbtProjectResource = new fivetran.DbtProject("dbtProjectResource", {
    dbtVersion: "string",
    defaultSchema: "string",
    groupId: "string",
    environmentVars: ["string"],
    targetName: "string",
    threads: 0,
    timeouts: {
        create: "string",
    },
    type: "string",
});
type: fivetran:DbtProject
properties:
    dbtVersion: string
    defaultSchema: string
    environmentVars:
        - string
    groupId: string
    targetName: string
    threads: 0
    timeouts:
        create: string
    type: string
DbtProject 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 DbtProject resource accepts the following input properties:
- DbtVersion string
- The version of dbt that should run the project. We support the following versions: 0.18.0 - 0.18.2, 0.19.0 - 0.19.2, 0.20.0 - 0.20.2, 0.21.0 - 0.21.1, 1.0.0, 1.0.1, 1.0.3 - 1.0.9, 1.1.0 - 1.1.3, 1.2.0 - 1.2.4, 1.3.0 - 1.3.2, 1.4.1.
- DefaultSchema string
- Default schema in destination. This production schema will contain your transformed data.
- GroupId string
- The unique identifier for the group within the Fivetran system.
- EnsureReadiness bool
- Should resource wait for project to finish initialization. Default value: true.
- EnvironmentVars List<string>
- List of environment variables defined as key-value pairs in the raw string format using = as a separator. The variable name should have the DBT_ prefix and can contain A-Z, 0-9, dash, underscore, or dot characters. Example: "DBT*VARIABLE=variable*value"
- ProjectConfig DbtProject Project Config 
- TargetName string
- Target name to set or override the value from the deployment.yaml
- Threads double
- The number of threads dbt will use (from 1 to 32). Make sure this value is compatible with your destination type. For example, Snowflake supports only 8 concurrent queries on an X-Small warehouse.
- Timeouts
DbtProject Timeouts 
- Type string
- Type of dbt Project. Currently only GITsupported. Empty value will be considered as default (GIT).
- DbtVersion string
- The version of dbt that should run the project. We support the following versions: 0.18.0 - 0.18.2, 0.19.0 - 0.19.2, 0.20.0 - 0.20.2, 0.21.0 - 0.21.1, 1.0.0, 1.0.1, 1.0.3 - 1.0.9, 1.1.0 - 1.1.3, 1.2.0 - 1.2.4, 1.3.0 - 1.3.2, 1.4.1.
- DefaultSchema string
- Default schema in destination. This production schema will contain your transformed data.
- GroupId string
- The unique identifier for the group within the Fivetran system.
- EnsureReadiness bool
- Should resource wait for project to finish initialization. Default value: true.
- EnvironmentVars []string
- List of environment variables defined as key-value pairs in the raw string format using = as a separator. The variable name should have the DBT_ prefix and can contain A-Z, 0-9, dash, underscore, or dot characters. Example: "DBT*VARIABLE=variable*value"
- ProjectConfig DbtProject Project Config Args 
- TargetName string
- Target name to set or override the value from the deployment.yaml
- Threads float64
- The number of threads dbt will use (from 1 to 32). Make sure this value is compatible with your destination type. For example, Snowflake supports only 8 concurrent queries on an X-Small warehouse.
- Timeouts
DbtProject Timeouts Args 
- Type string
- Type of dbt Project. Currently only GITsupported. Empty value will be considered as default (GIT).
- dbtVersion String
- The version of dbt that should run the project. We support the following versions: 0.18.0 - 0.18.2, 0.19.0 - 0.19.2, 0.20.0 - 0.20.2, 0.21.0 - 0.21.1, 1.0.0, 1.0.1, 1.0.3 - 1.0.9, 1.1.0 - 1.1.3, 1.2.0 - 1.2.4, 1.3.0 - 1.3.2, 1.4.1.
- defaultSchema String
- Default schema in destination. This production schema will contain your transformed data.
- groupId String
- The unique identifier for the group within the Fivetran system.
- ensureReadiness Boolean
- Should resource wait for project to finish initialization. Default value: true.
- environmentVars List<String>
- List of environment variables defined as key-value pairs in the raw string format using = as a separator. The variable name should have the DBT_ prefix and can contain A-Z, 0-9, dash, underscore, or dot characters. Example: "DBT*VARIABLE=variable*value"
- projectConfig DbtProject Project Config 
- targetName String
- Target name to set or override the value from the deployment.yaml
- threads Double
- The number of threads dbt will use (from 1 to 32). Make sure this value is compatible with your destination type. For example, Snowflake supports only 8 concurrent queries on an X-Small warehouse.
- timeouts
DbtProject Timeouts 
- type String
- Type of dbt Project. Currently only GITsupported. Empty value will be considered as default (GIT).
- dbtVersion string
- The version of dbt that should run the project. We support the following versions: 0.18.0 - 0.18.2, 0.19.0 - 0.19.2, 0.20.0 - 0.20.2, 0.21.0 - 0.21.1, 1.0.0, 1.0.1, 1.0.3 - 1.0.9, 1.1.0 - 1.1.3, 1.2.0 - 1.2.4, 1.3.0 - 1.3.2, 1.4.1.
- defaultSchema string
- Default schema in destination. This production schema will contain your transformed data.
- groupId string
- The unique identifier for the group within the Fivetran system.
- ensureReadiness boolean
- Should resource wait for project to finish initialization. Default value: true.
- environmentVars string[]
- List of environment variables defined as key-value pairs in the raw string format using = as a separator. The variable name should have the DBT_ prefix and can contain A-Z, 0-9, dash, underscore, or dot characters. Example: "DBT*VARIABLE=variable*value"
- projectConfig DbtProject Project Config 
- targetName string
- Target name to set or override the value from the deployment.yaml
- threads number
- The number of threads dbt will use (from 1 to 32). Make sure this value is compatible with your destination type. For example, Snowflake supports only 8 concurrent queries on an X-Small warehouse.
- timeouts
DbtProject Timeouts 
- type string
- Type of dbt Project. Currently only GITsupported. Empty value will be considered as default (GIT).
- dbt_version str
- The version of dbt that should run the project. We support the following versions: 0.18.0 - 0.18.2, 0.19.0 - 0.19.2, 0.20.0 - 0.20.2, 0.21.0 - 0.21.1, 1.0.0, 1.0.1, 1.0.3 - 1.0.9, 1.1.0 - 1.1.3, 1.2.0 - 1.2.4, 1.3.0 - 1.3.2, 1.4.1.
- default_schema str
- Default schema in destination. This production schema will contain your transformed data.
- group_id str
- The unique identifier for the group within the Fivetran system.
- ensure_readiness bool
- Should resource wait for project to finish initialization. Default value: true.
- environment_vars Sequence[str]
- List of environment variables defined as key-value pairs in the raw string format using = as a separator. The variable name should have the DBT_ prefix and can contain A-Z, 0-9, dash, underscore, or dot characters. Example: "DBT*VARIABLE=variable*value"
- project_config DbtProject Project Config Args 
- target_name str
- Target name to set or override the value from the deployment.yaml
- threads float
- The number of threads dbt will use (from 1 to 32). Make sure this value is compatible with your destination type. For example, Snowflake supports only 8 concurrent queries on an X-Small warehouse.
- timeouts
DbtProject Timeouts Args 
- type str
- Type of dbt Project. Currently only GITsupported. Empty value will be considered as default (GIT).
- dbtVersion String
- The version of dbt that should run the project. We support the following versions: 0.18.0 - 0.18.2, 0.19.0 - 0.19.2, 0.20.0 - 0.20.2, 0.21.0 - 0.21.1, 1.0.0, 1.0.1, 1.0.3 - 1.0.9, 1.1.0 - 1.1.3, 1.2.0 - 1.2.4, 1.3.0 - 1.3.2, 1.4.1.
- defaultSchema String
- Default schema in destination. This production schema will contain your transformed data.
- groupId String
- The unique identifier for the group within the Fivetran system.
- ensureReadiness Boolean
- Should resource wait for project to finish initialization. Default value: true.
- environmentVars List<String>
- List of environment variables defined as key-value pairs in the raw string format using = as a separator. The variable name should have the DBT_ prefix and can contain A-Z, 0-9, dash, underscore, or dot characters. Example: "DBT*VARIABLE=variable*value"
- projectConfig Property Map
- targetName String
- Target name to set or override the value from the deployment.yaml
- threads Number
- The number of threads dbt will use (from 1 to 32). Make sure this value is compatible with your destination type. For example, Snowflake supports only 8 concurrent queries on an X-Small warehouse.
- timeouts Property Map
- type String
- Type of dbt Project. Currently only GITsupported. Empty value will be considered as default (GIT).
Outputs
All input properties are implicitly available as output properties. Additionally, the DbtProject resource produces the following output properties:
- CreatedAt string
- The timestamp of the dbt Project creation.
- CreatedBy stringId 
- The unique identifier for the User within the Fivetran system who created the dbt Project.
- Id string
- The provider-assigned unique ID for this managed resource.
- Models
List<DbtProject Model> 
- PublicKey string
- Public key to grant Fivetran SSH access to git repository.
- Status string
- Status of dbt Project (NOT_READY, READY, ERROR).
- CreatedAt string
- The timestamp of the dbt Project creation.
- CreatedBy stringId 
- The unique identifier for the User within the Fivetran system who created the dbt Project.
- Id string
- The provider-assigned unique ID for this managed resource.
- Models
[]DbtProject Model 
- PublicKey string
- Public key to grant Fivetran SSH access to git repository.
- Status string
- Status of dbt Project (NOT_READY, READY, ERROR).
- createdAt String
- The timestamp of the dbt Project creation.
- createdBy StringId 
- The unique identifier for the User within the Fivetran system who created the dbt Project.
- id String
- The provider-assigned unique ID for this managed resource.
- models
List<DbtProject Model> 
- publicKey String
- Public key to grant Fivetran SSH access to git repository.
- status String
- Status of dbt Project (NOT_READY, READY, ERROR).
- createdAt string
- The timestamp of the dbt Project creation.
- createdBy stringId 
- The unique identifier for the User within the Fivetran system who created the dbt Project.
- id string
- The provider-assigned unique ID for this managed resource.
- models
DbtProject Model[] 
- publicKey string
- Public key to grant Fivetran SSH access to git repository.
- status string
- Status of dbt Project (NOT_READY, READY, ERROR).
- created_at str
- The timestamp of the dbt Project creation.
- created_by_ strid 
- The unique identifier for the User within the Fivetran system who created the dbt Project.
- id str
- The provider-assigned unique ID for this managed resource.
- models
Sequence[DbtProject Model] 
- public_key str
- Public key to grant Fivetran SSH access to git repository.
- status str
- Status of dbt Project (NOT_READY, READY, ERROR).
- createdAt String
- The timestamp of the dbt Project creation.
- createdBy StringId 
- The unique identifier for the User within the Fivetran system who created the dbt Project.
- id String
- The provider-assigned unique ID for this managed resource.
- models List<Property Map>
- publicKey String
- Public key to grant Fivetran SSH access to git repository.
- status String
- Status of dbt Project (NOT_READY, READY, ERROR).
Look up Existing DbtProject Resource
Get an existing DbtProject 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?: DbtProjectState, opts?: CustomResourceOptions): DbtProject@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        created_by_id: Optional[str] = None,
        dbt_version: Optional[str] = None,
        default_schema: Optional[str] = None,
        ensure_readiness: Optional[bool] = None,
        environment_vars: Optional[Sequence[str]] = None,
        group_id: Optional[str] = None,
        models: Optional[Sequence[DbtProjectModelArgs]] = None,
        project_config: Optional[DbtProjectProjectConfigArgs] = None,
        public_key: Optional[str] = None,
        status: Optional[str] = None,
        target_name: Optional[str] = None,
        threads: Optional[float] = None,
        timeouts: Optional[DbtProjectTimeoutsArgs] = None,
        type: Optional[str] = None) -> DbtProjectfunc GetDbtProject(ctx *Context, name string, id IDInput, state *DbtProjectState, opts ...ResourceOption) (*DbtProject, error)public static DbtProject Get(string name, Input<string> id, DbtProjectState? state, CustomResourceOptions? opts = null)public static DbtProject get(String name, Output<String> id, DbtProjectState state, CustomResourceOptions options)resources:  _:    type: fivetran:DbtProject    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.
- CreatedAt string
- The timestamp of the dbt Project creation.
- CreatedBy stringId 
- The unique identifier for the User within the Fivetran system who created the dbt Project.
- DbtVersion string
- The version of dbt that should run the project. We support the following versions: 0.18.0 - 0.18.2, 0.19.0 - 0.19.2, 0.20.0 - 0.20.2, 0.21.0 - 0.21.1, 1.0.0, 1.0.1, 1.0.3 - 1.0.9, 1.1.0 - 1.1.3, 1.2.0 - 1.2.4, 1.3.0 - 1.3.2, 1.4.1.
- DefaultSchema string
- Default schema in destination. This production schema will contain your transformed data.
- EnsureReadiness bool
- Should resource wait for project to finish initialization. Default value: true.
- EnvironmentVars List<string>
- List of environment variables defined as key-value pairs in the raw string format using = as a separator. The variable name should have the DBT_ prefix and can contain A-Z, 0-9, dash, underscore, or dot characters. Example: "DBT*VARIABLE=variable*value"
- GroupId string
- The unique identifier for the group within the Fivetran system.
- Models
List<DbtProject Model> 
- ProjectConfig DbtProject Project Config 
- PublicKey string
- Public key to grant Fivetran SSH access to git repository.
- Status string
- Status of dbt Project (NOT_READY, READY, ERROR).
- TargetName string
- Target name to set or override the value from the deployment.yaml
- Threads double
- The number of threads dbt will use (from 1 to 32). Make sure this value is compatible with your destination type. For example, Snowflake supports only 8 concurrent queries on an X-Small warehouse.
- Timeouts
DbtProject Timeouts 
- Type string
- Type of dbt Project. Currently only GITsupported. Empty value will be considered as default (GIT).
- CreatedAt string
- The timestamp of the dbt Project creation.
- CreatedBy stringId 
- The unique identifier for the User within the Fivetran system who created the dbt Project.
- DbtVersion string
- The version of dbt that should run the project. We support the following versions: 0.18.0 - 0.18.2, 0.19.0 - 0.19.2, 0.20.0 - 0.20.2, 0.21.0 - 0.21.1, 1.0.0, 1.0.1, 1.0.3 - 1.0.9, 1.1.0 - 1.1.3, 1.2.0 - 1.2.4, 1.3.0 - 1.3.2, 1.4.1.
- DefaultSchema string
- Default schema in destination. This production schema will contain your transformed data.
- EnsureReadiness bool
- Should resource wait for project to finish initialization. Default value: true.
- EnvironmentVars []string
- List of environment variables defined as key-value pairs in the raw string format using = as a separator. The variable name should have the DBT_ prefix and can contain A-Z, 0-9, dash, underscore, or dot characters. Example: "DBT*VARIABLE=variable*value"
- GroupId string
- The unique identifier for the group within the Fivetran system.
- Models
[]DbtProject Model Args 
- ProjectConfig DbtProject Project Config Args 
- PublicKey string
- Public key to grant Fivetran SSH access to git repository.
- Status string
- Status of dbt Project (NOT_READY, READY, ERROR).
- TargetName string
- Target name to set or override the value from the deployment.yaml
- Threads float64
- The number of threads dbt will use (from 1 to 32). Make sure this value is compatible with your destination type. For example, Snowflake supports only 8 concurrent queries on an X-Small warehouse.
- Timeouts
DbtProject Timeouts Args 
- Type string
- Type of dbt Project. Currently only GITsupported. Empty value will be considered as default (GIT).
- createdAt String
- The timestamp of the dbt Project creation.
- createdBy StringId 
- The unique identifier for the User within the Fivetran system who created the dbt Project.
- dbtVersion String
- The version of dbt that should run the project. We support the following versions: 0.18.0 - 0.18.2, 0.19.0 - 0.19.2, 0.20.0 - 0.20.2, 0.21.0 - 0.21.1, 1.0.0, 1.0.1, 1.0.3 - 1.0.9, 1.1.0 - 1.1.3, 1.2.0 - 1.2.4, 1.3.0 - 1.3.2, 1.4.1.
- defaultSchema String
- Default schema in destination. This production schema will contain your transformed data.
- ensureReadiness Boolean
- Should resource wait for project to finish initialization. Default value: true.
- environmentVars List<String>
- List of environment variables defined as key-value pairs in the raw string format using = as a separator. The variable name should have the DBT_ prefix and can contain A-Z, 0-9, dash, underscore, or dot characters. Example: "DBT*VARIABLE=variable*value"
- groupId String
- The unique identifier for the group within the Fivetran system.
- models
List<DbtProject Model> 
- projectConfig DbtProject Project Config 
- publicKey String
- Public key to grant Fivetran SSH access to git repository.
- status String
- Status of dbt Project (NOT_READY, READY, ERROR).
- targetName String
- Target name to set or override the value from the deployment.yaml
- threads Double
- The number of threads dbt will use (from 1 to 32). Make sure this value is compatible with your destination type. For example, Snowflake supports only 8 concurrent queries on an X-Small warehouse.
- timeouts
DbtProject Timeouts 
- type String
- Type of dbt Project. Currently only GITsupported. Empty value will be considered as default (GIT).
- createdAt string
- The timestamp of the dbt Project creation.
- createdBy stringId 
- The unique identifier for the User within the Fivetran system who created the dbt Project.
- dbtVersion string
- The version of dbt that should run the project. We support the following versions: 0.18.0 - 0.18.2, 0.19.0 - 0.19.2, 0.20.0 - 0.20.2, 0.21.0 - 0.21.1, 1.0.0, 1.0.1, 1.0.3 - 1.0.9, 1.1.0 - 1.1.3, 1.2.0 - 1.2.4, 1.3.0 - 1.3.2, 1.4.1.
- defaultSchema string
- Default schema in destination. This production schema will contain your transformed data.
- ensureReadiness boolean
- Should resource wait for project to finish initialization. Default value: true.
- environmentVars string[]
- List of environment variables defined as key-value pairs in the raw string format using = as a separator. The variable name should have the DBT_ prefix and can contain A-Z, 0-9, dash, underscore, or dot characters. Example: "DBT*VARIABLE=variable*value"
- groupId string
- The unique identifier for the group within the Fivetran system.
- models
DbtProject Model[] 
- projectConfig DbtProject Project Config 
- publicKey string
- Public key to grant Fivetran SSH access to git repository.
- status string
- Status of dbt Project (NOT_READY, READY, ERROR).
- targetName string
- Target name to set or override the value from the deployment.yaml
- threads number
- The number of threads dbt will use (from 1 to 32). Make sure this value is compatible with your destination type. For example, Snowflake supports only 8 concurrent queries on an X-Small warehouse.
- timeouts
DbtProject Timeouts 
- type string
- Type of dbt Project. Currently only GITsupported. Empty value will be considered as default (GIT).
- created_at str
- The timestamp of the dbt Project creation.
- created_by_ strid 
- The unique identifier for the User within the Fivetran system who created the dbt Project.
- dbt_version str
- The version of dbt that should run the project. We support the following versions: 0.18.0 - 0.18.2, 0.19.0 - 0.19.2, 0.20.0 - 0.20.2, 0.21.0 - 0.21.1, 1.0.0, 1.0.1, 1.0.3 - 1.0.9, 1.1.0 - 1.1.3, 1.2.0 - 1.2.4, 1.3.0 - 1.3.2, 1.4.1.
- default_schema str
- Default schema in destination. This production schema will contain your transformed data.
- ensure_readiness bool
- Should resource wait for project to finish initialization. Default value: true.
- environment_vars Sequence[str]
- List of environment variables defined as key-value pairs in the raw string format using = as a separator. The variable name should have the DBT_ prefix and can contain A-Z, 0-9, dash, underscore, or dot characters. Example: "DBT*VARIABLE=variable*value"
- group_id str
- The unique identifier for the group within the Fivetran system.
- models
Sequence[DbtProject Model Args] 
- project_config DbtProject Project Config Args 
- public_key str
- Public key to grant Fivetran SSH access to git repository.
- status str
- Status of dbt Project (NOT_READY, READY, ERROR).
- target_name str
- Target name to set or override the value from the deployment.yaml
- threads float
- The number of threads dbt will use (from 1 to 32). Make sure this value is compatible with your destination type. For example, Snowflake supports only 8 concurrent queries on an X-Small warehouse.
- timeouts
DbtProject Timeouts Args 
- type str
- Type of dbt Project. Currently only GITsupported. Empty value will be considered as default (GIT).
- createdAt String
- The timestamp of the dbt Project creation.
- createdBy StringId 
- The unique identifier for the User within the Fivetran system who created the dbt Project.
- dbtVersion String
- The version of dbt that should run the project. We support the following versions: 0.18.0 - 0.18.2, 0.19.0 - 0.19.2, 0.20.0 - 0.20.2, 0.21.0 - 0.21.1, 1.0.0, 1.0.1, 1.0.3 - 1.0.9, 1.1.0 - 1.1.3, 1.2.0 - 1.2.4, 1.3.0 - 1.3.2, 1.4.1.
- defaultSchema String
- Default schema in destination. This production schema will contain your transformed data.
- ensureReadiness Boolean
- Should resource wait for project to finish initialization. Default value: true.
- environmentVars List<String>
- List of environment variables defined as key-value pairs in the raw string format using = as a separator. The variable name should have the DBT_ prefix and can contain A-Z, 0-9, dash, underscore, or dot characters. Example: "DBT*VARIABLE=variable*value"
- groupId String
- The unique identifier for the group within the Fivetran system.
- models List<Property Map>
- projectConfig Property Map
- publicKey String
- Public key to grant Fivetran SSH access to git repository.
- status String
- Status of dbt Project (NOT_READY, READY, ERROR).
- targetName String
- Target name to set or override the value from the deployment.yaml
- threads Number
- The number of threads dbt will use (from 1 to 32). Make sure this value is compatible with your destination type. For example, Snowflake supports only 8 concurrent queries on an X-Small warehouse.
- timeouts Property Map
- type String
- Type of dbt Project. Currently only GITsupported. Empty value will be considered as default (GIT).
Supporting Types
DbtProjectModel, DbtProjectModelArgs      
- id str
- The unique identifier for the dbt Model within the Fivetran system.
- model_name str
- The dbt Model name.
- scheduled bool
- Boolean specifying whether the model is selected for execution in the dashboard.
DbtProjectProjectConfig, DbtProjectProjectConfigArgs        
- FolderPath string
- Folder in Git repo with your dbt project
- GitBranch string
- Git branch
- GitRemote stringUrl 
- Git remote URL with your dbt project
- FolderPath string
- Folder in Git repo with your dbt project
- GitBranch string
- Git branch
- GitRemote stringUrl 
- Git remote URL with your dbt project
- folderPath String
- Folder in Git repo with your dbt project
- gitBranch String
- Git branch
- gitRemote StringUrl 
- Git remote URL with your dbt project
- folderPath string
- Folder in Git repo with your dbt project
- gitBranch string
- Git branch
- gitRemote stringUrl 
- Git remote URL with your dbt project
- folder_path str
- Folder in Git repo with your dbt project
- git_branch str
- Git branch
- git_remote_ strurl 
- Git remote URL with your dbt project
- folderPath String
- Folder in Git repo with your dbt project
- gitBranch String
- Git branch
- gitRemote StringUrl 
- Git remote URL with your dbt project
DbtProjectTimeouts, DbtProjectTimeoutsArgs      
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
- To import an existing - fivetran_dbt_projectresource into your Terraform state, you need to get Dbt Project ID via API call- GET https://api.fivetran.com/v1/dbt/projectsto retrieve available projects.
- Fetch project details for particular - project-idusing- GET https://api.fivetran.com/v1/dbt/projects/{project-id}to ensure that this is the project you want to import.
- Define an empty resource in your - .tfconfiguration:
hcl
resource “fivetran_dbt_project” “my_imported_fivetran_dbt_project” {
}
- Run the pulumi importcommand:
$ pulumi import fivetran:index/dbtProject:DbtProject my_imported_fivetran_dbt_project {Dbt Project ID}
- Use the terraform state showcommand to get the values from the state:
terraform state show ‘fivetran_dbt_project.my_imported_fivetran_dbt_project’
- Copy the values and paste them to your .tfconfiguration.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fivetran fivetran/terraform-provider-fivetran
- License
- Notes
- This Pulumi package is based on the fivetranTerraform Provider.