1. Packages
  2. Packages
  3. dbt Cloud Provider
  4. API Docs
  5. AthenaCredential
Viewing docs for dbt Cloud v1.8.2
published on Thursday, May 14, 2026 by Pulumi
dbtcloud logo
Viewing docs for dbt Cloud v1.8.2
published on Thursday, May 14, 2026 by Pulumi

    Athena credential resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dbtcloud from "@pulumi/dbtcloud";
    
    // Using the classic sensitive attributes (stored in state)
    const example = new dbtcloud.AthenaCredential("example", {
        projectId: Number(exampleDbtcloudProject.id),
        awsAccessKeyId: "your-access-key-id",
        awsSecretAccessKey: "your-secret-access-key",
        schema: "your_schema",
    });
    const config = new pulumi.Config();
    const athenaAwsAccessKeyId = config.require("athenaAwsAccessKeyId");
    const athenaAwsSecretAccessKey = config.require("athenaAwsSecretAccessKey");
    const exampleWo = new dbtcloud.AthenaCredential("example_wo", {
        projectId: Number(exampleDbtcloudProject.id),
        awsAccessKeyIdWo: athenaAwsAccessKeyId,
        awsAccessKeyIdWoVersion: 1,
        awsSecretAccessKeyWo: athenaAwsSecretAccessKey,
        awsSecretAccessKeyWoVersion: 1,
        schema: "your_schema",
    });
    
    import pulumi
    import pulumi_dbtcloud as dbtcloud
    
    # Using the classic sensitive attributes (stored in state)
    example = dbtcloud.AthenaCredential("example",
        project_id=int(example_dbtcloud_project["id"]),
        aws_access_key_id="your-access-key-id",
        aws_secret_access_key="your-secret-access-key",
        schema="your_schema")
    config = pulumi.Config()
    athena_aws_access_key_id = config.require("athenaAwsAccessKeyId")
    athena_aws_secret_access_key = config.require("athenaAwsSecretAccessKey")
    example_wo = dbtcloud.AthenaCredential("example_wo",
        project_id=int(example_dbtcloud_project["id"]),
        aws_access_key_id_wo=athena_aws_access_key_id,
        aws_access_key_id_wo_version=1,
        aws_secret_access_key_wo=athena_aws_secret_access_key,
        aws_secret_access_key_wo_version=1,
        schema="your_schema")
    
    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 attributes (stored in state)
    		_, err := dbtcloud.NewAthenaCredential(ctx, "example", &dbtcloud.AthenaCredentialArgs{
    			ProjectId:          pulumi.Any(exampleDbtcloudProject.Id),
    			AwsAccessKeyId:     pulumi.String("your-access-key-id"),
    			AwsSecretAccessKey: pulumi.String("your-secret-access-key"),
    			Schema:             pulumi.String("your_schema"),
    		})
    		if err != nil {
    			return err
    		}
    		cfg := config.New(ctx, "")
    		athenaAwsAccessKeyId := cfg.Require("athenaAwsAccessKeyId")
    		athenaAwsSecretAccessKey := cfg.Require("athenaAwsSecretAccessKey")
    		_, err = dbtcloud.NewAthenaCredential(ctx, "example_wo", &dbtcloud.AthenaCredentialArgs{
    			ProjectId:                   pulumi.Any(exampleDbtcloudProject.Id),
    			AwsAccessKeyIdWo:            pulumi.String(pulumi.String(athenaAwsAccessKeyId)),
    			AwsAccessKeyIdWoVersion:     pulumi.Int(1),
    			AwsSecretAccessKeyWo:        pulumi.String(pulumi.String(athenaAwsSecretAccessKey)),
    			AwsSecretAccessKeyWoVersion: pulumi.Int(1),
    			Schema:                      pulumi.String("your_schema"),
    		})
    		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 attributes (stored in state)
        var example = new DbtCloud.AthenaCredential("example", new()
        {
            ProjectId = exampleDbtcloudProject.Id,
            AwsAccessKeyId = "your-access-key-id",
            AwsSecretAccessKey = "your-secret-access-key",
            Schema = "your_schema",
        });
    
        var config = new Config();
        var athenaAwsAccessKeyId = config.Require("athenaAwsAccessKeyId");
        var athenaAwsSecretAccessKey = config.Require("athenaAwsSecretAccessKey");
        var exampleWo = new DbtCloud.AthenaCredential("example_wo", new()
        {
            ProjectId = exampleDbtcloudProject.Id,
            AwsAccessKeyIdWo = athenaAwsAccessKeyId,
            AwsAccessKeyIdWoVersion = 1,
            AwsSecretAccessKeyWo = athenaAwsSecretAccessKey,
            AwsSecretAccessKeyWoVersion = 1,
            Schema = "your_schema",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dbtcloud.AthenaCredential;
    import com.pulumi.dbtcloud.AthenaCredentialArgs;
    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 attributes (stored in state)
            var example = new AthenaCredential("example", AthenaCredentialArgs.builder()
                .projectId(exampleDbtcloudProject.id())
                .awsAccessKeyId("your-access-key-id")
                .awsSecretAccessKey("your-secret-access-key")
                .schema("your_schema")
                .build());
    
            final var athenaAwsAccessKeyId = config.require("athenaAwsAccessKeyId");
            final var athenaAwsSecretAccessKey = config.require("athenaAwsSecretAccessKey");
            var exampleWo = new AthenaCredential("exampleWo", AthenaCredentialArgs.builder()
                .projectId(exampleDbtcloudProject.id())
                .awsAccessKeyIdWo(athenaAwsAccessKeyId)
                .awsAccessKeyIdWoVersion(1)
                .awsSecretAccessKeyWo(athenaAwsSecretAccessKey)
                .awsSecretAccessKeyWoVersion(1)
                .schema("your_schema")
                .build());
    
        }
    }
    
    configuration:
      # Using write-only attributes (not stored in state, requires Terraform >= 1.11)
      # //
      # // The aws_access_key_id_wo and aws_secret_access_key_wo values are never persisted in the Terraform state file.
      # // Use aws_access_key_id_wo_version / aws_secret_access_key_wo_version to trigger an update when the secret changes.
      athenaAwsAccessKeyId:
        type: string
      athenaAwsSecretAccessKey:
        type: string
    resources:
      # Using the classic sensitive attributes (stored in state)
      example:
        type: dbtcloud:AthenaCredential
        properties:
          projectId: ${exampleDbtcloudProject.id}
          awsAccessKeyId: your-access-key-id
          awsSecretAccessKey: your-secret-access-key
          schema: your_schema
      exampleWo:
        type: dbtcloud:AthenaCredential
        name: example_wo
        properties:
          projectId: ${exampleDbtcloudProject.id}
          awsAccessKeyIdWo: ${athenaAwsAccessKeyId}
          awsAccessKeyIdWoVersion: 1
          awsSecretAccessKeyWo: ${athenaAwsSecretAccessKey}
          awsSecretAccessKeyWoVersion: 1
          schema: your_schema
    
    Example coming soon!
    

    Create AthenaCredential Resource

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

    Constructor syntax

    new AthenaCredential(name: string, args: AthenaCredentialArgs, opts?: CustomResourceOptions);
    @overload
    def AthenaCredential(resource_name: str,
                         args: AthenaCredentialArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def AthenaCredential(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         project_id: Optional[int] = None,
                         schema: Optional[str] = None,
                         aws_access_key_id: Optional[str] = None,
                         aws_access_key_id_wo: Optional[str] = None,
                         aws_access_key_id_wo_version: Optional[int] = None,
                         aws_secret_access_key: Optional[str] = None,
                         aws_secret_access_key_wo: Optional[str] = None,
                         aws_secret_access_key_wo_version: Optional[int] = None)
    func NewAthenaCredential(ctx *Context, name string, args AthenaCredentialArgs, opts ...ResourceOption) (*AthenaCredential, error)
    public AthenaCredential(string name, AthenaCredentialArgs args, CustomResourceOptions? opts = null)
    public AthenaCredential(String name, AthenaCredentialArgs args)
    public AthenaCredential(String name, AthenaCredentialArgs args, CustomResourceOptions options)
    
    type: dbtcloud:AthenaCredential
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "dbtcloud_athenacredential" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AthenaCredentialArgs
    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 AthenaCredentialArgs
    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 AthenaCredentialArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AthenaCredentialArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AthenaCredentialArgs
    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 athenaCredentialResource = new DbtCloud.AthenaCredential("athenaCredentialResource", new()
    {
        ProjectId = 0,
        Schema = "string",
        AwsAccessKeyId = "string",
        AwsAccessKeyIdWo = "string",
        AwsAccessKeyIdWoVersion = 0,
        AwsSecretAccessKey = "string",
        AwsSecretAccessKeyWo = "string",
        AwsSecretAccessKeyWoVersion = 0,
    });
    
    example, err := dbtcloud.NewAthenaCredential(ctx, "athenaCredentialResource", &dbtcloud.AthenaCredentialArgs{
    	ProjectId:                   pulumi.Int(0),
    	Schema:                      pulumi.String("string"),
    	AwsAccessKeyId:              pulumi.String("string"),
    	AwsAccessKeyIdWo:            pulumi.String("string"),
    	AwsAccessKeyIdWoVersion:     pulumi.Int(0),
    	AwsSecretAccessKey:          pulumi.String("string"),
    	AwsSecretAccessKeyWo:        pulumi.String("string"),
    	AwsSecretAccessKeyWoVersion: pulumi.Int(0),
    })
    
    resource "dbtcloud_athenacredential" "athenaCredentialResource" {
      project_id                       = 0
      schema                           = "string"
      aws_access_key_id                = "string"
      aws_access_key_id_wo             = "string"
      aws_access_key_id_wo_version     = 0
      aws_secret_access_key            = "string"
      aws_secret_access_key_wo         = "string"
      aws_secret_access_key_wo_version = 0
    }
    
    var athenaCredentialResource = new AthenaCredential("athenaCredentialResource", AthenaCredentialArgs.builder()
        .projectId(0)
        .schema("string")
        .awsAccessKeyId("string")
        .awsAccessKeyIdWo("string")
        .awsAccessKeyIdWoVersion(0)
        .awsSecretAccessKey("string")
        .awsSecretAccessKeyWo("string")
        .awsSecretAccessKeyWoVersion(0)
        .build());
    
    athena_credential_resource = dbtcloud.AthenaCredential("athenaCredentialResource",
        project_id=0,
        schema="string",
        aws_access_key_id="string",
        aws_access_key_id_wo="string",
        aws_access_key_id_wo_version=0,
        aws_secret_access_key="string",
        aws_secret_access_key_wo="string",
        aws_secret_access_key_wo_version=0)
    
    const athenaCredentialResource = new dbtcloud.AthenaCredential("athenaCredentialResource", {
        projectId: 0,
        schema: "string",
        awsAccessKeyId: "string",
        awsAccessKeyIdWo: "string",
        awsAccessKeyIdWoVersion: 0,
        awsSecretAccessKey: "string",
        awsSecretAccessKeyWo: "string",
        awsSecretAccessKeyWoVersion: 0,
    });
    
    type: dbtcloud:AthenaCredential
    properties:
        awsAccessKeyId: string
        awsAccessKeyIdWo: string
        awsAccessKeyIdWoVersion: 0
        awsSecretAccessKey: string
        awsSecretAccessKeyWo: string
        awsSecretAccessKeyWoVersion: 0
        projectId: 0
        schema: string
    

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

    ProjectId int
    Project ID to create the Athena credential in
    Schema string
    The schema where to create models
    AwsAccessKeyId string
    AWS access key ID for Athena user. Consider using awsAccessKeyIdWo instead, which is not stored in state.
    AwsAccessKeyIdWo 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 awsAccessKeyId. The value is not stored in state. Requires awsAccessKeyIdWoVersion to trigger updates.
    AwsAccessKeyIdWoVersion int
    Version number for awsAccessKeyIdWo. Increment this value to trigger an update of the AWS access key ID when using awsAccessKeyIdWo.
    AwsSecretAccessKey string
    AWS secret access key for Athena user. Consider using awsSecretAccessKeyWo instead, which is not stored in state.
    AwsSecretAccessKeyWo 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 awsSecretAccessKey. The value is not stored in state. Requires awsSecretAccessKeyWoVersion to trigger updates.
    AwsSecretAccessKeyWoVersion int
    Version number for awsSecretAccessKeyWo. Increment this value to trigger an update of the AWS secret access key when using awsSecretAccessKeyWo.
    ProjectId int
    Project ID to create the Athena credential in
    Schema string
    The schema where to create models
    AwsAccessKeyId string
    AWS access key ID for Athena user. Consider using awsAccessKeyIdWo instead, which is not stored in state.
    AwsAccessKeyIdWo 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 awsAccessKeyId. The value is not stored in state. Requires awsAccessKeyIdWoVersion to trigger updates.
    AwsAccessKeyIdWoVersion int
    Version number for awsAccessKeyIdWo. Increment this value to trigger an update of the AWS access key ID when using awsAccessKeyIdWo.
    AwsSecretAccessKey string
    AWS secret access key for Athena user. Consider using awsSecretAccessKeyWo instead, which is not stored in state.
    AwsSecretAccessKeyWo 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 awsSecretAccessKey. The value is not stored in state. Requires awsSecretAccessKeyWoVersion to trigger updates.
    AwsSecretAccessKeyWoVersion int
    Version number for awsSecretAccessKeyWo. Increment this value to trigger an update of the AWS secret access key when using awsSecretAccessKeyWo.
    project_id number
    Project ID to create the Athena credential in
    schema string
    The schema where to create models
    aws_access_key_id string
    AWS access key ID for Athena user. Consider using awsAccessKeyIdWo instead, which is not stored in state.
    aws_access_key_id_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 awsAccessKeyId. The value is not stored in state. Requires awsAccessKeyIdWoVersion to trigger updates.
    aws_access_key_id_wo_version number
    Version number for awsAccessKeyIdWo. Increment this value to trigger an update of the AWS access key ID when using awsAccessKeyIdWo.
    aws_secret_access_key string
    AWS secret access key for Athena user. Consider using awsSecretAccessKeyWo instead, which is not stored in state.
    aws_secret_access_key_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 awsSecretAccessKey. The value is not stored in state. Requires awsSecretAccessKeyWoVersion to trigger updates.
    aws_secret_access_key_wo_version number
    Version number for awsSecretAccessKeyWo. Increment this value to trigger an update of the AWS secret access key when using awsSecretAccessKeyWo.
    projectId Integer
    Project ID to create the Athena credential in
    schema String
    The schema where to create models
    awsAccessKeyId String
    AWS access key ID for Athena user. Consider using awsAccessKeyIdWo instead, which is not stored in state.
    awsAccessKeyIdWo 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 awsAccessKeyId. The value is not stored in state. Requires awsAccessKeyIdWoVersion to trigger updates.
    awsAccessKeyIdWoVersion Integer
    Version number for awsAccessKeyIdWo. Increment this value to trigger an update of the AWS access key ID when using awsAccessKeyIdWo.
    awsSecretAccessKey String
    AWS secret access key for Athena user. Consider using awsSecretAccessKeyWo instead, which is not stored in state.
    awsSecretAccessKeyWo 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 awsSecretAccessKey. The value is not stored in state. Requires awsSecretAccessKeyWoVersion to trigger updates.
    awsSecretAccessKeyWoVersion Integer
    Version number for awsSecretAccessKeyWo. Increment this value to trigger an update of the AWS secret access key when using awsSecretAccessKeyWo.
    projectId number
    Project ID to create the Athena credential in
    schema string
    The schema where to create models
    awsAccessKeyId string
    AWS access key ID for Athena user. Consider using awsAccessKeyIdWo instead, which is not stored in state.
    awsAccessKeyIdWo 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 awsAccessKeyId. The value is not stored in state. Requires awsAccessKeyIdWoVersion to trigger updates.
    awsAccessKeyIdWoVersion number
    Version number for awsAccessKeyIdWo. Increment this value to trigger an update of the AWS access key ID when using awsAccessKeyIdWo.
    awsSecretAccessKey string
    AWS secret access key for Athena user. Consider using awsSecretAccessKeyWo instead, which is not stored in state.
    awsSecretAccessKeyWo 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 awsSecretAccessKey. The value is not stored in state. Requires awsSecretAccessKeyWoVersion to trigger updates.
    awsSecretAccessKeyWoVersion number
    Version number for awsSecretAccessKeyWo. Increment this value to trigger an update of the AWS secret access key when using awsSecretAccessKeyWo.
    project_id int
    Project ID to create the Athena credential in
    schema str
    The schema where to create models
    aws_access_key_id str
    AWS access key ID for Athena user. Consider using awsAccessKeyIdWo instead, which is not stored in state.
    aws_access_key_id_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 awsAccessKeyId. The value is not stored in state. Requires awsAccessKeyIdWoVersion to trigger updates.
    aws_access_key_id_wo_version int
    Version number for awsAccessKeyIdWo. Increment this value to trigger an update of the AWS access key ID when using awsAccessKeyIdWo.
    aws_secret_access_key str
    AWS secret access key for Athena user. Consider using awsSecretAccessKeyWo instead, which is not stored in state.
    aws_secret_access_key_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 awsSecretAccessKey. The value is not stored in state. Requires awsSecretAccessKeyWoVersion to trigger updates.
    aws_secret_access_key_wo_version int
    Version number for awsSecretAccessKeyWo. Increment this value to trigger an update of the AWS secret access key when using awsSecretAccessKeyWo.
    projectId Number
    Project ID to create the Athena credential in
    schema String
    The schema where to create models
    awsAccessKeyId String
    AWS access key ID for Athena user. Consider using awsAccessKeyIdWo instead, which is not stored in state.
    awsAccessKeyIdWo 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 awsAccessKeyId. The value is not stored in state. Requires awsAccessKeyIdWoVersion to trigger updates.
    awsAccessKeyIdWoVersion Number
    Version number for awsAccessKeyIdWo. Increment this value to trigger an update of the AWS access key ID when using awsAccessKeyIdWo.
    awsSecretAccessKey String
    AWS secret access key for Athena user. Consider using awsSecretAccessKeyWo instead, which is not stored in state.
    awsSecretAccessKeyWo 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 awsSecretAccessKey. The value is not stored in state. Requires awsSecretAccessKeyWoVersion to trigger updates.
    awsSecretAccessKeyWoVersion Number
    Version number for awsSecretAccessKeyWo. Increment this value to trigger an update of the AWS secret access key when using awsSecretAccessKeyWo.

    Outputs

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

    CredentialId int
    The internal credential ID
    Id string
    The provider-assigned unique ID for this managed resource.
    CredentialId 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.
    credentialId Integer
    The internal credential ID
    id String
    The provider-assigned unique ID for this managed resource.
    credentialId 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.
    credentialId Number
    The internal credential ID
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AthenaCredential Resource

    Get an existing AthenaCredential 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?: AthenaCredentialState, opts?: CustomResourceOptions): AthenaCredential
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            aws_access_key_id: Optional[str] = None,
            aws_access_key_id_wo: Optional[str] = None,
            aws_access_key_id_wo_version: Optional[int] = None,
            aws_secret_access_key: Optional[str] = None,
            aws_secret_access_key_wo: Optional[str] = None,
            aws_secret_access_key_wo_version: Optional[int] = None,
            credential_id: Optional[int] = None,
            project_id: Optional[int] = None,
            schema: Optional[str] = None) -> AthenaCredential
    func GetAthenaCredential(ctx *Context, name string, id IDInput, state *AthenaCredentialState, opts ...ResourceOption) (*AthenaCredential, error)
    public static AthenaCredential Get(string name, Input<string> id, AthenaCredentialState? state, CustomResourceOptions? opts = null)
    public static AthenaCredential get(String name, Output<String> id, AthenaCredentialState state, CustomResourceOptions options)
    resources:  _:    type: dbtcloud:AthenaCredential    get:      id: ${id}
    import {
      to = dbtcloud_athenacredential.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AwsAccessKeyId string
    AWS access key ID for Athena user. Consider using awsAccessKeyIdWo instead, which is not stored in state.
    AwsAccessKeyIdWo 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 awsAccessKeyId. The value is not stored in state. Requires awsAccessKeyIdWoVersion to trigger updates.
    AwsAccessKeyIdWoVersion int
    Version number for awsAccessKeyIdWo. Increment this value to trigger an update of the AWS access key ID when using awsAccessKeyIdWo.
    AwsSecretAccessKey string
    AWS secret access key for Athena user. Consider using awsSecretAccessKeyWo instead, which is not stored in state.
    AwsSecretAccessKeyWo 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 awsSecretAccessKey. The value is not stored in state. Requires awsSecretAccessKeyWoVersion to trigger updates.
    AwsSecretAccessKeyWoVersion int
    Version number for awsSecretAccessKeyWo. Increment this value to trigger an update of the AWS secret access key when using awsSecretAccessKeyWo.
    CredentialId int
    The internal credential ID
    ProjectId int
    Project ID to create the Athena credential in
    Schema string
    The schema where to create models
    AwsAccessKeyId string
    AWS access key ID for Athena user. Consider using awsAccessKeyIdWo instead, which is not stored in state.
    AwsAccessKeyIdWo 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 awsAccessKeyId. The value is not stored in state. Requires awsAccessKeyIdWoVersion to trigger updates.
    AwsAccessKeyIdWoVersion int
    Version number for awsAccessKeyIdWo. Increment this value to trigger an update of the AWS access key ID when using awsAccessKeyIdWo.
    AwsSecretAccessKey string
    AWS secret access key for Athena user. Consider using awsSecretAccessKeyWo instead, which is not stored in state.
    AwsSecretAccessKeyWo 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 awsSecretAccessKey. The value is not stored in state. Requires awsSecretAccessKeyWoVersion to trigger updates.
    AwsSecretAccessKeyWoVersion int
    Version number for awsSecretAccessKeyWo. Increment this value to trigger an update of the AWS secret access key when using awsSecretAccessKeyWo.
    CredentialId int
    The internal credential ID
    ProjectId int
    Project ID to create the Athena credential in
    Schema string
    The schema where to create models
    aws_access_key_id string
    AWS access key ID for Athena user. Consider using awsAccessKeyIdWo instead, which is not stored in state.
    aws_access_key_id_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 awsAccessKeyId. The value is not stored in state. Requires awsAccessKeyIdWoVersion to trigger updates.
    aws_access_key_id_wo_version number
    Version number for awsAccessKeyIdWo. Increment this value to trigger an update of the AWS access key ID when using awsAccessKeyIdWo.
    aws_secret_access_key string
    AWS secret access key for Athena user. Consider using awsSecretAccessKeyWo instead, which is not stored in state.
    aws_secret_access_key_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 awsSecretAccessKey. The value is not stored in state. Requires awsSecretAccessKeyWoVersion to trigger updates.
    aws_secret_access_key_wo_version number
    Version number for awsSecretAccessKeyWo. Increment this value to trigger an update of the AWS secret access key when using awsSecretAccessKeyWo.
    credential_id number
    The internal credential ID
    project_id number
    Project ID to create the Athena credential in
    schema string
    The schema where to create models
    awsAccessKeyId String
    AWS access key ID for Athena user. Consider using awsAccessKeyIdWo instead, which is not stored in state.
    awsAccessKeyIdWo 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 awsAccessKeyId. The value is not stored in state. Requires awsAccessKeyIdWoVersion to trigger updates.
    awsAccessKeyIdWoVersion Integer
    Version number for awsAccessKeyIdWo. Increment this value to trigger an update of the AWS access key ID when using awsAccessKeyIdWo.
    awsSecretAccessKey String
    AWS secret access key for Athena user. Consider using awsSecretAccessKeyWo instead, which is not stored in state.
    awsSecretAccessKeyWo 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 awsSecretAccessKey. The value is not stored in state. Requires awsSecretAccessKeyWoVersion to trigger updates.
    awsSecretAccessKeyWoVersion Integer
    Version number for awsSecretAccessKeyWo. Increment this value to trigger an update of the AWS secret access key when using awsSecretAccessKeyWo.
    credentialId Integer
    The internal credential ID
    projectId Integer
    Project ID to create the Athena credential in
    schema String
    The schema where to create models
    awsAccessKeyId string
    AWS access key ID for Athena user. Consider using awsAccessKeyIdWo instead, which is not stored in state.
    awsAccessKeyIdWo 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 awsAccessKeyId. The value is not stored in state. Requires awsAccessKeyIdWoVersion to trigger updates.
    awsAccessKeyIdWoVersion number
    Version number for awsAccessKeyIdWo. Increment this value to trigger an update of the AWS access key ID when using awsAccessKeyIdWo.
    awsSecretAccessKey string
    AWS secret access key for Athena user. Consider using awsSecretAccessKeyWo instead, which is not stored in state.
    awsSecretAccessKeyWo 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 awsSecretAccessKey. The value is not stored in state. Requires awsSecretAccessKeyWoVersion to trigger updates.
    awsSecretAccessKeyWoVersion number
    Version number for awsSecretAccessKeyWo. Increment this value to trigger an update of the AWS secret access key when using awsSecretAccessKeyWo.
    credentialId number
    The internal credential ID
    projectId number
    Project ID to create the Athena credential in
    schema string
    The schema where to create models
    aws_access_key_id str
    AWS access key ID for Athena user. Consider using awsAccessKeyIdWo instead, which is not stored in state.
    aws_access_key_id_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 awsAccessKeyId. The value is not stored in state. Requires awsAccessKeyIdWoVersion to trigger updates.
    aws_access_key_id_wo_version int
    Version number for awsAccessKeyIdWo. Increment this value to trigger an update of the AWS access key ID when using awsAccessKeyIdWo.
    aws_secret_access_key str
    AWS secret access key for Athena user. Consider using awsSecretAccessKeyWo instead, which is not stored in state.
    aws_secret_access_key_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 awsSecretAccessKey. The value is not stored in state. Requires awsSecretAccessKeyWoVersion to trigger updates.
    aws_secret_access_key_wo_version int
    Version number for awsSecretAccessKeyWo. Increment this value to trigger an update of the AWS secret access key when using awsSecretAccessKeyWo.
    credential_id int
    The internal credential ID
    project_id int
    Project ID to create the Athena credential in
    schema str
    The schema where to create models
    awsAccessKeyId String
    AWS access key ID for Athena user. Consider using awsAccessKeyIdWo instead, which is not stored in state.
    awsAccessKeyIdWo 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 awsAccessKeyId. The value is not stored in state. Requires awsAccessKeyIdWoVersion to trigger updates.
    awsAccessKeyIdWoVersion Number
    Version number for awsAccessKeyIdWo. Increment this value to trigger an update of the AWS access key ID when using awsAccessKeyIdWo.
    awsSecretAccessKey String
    AWS secret access key for Athena user. Consider using awsSecretAccessKeyWo instead, which is not stored in state.
    awsSecretAccessKeyWo 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 awsSecretAccessKey. The value is not stored in state. Requires awsSecretAccessKeyWoVersion to trigger updates.
    awsSecretAccessKeyWoVersion Number
    Version number for awsSecretAccessKeyWo. Increment this value to trigger an update of the AWS secret access key when using awsSecretAccessKeyWo.
    credentialId Number
    The internal credential ID
    projectId Number
    Project ID to create the Athena credential in
    schema String
    The schema where to create models

    Import

    using import blocks (requires Terraform >= 1.5) import { to = dbtcloud_athena_credential.my_athena_credential id = “project_id:credential_id” }

    import { to = dbtcloud_athena_credential.my_athena_credential id = “12345:6789” }

    using the older import command

    $ pulumi import dbtcloud:index/athenaCredential:AthenaCredential my_athena_credential "project_id:credential_id"
    $ pulumi import dbtcloud:index/athenaCredential:AthenaCredential my_athena_credential 12345:6789
    

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

    Package Details

    Repository
    dbtcloud pulumi/pulumi-dbtcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dbtcloud Terraform Provider.
    dbtcloud logo
    Viewing docs for dbt Cloud v1.8.2
    published on Thursday, May 14, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.