-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dbtcloud_global_connection resource is not properly assigning the connection id when used in dbtcloud_environment resource. #311
Comments
Hi @akulasanthosh . I tried to reproduce it but couldn't. Does the rest of your config contains a People should use wither the old approach of I will update the docs on |
@b-per - I just jumped on a call and got eyes on the issue. The first time Santhosh runs a I was also able to confirm that there is no |
Thanks! I looked at the recording and I also don't understand why a Could you share what Terraform version you are using? (not the provider but Terraform itself) Also, I have doubts that it will fix it, but could you try installing the latest version of the provider? It should be Another shot in the dark but could you also share the output of |
Hi, Thanks for checking, v1.9.7 is the terraform version. i dont think either it will work in a different terraform version. |
(venv) (base) santhosh.akula@santhos-ltmdelw dbt_terraform % cat graph.dot |
The graph looks good. Would you be able to try a brand new Terraform project with the provider at the latest version ( |
Describe the bug
dbtcloud_global_connection resource is not properly assigning the connection id when used in dbtcloud_environment resource.
for example if i create 4 differenet connections using global connection resource and refer them individually in different environmnets each what we see is the connection which gets created first will be referenced to all the 4 environments and other 3 connections are refereenced in zero environments.
Error message
no error
Resource configuration
resource "dbtcloud_global_connection" "my_connection_dev" {
name = "terraform_snowflake_testing_proj_dev"
snowflake = {
account = "salesforce_poc"
database = "RAW_DEV"
warehouse = "DEMO_WH_DEV"
}
}
resource "dbtcloud_global_connection" "my_connection_qa" {
name = "terraform_snowflake_testing_proj_qa"
snowflake = {
account = "salesforce_poc"
database = "RAW_QA"
warehouse = "DEMO_WH_QA"
}
}
resource "dbtcloud_environment" "my_dev" {
dbt_version = "versionless"
name = "Dev"
project_id = dbtcloud_project.my_project.id
type = "development"
connection_id = dbtcloud_global_connection.my_connection_dev.id
credential_id = dbtcloud_snowflake_credential.dev_credential.credential_id
}
resource "dbtcloud_environment" "my_qa" {
dbt_version = "versionless"
name = "QA"
project_id = dbtcloud_project.my_project.id
type = "deployment"
connection_id = dbtcloud_global_connection.my_connection_qa.id
credential_id = dbtcloud_snowflake_credential.qa_credential.credential_id
}
Expected behavior
each connection should refer to their respective environment defined in the code
Config (please complete the following information):
( the version can be retrieved running the command
terraform providers
)Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: