Skip to content

Commit

Permalink
fix: Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
csquire committed Dec 12, 2024
1 parent 7a60217 commit ef30164
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/guides/1_getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ resource "dbtcloud_project_repository" "my_project_repository" {
// here both are linked to the same Data Warehouse connection
// for Prod, we need to create a credential as well
resource "dbtcloud_environment" "my_dev" {
dbt_version = "versionless"
dbt_version = "latest"
name = "Dev"
project_id = dbtcloud_project.my_project.id
type = "development"
connection_id = dbtcloud_global_connection.my_connection.id
}
resource "dbtcloud_environment" "my_prod" {
dbt_version = "versionless"
dbt_version = "latest"
name = "Prod"
project_id = dbtcloud_project.my_project.id
type = "deployment"
Expand Down
6 changes: 3 additions & 3 deletions docs/resources/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ This version of the provider has the `connection_id` as an optional field but it

```terraform
resource "dbtcloud_environment" "ci_environment" {
// the dbt_version is major.minor.0-latest , major.minor.0-pre or versionless (by default, it is set to versionless if not configured)
dbt_version = "versionless"
// the dbt_version is major.minor.0-latest , major.minor.0-pre or latest (by default, it is set to latest if not configured)
dbt_version = "latest"
name = "CI"
project_id = dbtcloud_project.dbt_project.id
type = "deployment"
Expand All @@ -44,7 +44,7 @@ resource "dbtcloud_environment" "prod_environment" {
// Creating a development environment
resource "dbtcloud_environment" "dev_environment" {
dbt_version = "versionless"
dbt_version = "latest"
name = "Dev"
project_id = dbtcloud_project.dbt_project.id
type = "development"
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/extended_attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ resource "dbtcloud_extended_attributes" "my_attributes" {
}
resource "dbtcloud_environment" "issue_depl" {
dbt_version = "versionless"
dbt_version = "latest"
name = "My environment"
project_id = var.dbt_project.id
type = "deployment"
Expand Down
6 changes: 3 additions & 3 deletions examples/resources/dbtcloud_environment/resource.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "dbtcloud_environment" "ci_environment" {
// the dbt_version is major.minor.0-latest , major.minor.0-pre or versionless (by default, it is set to versionless if not configured)
dbt_version = "versionless"
// the dbt_version is major.minor.0-latest , major.minor.0-pre or latest (by default, it is set to latest if not configured)
dbt_version = "latest"
name = "CI"
project_id = dbtcloud_project.dbt_project.id
type = "deployment"
Expand All @@ -21,7 +21,7 @@ resource "dbtcloud_environment" "prod_environment" {

// Creating a development environment
resource "dbtcloud_environment" "dev_environment" {
dbt_version = "versionless"
dbt_version = "latest"
name = "Dev"
project_id = dbtcloud_project.dbt_project.id
type = "development"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resource "dbtcloud_extended_attributes" "my_attributes" {
}

resource "dbtcloud_environment" "issue_depl" {
dbt_version = "versionless"
dbt_version = "latest"
name = "My environment"
project_id = var.dbt_project.id
type = "deployment"
Expand Down
4 changes: 2 additions & 2 deletions templates/guides/1_getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ resource "dbtcloud_project_repository" "my_project_repository" {
// here both are linked to the same Data Warehouse connection
// for Prod, we need to create a credential as well
resource "dbtcloud_environment" "my_dev" {
dbt_version = "versionless"
dbt_version = "latest"
name = "Dev"
project_id = dbtcloud_project.my_project.id
type = "development"
connection_id = dbtcloud_global_connection.my_connection.id
}
resource "dbtcloud_environment" "my_prod" {
dbt_version = "versionless"
dbt_version = "latest"
name = "Prod"
project_id = dbtcloud_project.my_project.id
type = "deployment"
Expand Down

0 comments on commit ef30164

Please sign in to comment.