published on Thursday, May 14, 2026 by Pulumi
published on Thursday, May 14, 2026 by Pulumi
Teradata credential resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dbtcloud from "@pulumi/dbtcloud";
// Using the classic sensitive attribute (stored in state)
const example = new dbtcloud.TeradataCredential("example", {
projectId: Number(exampleDbtcloudProject.id),
schema: "your_schema",
user: "your_user",
password: "your_password",
});
const config = new pulumi.Config();
const teradataPassword = config.require("teradataPassword");
const exampleWo = new dbtcloud.TeradataCredential("example_wo", {
projectId: Number(exampleDbtcloudProject.id),
schema: "your_schema",
user: "your_user",
passwordWo: teradataPassword,
passwordWoVersion: 1,
});
import pulumi
import pulumi_dbtcloud as dbtcloud
# Using the classic sensitive attribute (stored in state)
example = dbtcloud.TeradataCredential("example",
project_id=int(example_dbtcloud_project["id"]),
schema="your_schema",
user="your_user",
password="your_password")
config = pulumi.Config()
teradata_password = config.require("teradataPassword")
example_wo = dbtcloud.TeradataCredential("example_wo",
project_id=int(example_dbtcloud_project["id"]),
schema="your_schema",
user="your_user",
password_wo=teradata_password,
password_wo_version=1)
package main
import (
"github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Using the classic sensitive attribute (stored in state)
_, err := dbtcloud.NewTeradataCredential(ctx, "example", &dbtcloud.TeradataCredentialArgs{
ProjectId: pulumi.Any(exampleDbtcloudProject.Id),
Schema: pulumi.String("your_schema"),
User: pulumi.String("your_user"),
Password: pulumi.String("your_password"),
})
if err != nil {
return err
}
cfg := config.New(ctx, "")
teradataPassword := cfg.Require("teradataPassword")
_, err = dbtcloud.NewTeradataCredential(ctx, "example_wo", &dbtcloud.TeradataCredentialArgs{
ProjectId: pulumi.Any(exampleDbtcloudProject.Id),
Schema: pulumi.String("your_schema"),
User: pulumi.String("your_user"),
PasswordWo: pulumi.String(pulumi.String(teradataPassword)),
PasswordWoVersion: pulumi.Int(1),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DbtCloud = Pulumi.DbtCloud;
return await Deployment.RunAsync(() =>
{
// Using the classic sensitive attribute (stored in state)
var example = new DbtCloud.TeradataCredential("example", new()
{
ProjectId = exampleDbtcloudProject.Id,
Schema = "your_schema",
User = "your_user",
Password = "your_password",
});
var config = new Config();
var teradataPassword = config.Require("teradataPassword");
var exampleWo = new DbtCloud.TeradataCredential("example_wo", new()
{
ProjectId = exampleDbtcloudProject.Id,
Schema = "your_schema",
User = "your_user",
PasswordWo = teradataPassword,
PasswordWoVersion = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dbtcloud.TeradataCredential;
import com.pulumi.dbtcloud.TeradataCredentialArgs;
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) {
final var config = ctx.config();
// Using the classic sensitive attribute (stored in state)
var example = new TeradataCredential("example", TeradataCredentialArgs.builder()
.projectId(exampleDbtcloudProject.id())
.schema("your_schema")
.user("your_user")
.password("your_password")
.build());
final var teradataPassword = config.require("teradataPassword");
var exampleWo = new TeradataCredential("exampleWo", TeradataCredentialArgs.builder()
.projectId(exampleDbtcloudProject.id())
.schema("your_schema")
.user("your_user")
.passwordWo(teradataPassword)
.passwordWoVersion(1)
.build());
}
}
configuration:
# Using write-only attributes (not stored in state, requires Terraform >= 1.11)
# //
# // The password_wo value is never persisted in the Terraform state file.
# // Use password_wo_version to trigger an update when the password changes.
teradataPassword:
type: string
resources:
# Using the classic sensitive attribute (stored in state)
example:
type: dbtcloud:TeradataCredential
properties:
projectId: ${exampleDbtcloudProject.id}
schema: your_schema
user: your_user
password: your_password
exampleWo:
type: dbtcloud:TeradataCredential
name: example_wo
properties:
projectId: ${exampleDbtcloudProject.id}
schema: your_schema
user: your_user
passwordWo: ${teradataPassword}
passwordWoVersion: 1
Example coming soon!
Create TeradataCredential Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeradataCredential(name: string, args: TeradataCredentialArgs, opts?: CustomResourceOptions);@overload
def TeradataCredential(resource_name: str,
args: TeradataCredentialArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeradataCredential(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[int] = None,
schema: Optional[str] = None,
user: Optional[str] = None,
password: Optional[str] = None,
password_wo: Optional[str] = None,
password_wo_version: Optional[int] = None,
threads: Optional[int] = None)func NewTeradataCredential(ctx *Context, name string, args TeradataCredentialArgs, opts ...ResourceOption) (*TeradataCredential, error)public TeradataCredential(string name, TeradataCredentialArgs args, CustomResourceOptions? opts = null)
public TeradataCredential(String name, TeradataCredentialArgs args)
public TeradataCredential(String name, TeradataCredentialArgs args, CustomResourceOptions options)
type: dbtcloud:TeradataCredential
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "dbtcloud_teradatacredential" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TeradataCredentialArgs
- 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 TeradataCredentialArgs
- 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 TeradataCredentialArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeradataCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeradataCredentialArgs
- 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 teradataCredentialResource = new DbtCloud.TeradataCredential("teradataCredentialResource", new()
{
ProjectId = 0,
Schema = "string",
User = "string",
Password = "string",
PasswordWo = "string",
PasswordWoVersion = 0,
Threads = 0,
});
example, err := dbtcloud.NewTeradataCredential(ctx, "teradataCredentialResource", &dbtcloud.TeradataCredentialArgs{
ProjectId: pulumi.Int(0),
Schema: pulumi.String("string"),
User: pulumi.String("string"),
Password: pulumi.String("string"),
PasswordWo: pulumi.String("string"),
PasswordWoVersion: pulumi.Int(0),
Threads: pulumi.Int(0),
})
resource "dbtcloud_teradatacredential" "teradataCredentialResource" {
project_id = 0
schema = "string"
user = "string"
password = "string"
password_wo = "string"
password_wo_version = 0
threads = 0
}
var teradataCredentialResource = new TeradataCredential("teradataCredentialResource", TeradataCredentialArgs.builder()
.projectId(0)
.schema("string")
.user("string")
.password("string")
.passwordWo("string")
.passwordWoVersion(0)
.threads(0)
.build());
teradata_credential_resource = dbtcloud.TeradataCredential("teradataCredentialResource",
project_id=0,
schema="string",
user="string",
password="string",
password_wo="string",
password_wo_version=0,
threads=0)
const teradataCredentialResource = new dbtcloud.TeradataCredential("teradataCredentialResource", {
projectId: 0,
schema: "string",
user: "string",
password: "string",
passwordWo: "string",
passwordWoVersion: 0,
threads: 0,
});
type: dbtcloud:TeradataCredential
properties:
password: string
passwordWo: string
passwordWoVersion: 0
projectId: 0
schema: string
threads: 0
user: string
TeradataCredential 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 TeradataCredential resource accepts the following input properties:
- Project
Id int - Project ID to create the Teradata/Trino credential in
- Schema string
- The schema where to create models
- User string
- The username for the Teradata account
- Password string
- The password for the Teradata account. Consider using
passwordWoinstead, which is not stored in state. - Password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - Password
Wo intVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - Threads int
- The number of threads to use. Default is 1
- Project
Id int - Project ID to create the Teradata/Trino credential in
- Schema string
- The schema where to create models
- User string
- The username for the Teradata account
- Password string
- The password for the Teradata account. Consider using
passwordWoinstead, which is not stored in state. - Password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - Password
Wo intVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - Threads int
- The number of threads to use. Default is 1
- project_
id number - Project ID to create the Teradata/Trino credential in
- schema string
- The schema where to create models
- user string
- The username for the Teradata account
- password string
- The password for the Teradata account. Consider using
passwordWoinstead, which is not stored in state. - password_
wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password_
wo_ numberversion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - threads number
- The number of threads to use. Default is 1
- project
Id Integer - Project ID to create the Teradata/Trino credential in
- schema String
- The schema where to create models
- user String
- The username for the Teradata account
- password String
- The password for the Teradata account. Consider using
passwordWoinstead, which is not stored in state. - password
Wo String - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password
Wo IntegerVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - threads Integer
- The number of threads to use. Default is 1
- project
Id number - Project ID to create the Teradata/Trino credential in
- schema string
- The schema where to create models
- user string
- The username for the Teradata account
- password string
- The password for the Teradata account. Consider using
passwordWoinstead, which is not stored in state. - password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password
Wo numberVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - threads number
- The number of threads to use. Default is 1
- project_
id int - Project ID to create the Teradata/Trino credential in
- schema str
- The schema where to create models
- user str
- The username for the Teradata account
- password str
- The password for the Teradata account. Consider using
passwordWoinstead, which is not stored in state. - password_
wo str - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password_
wo_ intversion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - threads int
- The number of threads to use. Default is 1
- project
Id Number - Project ID to create the Teradata/Trino credential in
- schema String
- The schema where to create models
- user String
- The username for the Teradata account
- password String
- The password for the Teradata account. Consider using
passwordWoinstead, which is not stored in state. - password
Wo String - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password
Wo NumberVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - threads Number
- The number of threads to use. Default is 1
Outputs
All input properties are implicitly available as output properties. Additionally, the TeradataCredential resource produces the following output properties:
- Credential
Id int - The internal credential ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Credential
Id int - The internal credential ID
- Id string
- The provider-assigned unique ID for this managed resource.
- credential_
id number - The internal credential ID
- id string
- The provider-assigned unique ID for this managed resource.
- credential
Id Integer - The internal credential ID
- id String
- The provider-assigned unique ID for this managed resource.
- credential
Id number - The internal credential ID
- id string
- The provider-assigned unique ID for this managed resource.
- credential_
id int - The internal credential ID
- id str
- The provider-assigned unique ID for this managed resource.
- credential
Id Number - The internal credential ID
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing TeradataCredential Resource
Get an existing TeradataCredential 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?: TeradataCredentialState, opts?: CustomResourceOptions): TeradataCredential@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
credential_id: Optional[int] = None,
password: Optional[str] = None,
password_wo: Optional[str] = None,
password_wo_version: Optional[int] = None,
project_id: Optional[int] = None,
schema: Optional[str] = None,
threads: Optional[int] = None,
user: Optional[str] = None) -> TeradataCredentialfunc GetTeradataCredential(ctx *Context, name string, id IDInput, state *TeradataCredentialState, opts ...ResourceOption) (*TeradataCredential, error)public static TeradataCredential Get(string name, Input<string> id, TeradataCredentialState? state, CustomResourceOptions? opts = null)public static TeradataCredential get(String name, Output<String> id, TeradataCredentialState state, CustomResourceOptions options)resources: _: type: dbtcloud:TeradataCredential get: id: ${id}import {
to = dbtcloud_teradatacredential.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.
- Credential
Id int - The internal credential ID
- Password string
- The password for the Teradata account. Consider using
passwordWoinstead, which is not stored in state. - Password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - Password
Wo intVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - Project
Id int - Project ID to create the Teradata/Trino credential in
- Schema string
- The schema where to create models
- Threads int
- The number of threads to use. Default is 1
- User string
- The username for the Teradata account
- Credential
Id int - The internal credential ID
- Password string
- The password for the Teradata account. Consider using
passwordWoinstead, which is not stored in state. - Password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - Password
Wo intVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - Project
Id int - Project ID to create the Teradata/Trino credential in
- Schema string
- The schema where to create models
- Threads int
- The number of threads to use. Default is 1
- User string
- The username for the Teradata account
- credential_
id number - The internal credential ID
- password string
- The password for the Teradata account. Consider using
passwordWoinstead, which is not stored in state. - password_
wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password_
wo_ numberversion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - project_
id number - Project ID to create the Teradata/Trino credential in
- schema string
- The schema where to create models
- threads number
- The number of threads to use. Default is 1
- user string
- The username for the Teradata account
- credential
Id Integer - The internal credential ID
- password String
- The password for the Teradata account. Consider using
passwordWoinstead, which is not stored in state. - password
Wo String - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password
Wo IntegerVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - project
Id Integer - Project ID to create the Teradata/Trino credential in
- schema String
- The schema where to create models
- threads Integer
- The number of threads to use. Default is 1
- user String
- The username for the Teradata account
- credential
Id number - The internal credential ID
- password string
- The password for the Teradata account. Consider using
passwordWoinstead, which is not stored in state. - password
Wo string - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password
Wo numberVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - project
Id number - Project ID to create the Teradata/Trino credential in
- schema string
- The schema where to create models
- threads number
- The number of threads to use. Default is 1
- user string
- The username for the Teradata account
- credential_
id int - The internal credential ID
- password str
- The password for the Teradata account. Consider using
passwordWoinstead, which is not stored in state. - password_
wo str - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password_
wo_ intversion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - project_
id int - Project ID to create the Teradata/Trino credential in
- schema str
- The schema where to create models
- threads int
- The number of threads to use. Default is 1
- user str
- The username for the Teradata account
- credential
Id Number - The internal credential ID
- password String
- The password for the Teradata account. Consider using
passwordWoinstead, which is not stored in state. - password
Wo String - NOTE: This field is write-only and its value will not be updated in state as part of read operations.
Write-only alternative to
password. The value is not stored in state. RequirespasswordWoVersionto trigger updates. - password
Wo NumberVersion - Version number for
passwordWo. Increment this value to trigger an update of the password when usingpasswordWo. - project
Id Number - Project ID to create the Teradata/Trino credential in
- schema String
- The schema where to create models
- threads Number
- The number of threads to use. Default is 1
- user String
- The username for the Teradata account
Package Details
- Repository
- dbtcloud pulumi/pulumi-dbtcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dbtcloudTerraform Provider.
published on Thursday, May 14, 2026 by Pulumi
