Skip to content

Environments

Requirements

Name Version
terraform >= 1.7
dbtcloud ~> 1.9

Providers

Name Version
dbtcloud 1.9.1

Modules

No modules.

Resources

Name Type
dbtcloud_environment.environments resource
dbtcloud_environment.protected_environments resource

Inputs

Name Description Type Default Required
project_ids Map of project key to dbt Cloud project ID map(string) n/a yes
projects List of project configurations. Each project may have an 'environments' list. any n/a yes
credential_ids Map of composite key (project_key_env_key) to credential ID (from credentials module) map(string) {} no
extended_attribute_ids Map of composite key (project_key_ea_key) to dbt Cloud extended_attributes_id (numeric; from extended_attributes module). map(number) {} no
extended_attribute_ids_by_source_id Maps legacy YAML extended_attributes[].id to Terraform-managed extended_attributes_id (from extended_attributes module). map(number) {} no
global_connection_ids Map of global connection key to connection ID (from global_connections module). Used when YAML environments reference connections by key. map(string) {} no
profile_ids Map of composite key (project_key_profile_key) to dbt Cloud profile_id (from profiles module); used when environments set primary_profile_key. map(number) {} no

Outputs

Name Description
deployment_types Map of composite key (project_key_env_key) to environment deployment_type (for job SAO validation)
environment_ids Map of composite key (project_key_env_key) to dbt Cloud environment ID