-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #286 from dbt-labs/add-features-global-connections
- Loading branch information
Showing
9 changed files
with
574 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# A project-scoped connection can be imported as a global connection by specifying the connection ID | ||
# Migrating from project-scoped connections to global connections could be done by: | ||
# 1. Adding the config for the global connection and importing it (see below) | ||
# 2. Removing the project-scoped connection from the config AND from the state | ||
# - CAREFUL: If the connection is removed from the config but not the state, it will be destroyed on the next apply | ||
|
||
|
||
# using import blocks (requires Terraform >= 1.5) | ||
import { | ||
to = dbtcloud_global_connection.my_connection | ||
id = "connection_id" | ||
} | ||
|
||
import { | ||
to = dbtcloud_global_connection.my_connection | ||
id = "1234" | ||
} | ||
|
||
# using the older import command | ||
terraform import dbtcloud_global_connection.my_connection "connection_id" | ||
terraform import dbtcloud_global_connection.my_connection 1234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.